View Single Post
  #361  
Old 25th September 2012, 03:19
Daz's Avatar
Daz Daz is offline
Senior Member
 
Join Date: Dec 2009
United Kingdom
Posts: 124
Default
Quote:
Originally Posted by DJHicks View Post
Bump: BUMP!!! ****


I'm guessing i have to edit this piece of code but not being a php buff i'm unsure what to do so will try a few things but any pointers greatly appriciated! lol

PHP Code:
# Function redirect v.0.7

function redirect($url$message=''$title=''$wait=3$usephp=false$withbaseurl=true)

{

    global 
$SITENAME,$BASEURL,$lang;

    if (empty(
$message))

        
$message $lang->global['redirect'];

    if(empty(
$title))

        
$title $SITENAME;        

    
$url fix_url($url);

    if (
$withbaseurl)

        
$url $BASEURL.(substr($url01) == '/' '' '/').$url;

    if (
$usephp)

    {        

        @
header ('Location: '.$url);

        exit;

    }

    
$defaulttemplate ts_template();

    
ob_start();

?> 
Yeah, because you should use TS SE on the root of a domain or root of a subdomain, you will see that issue with the redirect function if your install is in a folder (for example yourdomain.com/tracker)

Bump: I don't know why my reply didn't post

but the error is because you need to install at the root of a domain or subdomain for example, you can't use TS SE in a folder for example at yourdomain.com/tsse
Reply With Quote