Logout 'fading' that works in IE, FireFox, Opera, etc
This is an update to Logout 'fading' that works in IE, FireFox, Opera, etc.. - you can see screenshots there, even though they are of vB 3.x - concept is still the same.
This only works if you download the Uncompressed Javascript package @ members.vbulletin.com Unless otherwise noted, this should work on all vB4.0.x versions. By default, the way vBulletin handles it, it will only work in Internet Explorer. Using the code below, however, it will work in IE, FireFox, Opera, (and should in others, but these are the only browsers I have installed ). Note, though, it doesn't do the exact same style as vB default. Installation: In the clientscript/vbulletin-core.js file find: Code:
/** * Confirms log-out request * * @param string Log-out confirmation message * * @return boolean */ function log_out(confirmation_message) { var ht = document.getElementsByTagName("html")[0]; ht.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)"; if (confirm(confirmation_message)) { return true; } else { ht.style.filter = ""; return false; } } Code:
/** * Confirms log-out request * * @param string Log-out confirmation message * * @return boolean */ function log_out(confirmation_message) { // You can change 30 and 0.3 to suit your 'tastes' :) var bo = document.getElementsByTagName('body')[0]; bo.style.filter = 'Alpha(opacity="30")'; bo.style.MozOpacity = '0.3'; bo.style.opacity = '0.3'; if (confirm(confirmation_message)) { return true; } else { bo.style.filter = 'Alpha(opacity="100")'; bo.style.MozOpacity = '1'; bo.style.opacity = '1'; return false; } } Changelog: 1.0.2 - 16. Nov 2009 - Updated to vB 4.0.0 1.0.1 - 11. Jun 2007 - Updated 3.5.4 code - Added a way to get this to work on 3.6.6+ 1.0.0 - 25. Jul 2006 - Initial release That's it. Enjoy! Download
logout_fading-1.0.2.txt (1.5 KB, 109 downloads) |
Similar Mods
Logout 'fading' that works in IE, FireFox, Opera, etc.. | vBulletin 3.5 Template Modifications |
BB Code Enhancements BB Code Blink - working in Firefox, Internet Explorer and Opera | vBulletin 3.7 Add-ons |