The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to generate the Log Out Hash in VB4
Can anyone tell me how I will be able to generate the logout hash, in order to logout the user from the root site?
I found a relative post for VB3 that was something like this: Code:
md5($userid . $sal . $license) Thanx in advance |
#2
|
|||
|
|||
It's within the within the userinfo of the user
Within php files use: $vbulletin->userinfo['logouthash'] Within templates use: {vb:raw bbuserinfo.logouthash} |
#3
|
|||
|
|||
My Forum resides inside /forum/ directory and the main code is outside (I am using the Kohana framework) so I don't want and I don'thave any access to the VB variables or code, I will have to generate it myself.
Anyway I made some progress and figured out the first part of the hash... see what I mean bellow in the url: Code:
login.php?do=logout&logouthash=1265897467-dd88ae6c82e21b914e1a5dbb1b9fed44f40fee57 Thanx |
#4
|
|||
|
|||
As of 3.8.4 PL2 and 4.0.0 PL1, the license is no longer used to generate the security token. Instead, it uses a randomly generated hash called COOKIE_SALT which can be found at the top of functions.php. You can use this code to generate the security token:
PHP Code:
|
#5
|
|||
|
|||
Sweet! This thread was EXACTLY what I needed today!
Am plugging the navbar functions into external directories and could not get the logouthash to work. swapping $bbuserinfo['logout'] for $vbulletin->userinfo['logouthash'] did the trick. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|