[How to] get the VBulletin logout link programmatically

Started by Xhanch Studio, April 30, 2012, 04:36:10 PM

previous topic - next topic
Go Down

Xhanch Studio

In Vbulletin, the logout hash is loaded into the global userinfo array, so it's available to you when you've included the global.php file.
A very basic example of creating a page with just the logout link might look like this (assuming your script is in the vBulletin directory):
Code Select
$vbulletin->userinfo['userid'] > 0)
'<a href="login.php?' $session[sessionurl] . 'do=logout&amp;logouthash=' $vbulletin->userinfo['logouthash'] . '">Logout</a>';

Best Regards,
Susanto B.Sc
Web development services, WordPress plugin and theme development, PSD to XHTML conversion - http://xhanch.com
Read free manga online - http://authrone.com

Go Up