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
  #92  
Old 01-07-2006, 03:21 AM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It won't blink on FF or Netscape. Anyone know how to fix the code for us FF users??
Reply With Quote
  #93  
Old 01-07-2006, 08:16 AM
cloyal cloyal is offline
 
Join Date: Sep 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes could some one please figure this out? Please? I've installed this one and this one.

https://vborg.vbsupport.ru/showthrea...ht=blinking+pm

And Neither work in FF. Btw the one created in this thread will blink but locks up the other one in the other thread in IE.
Reply With Quote
  #94  
Old 04-07-2006, 03:15 AM
kellyandmike's Avatar
kellyandmike kellyandmike is offline
 
Join Date: Mar 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect! Thanks for the easy explanation too...
Reply With Quote
  #95  
Old 06-04-2006, 08:55 PM
TheUGN.com TheUGN.com is offline
 
Join Date: May 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am Using Vb 3.5.4

I added this script to Navbar, but its not blinking Can anyone please direct me to what i need to add to make this work. Thanks

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==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></if>
Reply With Quote
  #96  
Old 06-05-2006, 01:44 AM
TheUGN.com TheUGN.com is offline
 
Join Date: May 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some weird reason i cannot find this script in my Navbar <td class="alt2" valign="top" nowrap="nowrap">

i searched and searched and searched and still i cannot find it.

What do i need to do
Reply With Quote
  #97  
Old 01-01-2008, 04:40 PM
thefullmaza thefullmaza is offline
 
Join Date: Aug 2007
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

install this hack...
Reply With Quote
  #98  
Old 10-03-2008, 02:17 PM
Loki12 Loki12 is offline
 
Join Date: Jul 2004
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my fav PM notification hack ... can anyone perhaps make this work for 3.7?

I just tried to do this on the navbar template but can't seem to get it to work.
Reply With Quote
  #99  
Old 12-30-2008, 06:36 PM
Medina Medina is offline
 
Join Date: Oct 2006
Location: the Netherlands
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to create a blink not only for the PM. But also for other notifications such as profile messages, social group messages etc. etc.
Reply With Quote
  #100  
Old 02-18-2009, 02:53 PM
Medina Medina is offline
 
Join Date: Oct 2006
Location: the Netherlands
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Is there anybody how can help me to work this with vb 3.8, please.

Thank you very much for helping.
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 09:37 AM.


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.04851 seconds
  • Memory Usage 2,291KB
  • Queries Executed 24 (?)
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
  • (1)bbcode_code
  • (4)bbcode_html
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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