1 Logout Confirmation Fri Apr 06, 2012 5:28 pm
Nick
Administrator
Logout Confirmation
Forum Versions: Invision, PunBB, PhpBB 2, PhpBB 3
Description: This tutorial will ask your user if there sure they want to logout.
Set up:
1. Go to Admin Panel -> Modules -> JavaScript Codes Management -> Make sure it's on -> Create new -> Title it "Logout" - > Select "In all pages" -> Paste in the box:
2. Hit save and you're done.
Description: This tutorial will ask your user if there sure they want to logout.
Set up:
1. Go to Admin Panel -> Modules -> JavaScript Codes Management -> Make sure it's on -> Create new -> Title it "Logout" - > Select "In all pages" -> Paste in the box:
- Code:
$(document).ready(function() {
var x = document.getElementById('logout');
$(x).click(function(cLogout) {
var y = confirm("Are you sure you want to logout?");
if (y == true) {
return true;
} else { cLogout.preventDefault(); }
});
});
2. Hit save and you're done.
Provided by fmQuery