The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I'm wanting to put a logout button on my navbar, I see the "\index.php?logout" but that apparently isn't the way to call it from within the template.
How would I do this? |
#2
|
||||
|
||||
![]()
Here's the code I'm trying to use, could I please get some advice?
Code:
<if condition="$show['member']"> <a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="...logout-center.gif" alt="" border="0" /></a> </if> |
#3
|
||||
|
||||
![]()
That looks like the logout code.... what happens when a user clicks on it? And what page are you using it on?
|
#4
|
||||
|
||||
![]()
Thanks for the response!
I'm trying to incorporate it into the first navbar, and have placed the code in my header template. I'm not able to view the button at all. |
#5
|
||||
|
||||
![]()
It looks like you are using an image for your LogOut button? "<img src="...logout-center.gif" alt="" border="0" />" That is not a valid path, so you won't see a thing. You need to correct your image path.
|
#6
|
||||
|
||||
![]()
Second one I tried:
Code:
<if condition="$show['member']"> <td align="center><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="{if}/logout-center.gif" alt="" border="0" /></a></td> </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|