Log in

View Full Version : how to get logout hash


Kungfu
08-11-2006, 05:02 AM
How can i get the logout hash without including global. I included the init script but whenever i include global it just overloads. its too much for the site and i think somethings conflicting. So is there anyway to get the logout has so i can logout properly.

Or will i just need to create a custom page or something in forums and make a pop up window and people logout from there.

thanks.

RS_Jelle
08-11-2006, 12:32 PM
$bbuserinfo[logouthash] for use in the templates ;)

So you get something like this:
<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>

So you can use $vbulletin->userinfo['logouthash'] in PHP files, but the template way is a bit cleaner ofcourse.

Kungfu
08-12-2006, 05:48 AM
$bbuserinfo[logouthash] for use in the templates ;)

So you get something like this:
<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>

So you can use $vbulletin->userinfo['logouthash'] in PHP files, but the template way is a bit cleaner ofcourse.


cool thanks, i wasnt sure if i needed to included global as well.
$bbuserinfo[logouthash] worked fine as in the script i have it builds an array bbuserinfo and then i use global to include it. works great now thanks.

Zei
06-16-2007, 08:36 AM
Are there any things I need to call before I can get the $bbuserinfo? I know the cookie is set and I see them in phpinfo but I'm not sure why I can't echo them in PHP.

Dismounted
06-16-2007, 09:36 AM
$vbulletin->userinfo

$bbuserinfo is used in templates.