![]() |
|
Mod Options |
![]() |
|||||||||||
Logout Button replacing Logout text
![]() Developer Last Online: Sep 2011 ![]() ![]() ![]() This modification is in the archives.
This easy template mod will replace the Logout Username text that appears at the bottom of your forumhome page with a Logout button graphic/image instead.
Level of difficulty: Easy Time to install: 1 minute I have made a Logout image (attached) in the default vB Style. Open FORUMHOME and very close to the bottom of that template find the following code; <!-- member logout --> <td align="$stylevar[right]"><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></td> <!-- end member logout --> Replace that code in its entirety with the following code; <!-- member logout button --> <td align="$stylevar[right]"> <a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="$stylevar[imgdir_button]/logout.gif" border="0" width="110" height="26" alt="<phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase>"></a></td> <!-- end member logout --> Then upload the attached image to your images/buttons directory... and hey presto, you're done! Note: The text you would normally have seen e.g. <Logout theMusicMan> is now shown when you mouse-over the logout button. Please click Install if you use it, thanks. Enjoy! Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Logout Button | Burning_Ice | vBulletin 2.x Template Modifications | 10 | 19 Aug 2002 18:13 |
Comments |
#2
|
||||
|
||||
Thanks, I actually created my own but it was shotty work, and didn't work per style... Using yours now
![]() No members have liked this post.
|
#3
|
||||
|
||||
![]()
Installed on mine with my own button...works great thanks!
![]() No members have liked this post.
|
#4
|
||||
|
||||
Just installed this thanks for the work. I did clean up a bit of white space around the edge of the button so I'll attach it here if anyone wants it.
No members have liked this post.
|
#5
|
|||
|
|||
*Clicks Install* Very nice, much better than generic text. Thank you!
No members have liked this post.
|
#6
|
||||
|
||||
what a great idea... I think I will install this one....
No members have liked this post.
|
#7
|
||||
|
||||
Cool, kinda dresses up the forum *** installs ***
No members have liked this post.
|
#8
|
|||
|
|||
Awesome work. Simple yet effective!
Cheers, Mike No members have liked this post.
|
#9
|
|||
|
|||
very nice.. thanks!
No members have liked this post.
|
#10
|
||||
|
||||
No members have liked this post.
|
#11
|
|||
|
|||
I tried to enlarge the Log Out button, but somehow it got auto-resized.
No members have liked this post.
|
#12
|
|||
|
|||
Originally Posted by InfoNirvana
Figured that out.![]()
Q: is it possible to have the same logout button on all forum views ? ie. like this http://www.mysite.org/forum/forumdisplay.php?f=2 ? and opposed to just on the index page ? http://www.mysite.org/forum/index.php No members have liked this post.
|
#13
|
|||
|
|||
There are errors in this suggested modification.
'$vbphrase[sure_you_want_to_log_out]' is missing from this section. Open FORUMHOME and very close to the bottom of that template find the following code; <!-- member logout --> <td align="$stylevar[right]"><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></td> <!-- end member logout --> Replace that code in its entirety with the following code; <!-- member logout button --> <td align="$stylevar[right]"> <a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="$stylevar[imgdir_button]/logout.gif" border="0" width="110" height="26" alt="<phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase>"></a></td> <!-- end member logout --> FYI everyone. The symptom here is that When you click Log Out in the navbar or the Forum Home Page ..... The "Are you sure you want to Log Out" message is missing ... and instead it says "undefined". No members have liked this post.
|
#14
|
||||
|
||||
Many thanks for pointing this out InfoNirvana. I have updated the code accordingly. Cheers.
No members have liked this post.
|
#15
|
|||
|
|||
runs on 3.7.0 B3 ...
* installed No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 18:16.