The Arcive of vBulletin Modifications Site. |
|
'Clean' sessionhash, a 'backport' from vB 3 Details »»
|
||||||||||||||||||||||||||||
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: Quote:
Quote:
Quote:
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. Show Your Support
|
||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
I ment to post this in the beta hacks forum, when a mod see's this thread please move it there. Thanks
|
|
#3
|
||||
|
||||
|
Okay, moving to Beta Hacks as requested.
![]() Btw, this will not fix all the hardcoded links in PHP files. But it's a good idea - one reason why vB3 is great.
|
|
#4
|
||||
|
||||
|
Nice and nifty!! I will try as soon as i uploaded the RC1
|
|
#5
|
|||
|
|||
|
-]
Quote:
=) |
|
#6
|
||||
|
||||
|
hmm, this isn't a vb3 hack, seems someone has moved it into thw wrong cat accidently..
|
|
#7
|
||||
|
||||
|
Will install
Thanks a lot Brad!
|
|
#8
|
||||
|
||||
|
this is great - but vb3 still uses the ulgy long sessions ...
|
|
#9
|
||||
|
||||
|
This is a good first step, but your code example is incorrect. It should read:
FIND: Code:
if ($bbuserinfo['nosessionhash']==1) {
$session['sessionhash'] = '';
}
Code:
if ($bbuserinfo['nosessionhash']!=1)
{
$session['sessionhash'] = 's=' . $session['sessionhash'] . '&';
} else {
$session['sessionhash'] = '';
}
// vbulletin default
// if ($bbuserinfo['nosessionhash']==1) {
// $session['sessionhash'] = '';
// }
|
![]() |
|
|