Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Blink the Welcome Bar when receiving a new PM! Details »»
Blink the Welcome Bar when receiving a new PM!
Version: 1.00, by Gary W Gary W is offline
Developer Last Online: Aug 2014 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-14-2004 Last Update: Never Installs: 32
 
No support by the author.

Some tiny bits and pieces of this hack was adapted from Chen's vB 2 version of this hack, so kudos to him



What this hack does is it makes the 'Welcome, $username' box in the navbar blink by changing colors whenever a user has a new PM, so that it will catch their attention and they won't miss the PM



You can view the hack in action by viewing the attached screenshot to this post! (Meaning that it will blink like it's supposed to )



Anyways, here are the instructions:



Open up the navbar template and find:
HTML Code:
        <td class="alt2" valign="top" nowrap="nowrap">
Replace with
HTML Code:
        <td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else />class="alt2"</if>>
Find:
HTML Code:
    <else />

 

        <td class="alt2" nowrap="nowrap" style="padding:0px">
Above, add
HTML 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==0 && set==1)
	{
		pmBox.bgColor='$stylevar[tcat_bgcolor]';
		x=1;
		set=0;
	}
	if (x==1 && set==1)
	{
		pmBox.bgColor='$stylevar[thead_bgcolor]';
		x=0;
		set=0;
	}
}
-->
</script></if>


All done! You can view the hack in action by viewing the attached screenshot! (Meaning that it will blink like it's supposed to )

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 09-08-2004, 08:14 PM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #53  
Old 09-08-2004, 08:45 PM
imported_Zen imported_Zen is offline
 
Join Date: Feb 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]'
Reply With Quote
  #54  
Old 09-08-2004, 10:44 PM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed that, thanks
Reply With Quote
  #55  
Old 10-16-2004, 11:42 PM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed and work great thanks guys
Reply With Quote
  #56  
Old 11-23-2004, 01:56 PM
Randyjc Randyjc is offline
 
Join Date: Jun 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #57  
Old 11-23-2004, 05:49 PM
TwinsForMe TwinsForMe is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works for me. Thanks.

vb 3.0.3 in Netscape
Reply With Quote
  #58  
Old 11-24-2004, 12:38 AM
secret1980 secret1980 is offline
 
Join Date: Oct 2004
Location: India
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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 :



waiting for ur help...

Thanking u,
Pavan Kumar
Reply With Quote
  #59  
Old 11-29-2004, 02:22 AM
Rocket_Cowboy Rocket_Cowboy is offline
 
Join Date: Nov 2004
Location: Dallas, TX
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

LOL
Reply With Quote
  #60  
Old 12-17-2004, 11:45 PM
Mechanical Mind's Avatar
Mechanical Mind Mechanical Mind is offline
 
Join Date: Sep 2004
Location: USA
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #61  
Old 12-21-2004, 10:15 PM
imported_Gottcha imported_Gottcha is offline
 
Join Date: Oct 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05205 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_html
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete