You are not connected. Please login or register

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


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


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:
$(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 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