vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Logout 'fading' that works in IE, FireFox, Opera, etc (https://vborg.vbsupport.ru/showthread.php?t=228086)

Eric 11-15-2009 10:00 PM

Logout 'fading' that works in IE, FireFox, Opera, etc
 
1 Attachment(s)
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;
        }
}

Replace with:
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!

Eric 11-16-2009 08:08 AM

reserved :)

merk_aus 11-16-2009 08:13 AM

Wow looks good am installing now.

Allan 11-16-2009 08:32 AM

Nice :)

Do you have one demo ?

Charlie98902 11-16-2009 09:45 AM

Tagged for later.

Eric 11-16-2009 11:01 AM

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

abdobasha2004 11-16-2009 11:15 AM

any demo please
?
and it will be better to post screen shots here also

SİMAR 11-19-2009 10:51 AM

Nice thanks colaga

merk_aus 11-20-2009 05:11 AM

Will this work on the new BETA 4?

Eric 11-20-2009 10:40 AM

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

Dr.osamA 11-22-2009 01:40 AM

Thxxxxx
am installing now
________
Arizona dispensaries

PossumX 12-03-2009 02:20 AM

Tagged for Gold Release... :D

tini_lam 02-14-2010 02:26 PM

but in i.e, adsense google and chatbox no 'fading'.

xtremecoders 08-19-2011 06:43 PM

1 Attachment(s)
Nice Mod My Friend...

Here is a Compressed JS file with your MOD...

Attachment 132127

victorvu 08-21-2011 10:13 PM

Hi:

I could not find the below in the clientscript/vbulletin-core.js for the below:

/**
* 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(gray scale=1)";
if (confirm(confirmation_message))
{
return true;
}
else
{
ht.style.filter = "";
return false;
}
}

Please help!

Victor


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01182 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete