The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Im using the following code in the footer bar on my site so if a member is logged in they see the logout link - however when the link is clicked a popbox comes up and just says 'undefined' and im not sure why. Any suggestions?
HTML Code:
<if condition="$bbuserinfo['userid'] <> 0"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a> -</if> |
#2
|
||||
|
||||
![]()
Use this code:
Code:
<if condition="!$show['guest']"> <!-- member logout --> <a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a> - <!-- end member logout --> </if> |
#3
|
|||
|
|||
![]()
Worked like a charm - thanks a million!
|
#4
|
|||
|
|||
![]()
how could i make a link on a non vb page to log out?
and what is logouthash ? |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|