![]() |
Blink the Welcome Bar when receiving a new PM!
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"> HTML Code:
<td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else />class="alt2"</if>> HTML Code:
<else /> HTML Code:
<if condition="$bbuserinfo['pmunread']"> All done! You can view the hack in action by viewing the attached screenshot! (Meaning that it will blink like it's supposed to ) |
nice hack, also plz format hack into a text file(forum rules):D
|
Okay I will right now, sorry about that this is my first mod released here :p
|
I also added the cool new screenshot I made :p
|
I get a debug error everytime I install this hack... says pmuser isn't specified? really odd lol
|
Strange it's not like that for me, could you give me a screenshot?
|
Sure.. I'll reinstall it and grab a snapshot for you :)
|
Yes same problem here......something is wrong...
|
I like this idea but will wait until the above issue is resolved :)
|
Same here.. I'd like to apply this when its working :)
|
I went ahead and installed the mod. Works like a charm :) Thanks:)
|
Sorry about that guys, problem fixed ;)
|
Yesss,great now works...
Thanks |
very nice :)
|
Cos the original one had some bugs, I went away and did this in a slightly different way GaryW - I used the same script that I had for my onmouseover thread/forum bgcolor changer from this thread - and I extended the effect to make the pmBox and the breadcrumb box alternate colours when a new pm is there ...
Major props for the idea - I love the effect and have sent myself numerous PM's just to test and re-test it :) :) :D [high]* Natch clicks install cos u gave me the idea :)[/high] |
Gary is it possible for you to also add some effect to this when the PM's box gets full?
Thanks :) |
It could flash faster in that case witha simple conditional around the timer statement ...
|
Quote:
|
i cant get mine to work ? ?
i replaced <td class="alt2" valign="top" nowrap="nowrap"> with <td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else />class="alt2"</if>> but the last instruction doesnt make much sense. i found <else /> <td class="alt2" nowrap="nowrap" style="padding:0px"> and then i put the other tags Where ? ? ? ?? |
heheheh never mins, i had 2 colors thae same so i could see the blinking :lol:
|
Okay then you can just change the colour variables to a specified colour by replacing them with colour codes :)
|
Great, Installed and working, thanks!!!
|
Quote:
BBL with it hopefully :) :) Grab the JS file - the chgclass.js file - upload it to forumhome/clientscript and load that in your headinclude template. Code:
<script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_chgclass.js"></script> Find the first instance of: PHP Code:
PHP Code:
http://www.mobileforces.org/pm-bar-blink.gif It works with whatever colours you have in your style for alt1 and alt2, so translates across your board without trouble :) |
I don't think it works for gamma.
|
As spectacularly awesome as this is, it doesn't seem work in Mozilla or Netscape! It's only working on my IE. Anyway to spiff it up to work on other browsers?
|
nice add on! thx
|
Doesn't work for Netscape/Mozilla type browsers; I think the browsers are like that, they don't like the scripting that makes this work.
|
<a href="http://www.vbulletintemplates.com/mods/showpost.php?p=47441&postcount=23" target="_blank">This one</a> (post #23 in this thread) does work in Mozilla / Netscrape .... the animation was recorded on Firebird ...
Props to Gary for the concept... |
Works like a charm. I had to add an extra id to accomodate an extra table cell in my suctom header, but it works fabulously. Thanks Gary.
|
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? |
Awesome!!!!
You are the man Gary!!! Thanks!! |
Quote:
|
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]'; |
thanks for this hack, works great !
|
Quote:
Code:
pmBox.bgColor='red'; |
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 |
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:
PHP Code:
|
brilliant stuff gary :)
installed and working treat :D |
Very nice, thank you. :)
|
Got it. Installed it. Customized it. Loving it. Thanks.
|
All times are GMT. The time now is 03:22 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|