Back to vBulletin 3.0 Template Modifications

Blink the Welcome Bar when receiving a new PM!
Mod Version: 1.00, by Gary W

This modification is in the archives.
vB Version: Rating: (1 vote - 5.00 average) Installs: 32
Released: 15 Feb 2004 Last Update: Never Downloads: 53
Not Supported  

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 )

Download

This modification is archived and cannot be downloaded.

Screenshots

 

Similar Mods

Blink PM bar on new PM! vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024