|
#1
|
||||
|
||||
|
MOD for REFERER length
I wanted to reduce (truncate) the length of the URL's listed in the REFERERS, so I found the code around line 375 in the orginal index.php in the root.
Look for this code: Code:
// take down the length as urls can be quite long
$referername = $referer;
$length = strlen($referername);
if($length > 50) { $referername = substr($referername,0,50); $referername = "$referername..."; }
$referer_print .= "<li><a href='$referer'>$numb &nbsp;&nbsp;&nbsp; $referername</a></li>";
}
If this has already been discussed, sorry, I didn't see it. You can see in action here: http://www.ericrasch.com/index.php?x=ref I used a 35 character limit instead of the default 50..
__________________
http://ericrasch.com powered by pixelpost |
|
#2
|
||||
|
||||
|
I upgraded to 1.4.1 and needed to edit the index.php file again to cover the modification I wanted. FYI, the line you need to look for is:
Code:
if($length > 50) { $referername = substr($referername,0,50)
__________________
http://ericrasch.com powered by pixelpost |
| Post Reply |
| Thread Tools | |
|
|