Brad
07-16-2003, 10:00 PM
Hack: Clean sessionhash
By: Anime-loo
With this hack installed you no longer have the ugly 's=&' in forum url's when the sessionhash is needed. This is made to clone the way vb 3 handles the sessionhash.
Basicly, by default when a user is not using cookies on your forum they see something like this:
/forum/showthread.php?s=5u302156091280j&threadid=1
But when they do turn on cookies, parts of the sessionhash are still lingering around:
/forum/showthread.php?s=&threadid=1
This hack solves this problem, when a user is using cookies to stay logged in, the links are transformed to:
/forum/showthread.php?threadid=1
Much shorter, and alot cleaner imo. :)
vB 3 dose this stock, that is why backport is in the thread title ;)
How to install:
-Step 1:
Log into your admin cp, and go to the search area for templates.
In the 'Search string' put this:
s=$session[sessionhash]&
In the 'Replace string' put this:
$session[sessionhash]
Click the Find/Replace button, this will update your templates for the hack.
- Step 2:
Apply the changes to sessions.php, included in the attachment below.
By: Anime-loo
With this hack installed you no longer have the ugly 's=&' in forum url's when the sessionhash is needed. This is made to clone the way vb 3 handles the sessionhash.
Basicly, by default when a user is not using cookies on your forum they see something like this:
/forum/showthread.php?s=5u302156091280j&threadid=1
But when they do turn on cookies, parts of the sessionhash are still lingering around:
/forum/showthread.php?s=&threadid=1
This hack solves this problem, when a user is using cookies to stay logged in, the links are transformed to:
/forum/showthread.php?threadid=1
Much shorter, and alot cleaner imo. :)
vB 3 dose this stock, that is why backport is in the thread title ;)
How to install:
-Step 1:
Log into your admin cp, and go to the search area for templates.
In the 'Search string' put this:
s=$session[sessionhash]&
In the 'Replace string' put this:
$session[sessionhash]
Click the Find/Replace button, this will update your templates for the hack.
- Step 2:
Apply the changes to sessions.php, included in the attachment below.