The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I want a link on my main site to log out of the forums if you're already logged in, but there's this session hash which I have no idea how to get.
Like: login.php?do=logout&logouthash=[something] Can anyone help me? Thanks! |
#2
|
||||
|
||||
![]()
Taken from navbar
HTML Code:
<a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a> |
#3
|
|||
|
|||
![]()
This is the variable used:
PHP Code:
|
#4
|
|||
|
|||
![]()
Thanks, but how do I get the variable to work? :l I'm linking to log out from my main site which has no connection to the forum except it tells you if you are logged in or not.
|
#5
|
|||
|
|||
![]()
How are you able to tell if the user is logged in or not? Do you know which code in the script is determining this?
|
#6
|
|||
|
|||
![]()
I use the cookies set in their browser to tell if they are logged in. But I couldn't find "logouthash" in any of the MySQL tables so I have no idea how they get it...
Thanks for your help! ![]() |
#7
|
||||
|
||||
![]()
From functions.php / fetch_userinfo
PHP Code:
|
#8
|
|||
|
|||
![]()
Ooh thanks a ton!
![]() |
#9
|
|||
|
|||
![]() Quote:
**cookie_salt is your license |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|