PDA

View Full Version : vbulletin, adding a logout button



sam316
05-25-2007, 02:58 PM
how the heck to i add a logout button? the template im using doesnt have the button. all i need is to know the right thing to link to then i can take it from there.

Viddy O Car
05-25-2007, 04:23 PM
It's apparently http://www.xxxx.com/login.php?do=logout&logouthash=xxxx. That wont help you much, as the last parameter has to be user specific.

You can try it without it, ie here on VCF http://www.videocardforum.com/login.php?do=logout which brings you to an error page that presents a working link.

sam316
05-25-2007, 10:06 PM
then how the heck does it work?

DVD-Man
05-26-2007, 06:24 PM
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a>

sam316
05-26-2007, 07:03 PM
thanks a lot man. my template was missing that code.

DVD-Man
05-27-2007, 06:52 PM
np :)