![]() |
Logout Popup Box
Hello,
Can anyone tell me where I can find the code that will allow me to redesign the logout popup box? Thank you! |
1 Attachment(s)
The logout popup is created with default browser based dialog box with the help of javascript to trigger it.
Both FORUMHOME and navbar templates have this link: Code:
<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> This is only basic to get you going Create 2 functions 1 to show and 1 to hide a custom dialog/modal box created with html and CSS: Add to headinclude template: Code:
<script type="text/javascript"> Now change both instances of links to (FORUMHOME and navbar templates): Code:
<a href="#" onclick="CustomLogOut(); return false;"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a> This is the CSS that designs the logout box this needs to be added to Additional CSS in style manager: Code:
#custom_logout_box { and this is the new logout box it includes 2 links, 1 to log out and the other to cancel just like the original, add to top of header template: Code:
<div id="custom_logout_box"> |
Thank you PinkMilk! I'm going to start working on this. I've been messing around tweaking the forum and this piece is just out of place. I appreciate your quick response!
Ken |
All times are GMT. The time now is 04:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|