The Arcive of vBulletin Modifications Site. |
|
Logout 'fading' that works in IE, FireFox, Opera, etc Details »»
|
|||||||||||||||||||||||||||||
|
Logout 'fading' that works in IE, FireFox, Opera, etc
Developer Last Online: Jun 2023
This is an update to https://vborg.vbsupport.ru/showthread.php?t=122049 - 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 Now
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
reserved
|
|
#3
|
|||
|
|||
|
Wow looks good am installing now.
|
|
#4
|
||||
|
||||
|
Nice
![]() Do you have one demo ? |
|
#5
|
|||
|
|||
|
Tagged for later.
|
|
#6
|
||||
|
||||
|
I'll try to get a demo up asap - until then, if anyone who has installed wants to provide one - then by all means, hehe
|
|
#7
|
||||
|
||||
|
any demo please
? and it will be better to post screen shots here also |
|
#8
|
||||
|
||||
|
Nice thanks colaga
|
|
#9
|
|||
|
|||
|
Will this work on the new BETA 4?
|
|
#10
|
||||
|
||||
|
This will still work on Beta 4 - but I forgot to mention, this only works if you download the Uncompressed Javascript package @ members.vbulletin.com
|
![]() |
|
|