vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Blink the Welcome Bar when receiving a new PM! (https://vborg.vbsupport.ru/showthread.php?t=88474)

RichieBoy67 04-21-2004 11:20 PM

Awesome!!!!

You are the man Gary!!!

Thanks!!

Skaterscafe.com 04-22-2004 05:52 AM

Quote:

Originally Posted by Skaterscafe.com
Works great for me also, thanks!

My site is in black & white, is there a easy way to change the blink color to red or yellow?

Anyone?

Jolten 04-22-2004 04:47 PM

Skater.. jsut set up a new custom style in the Main CSS. Then change the The script to use yoru new style in this line

Code:

                pmBox.bgColor='$stylevar[thead_bgcolor]';
Instead of thead_bgcolor insert your new style.

Onkel_Tom 06-17-2004 08:31 AM

thanks for this hack, works great !

imported_350Chevy 06-17-2004 03:41 PM

Quote:

Originally Posted by ScottW
Skater.. jsut set up a new custom style in the Main CSS. Then change the The script to use yoru new style in this line

Code:

                pmBox.bgColor='$stylevar[thead_bgcolor]';
Instead of thead_bgcolor insert your new style.

or..

Code:

                pmBox.bgColor='red';
Or whatever color of your choice.. ;)

imported_zahco 06-18-2004 09:15 AM

dir Gary W
Thanks a lot for this hack and i have istaled it and it working Great .

And i thanks a lot to Dir / 350Chevy
who showed me this thread

best regards
zahco

Onkel_Tom 06-20-2004 10:22 PM

Hi, a small problem with this hack if the access to the PN system is not allowed by the admin for a special usergroup like "awaiting confirmation" and having the "New user welcome PN" Hack installed.
The user get's the blinking PN area but can't read the mail unless he confirms his registration and an admin has activated his account.

Solution:

find in template navbar:
PHP Code:

<if condition="$bbuserinfo['pmunread']">
    <
script type="text/javascript">
<!-- 
<!-- 
blink navbar on new pms -->
pmBox.bgColor='$stylevar[thead_bgcolor]';
setInterval("Timer()"500);
x=1;
function 
Timer()
{
    
set=1;
    if (
x==&& set==1)
    {
        
pmBox.bgColor='$stylevar[tcat_bgcolor]';
        
x=1;
        
set=0;
    }
    if (
x==&& set==1)
    {
        
pmBox.bgColor='$stylevar[thead_bgcolor]';
        
x=0;
        
set=0;
    }
}
-->
</
script></if> 

replace it with:
PHP Code:

<if condition="$show['pmstats']"><if condition="$bbuserinfo['pmunread']">
    <
script type="text/javascript">
<!-- 
<!-- 
blink navbar on new pms -->
pmBox.bgColor='$stylevar[thead_bgcolor]';
setInterval("Timer()"500);
x=1;
function 
Timer()
{
    
set=1;
    if (
x==&& set==1)
    {
        
pmBox.bgColor='$stylevar[tcat_bgcolor]';
        
x=1;
        
set=0;
    }
    if (
x==&& set==1)
    {
        
pmBox.bgColor='$stylevar[thead_bgcolor]';
        
x=0;
        
set=0;
    }
}
-->
</
script></if></if> 

With this change vB first check if the PN system is activated and then let blink the PN area. Otherwise no blinking will be done.

Bounce 06-23-2004 06:20 PM

brilliant stuff gary :)

installed and working treat :D

imported_Infopro 06-24-2004 01:35 PM

Very nice, thank you. :)

Baptizer 07-02-2004 03:39 PM

Got it. Installed it. Customized it. Loving it. Thanks.


All times are GMT. The time now is 12: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.02790 seconds
  • Memory Usage 1,757KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete