You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

Administrator

1Tutorial Logout Confirmation on Fri Apr 06, 2012 5:28 pm

Nick 

avatar
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:
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

View user profile http://www.supportcraze.com

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum