The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I made a cleaner blinking PM notifier
I just finished a small template mod that I think makes a very clean addition
to the PM notification system. I liked the other blinking notifiers out there, the bar and the table blinker but they were to a little to bold or intrusive on my light layout so as an alternative I created a smaller text based blinker which seems to ask for attention without compromising my layout. I attached a copy if anyone is interested in the code changes I would be more than happy to share. |
#2
|
||||
|
||||
looks good nice work.
|
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
Nice job!
I like this one more then the one used here on vBulletin.org |
#5
|
|||
|
|||
looks great if you will share will be appricated
|
#6
|
|||
|
|||
Okay but I can't release a full release typa thing cause i'm way to lame of a coder
for that. So I'll paste my code changes here instead. |
#7
|
|||
|
|||
I'm not 100% there is anything else to note for this template mod
so if anyone tries and it doesnt work, I guess I can install on a fresh vBB to test it and post correction. Otherwise I think this is it. Code:
//Placed in NAVBAR header section // <script language="JavaScript"> var on_color = "#FF0000"; var off_color = "#FFFFFF"; var blink_onoff = 1; var blinkspeed= 500; function blink() { if( blink_onoff == 1) { document.all.blink.style.color = on_color; blink_onoff = 0; } else { document.all.blink.style.color = off_color; blink_onoff = 1; } } </script> // Replaced my original NAVBAR pmunread template section with // <if condition="$bbuserinfo['pmunread']"> <phrase 1="<font id=blink>$vbphrase[unread_x_nav_compiled]</font>" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase> <script> document.all.blink.style.color = off_color; setInterval("blink()",blinkspeed); </script><br> <else /> <phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase><br></if> // all done // |
#8
|
|||
|
|||
What version you have? NAVBAR pmunread? Where is that?
|
#9
|
|||
|
|||
Sorry vB 3.0.3
Code:
// in your NAVBAR template find // <if condition="$bbuserinfo['userid']"> <td class="alt2" valign="top" nowrap="nowrap"> // Right under that add // <if condition="$bbuserinfo['pmunread']"> <phrase 1="<font id=blink>$vbphrase[unread_x_nav_compiled]</font>" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase> <script> document.all.blink.style.color = off_color; setInterval("blink()",blinkspeed); </script><br> <else /> <phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase><br></if> // all done // |
#10
|
||||
|
||||
Is it XHMTL 1.0 ??
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|