MyBB Community Forums

Full Version: Javascript Logout Confirmation v1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Name: Javascript Logout Confirmation
Author: TheGodFather
Compatibility: MyBB 1.4, MyBB 1.6
Released: 17/12/2010
Version: 1.0
Description: Displays a simple javascript logout confirmation box when a user tries to sign out and helps in warning user that they are about to leave the site, if they click sign out button unexpectedly. By this way you can retain your users online on site for a long time.
Languages: English
Features:
-Displays a javascript logout box.
Future release Features:
-Ability to insert custom logout confirmation text through ACP.
-Ability to change the background color, zindex, opacity, style options through ACP.

Screenshoots:
[attachment=20794]
[attachment=20795]

Installation: Upload the files to the mybb root folder and go to ACP->Configuration->Plugins and activate Javascript Logout Confirmation.
License:
Protected under Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
[attachment=20793]

Download:[attachment=23127]
Or http://mods.mybb.com/view/javascript-log...nfirmation
Sorry for the inconvenience caused to the users who installed this plugin. Please redownload from the attachment, reupload the files overwriting old files and activate the plugin.

Those who have lost contents from headerinclude file, please copy and paste the below code which is the default headerinclude file from mybb package.
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}
<script type="text/javascript">
<!--
	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}