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)

mholtum 09-08-2004 08:14 PM

Quote:

Originally Posted by hdaniel1
Here is what I did so this mod works on every browser.

First, as usual open up the navbar template and find this.
PHP Code:

<td class="alt2" valign="top" nowrap="nowrap"

You replace it with this.

PHP Code:

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

That is all!




EDIT: Also this works with 3.0.3.

Yes, I followed these instructions

imported_Zen 09-08-2004 08:45 PM

Quote:

Originally Posted by mholtum
Yes, I followed these instructions


small errors in the code above.. works great BTW

extra spaces have crept in at $styleva
:
PHP Code:

document.getElementById('pmBox').bgColor='$styleva    r[thead_bgcolor]'

:)

mholtum 09-08-2004 10:44 PM

Fixed that, thanks

djjeffa 10-16-2004 11:42 PM

installed and work great thanks guys

Randyjc 11-23-2004 01:56 PM

HTML Code:

        <if condition="$bbuserinfo['userid']">

                <td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else /> class="alt2"</if>>
<if condition="$bbuserinfo['pmunread']">
    <script type="text/javascript">
<!--
<!-- blink navbar on new pms -->

document.getElementById('pmBox').bgColor='$stylevar[thead_bgcolor]';
setInterval("Timer()", 500);
x=1;
function Timer()
{
    set=1;
    if (x==0 && set==1)
    {
        document.getElementById('pmBox').bgColor='$stylevar[tcat_bgcolor]';
        x=1;
        set=0;
    }
    if (x==1 && set==1)
    {
        document.getElementById('pmBox').bgColor='$stylevar[thead_bgcolor]';
        x=0;
        set=0;
    }
}
-->
</script></if>

so weird i have it like this but it won't work for 3.0.3

TwinsForMe 11-23-2004 05:49 PM

Works for me. Thanks. :)

vb 3.0.3 in Netscape

secret1980 11-24-2004 12:38 AM

it's really a nice hack..Thx! for it :D

just now I noticed that after installing this hack...I am getting log in forum again in the middle even though after logging on..I have captured a screen shot here it is :

http://img99.exs.cx/img99/5316/copy21.jpg

waiting for ur help...

Thanking u,
Pavan Kumar

Rocket_Cowboy 11-29-2004 02:22 AM

Nevermind ... if I'd read the entire thread, I'd see what I was missing ...

LOL

Mechanical Mind 12-17-2004 11:45 PM

Quote:

Originally Posted by Gary W
Okay then you can just change the colour variables to a specified colour by replacing them with colour codes :)

Can anybody point out the color variables? I am not sure where to install the color codes in that section of code?

imported_Gottcha 12-21-2004 10:15 PM

Got it working and looks great...will be a big help. Anyway to have it work with vbportal installed? My start page is vbportal and it doesnt notify through there. Any mod to get it working?


All times are GMT. The time now is 11:57 AM.

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.01203 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
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (3)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