![]() |
Works exactly as stated. I never could get this to work in 2.2.1 but I just upgraded to 2.2.2 and no problems whatsoever. Thanks for a great hack!!
RoC |
I never got it to work. Got it to change colors when there was a PM, but never blinked.
|
This is what my code in forumhome_pmloggedin looks like, and it doesn't work:
<tr id="cat"> <td id="pmBox" bgcolor="{ categorybackcolor}" colspan="6"><a href="private.php?s=$session[sessionhash]" title="Click Here to Open Your Private Messages $inboxname"><normalfont color="#000000"><b>Private Messages</normalfont></b></a></td> </tr> <tr> <td bgcolor="#1C5780" align="center" valign="top"><img src="https://vborg.vbsupport.ru/images/$lightbulb.gif" alt=""></td> <td bgcolor="#13486D" colspan="5"><smallfont> <b>$bbuserinfo[username]</b> - You have $newpm[messages] new message(s) since your last visit.<br> (You have $unreadpm[messages] unread messages and $allpm[messages] total messages in all your folders.)</smallfont></td> </tr> <script language="JavaScript"> <!-- Begin $pmblink pmBox.bgColor='#1D6AA0'; $pmblink setInterval("Timer()", 500); $pmblink x=1; function Timer() { x=1; set=0; } if(x==1 && set==1) { pmBox.bgColor='{*categorybackcolor*}'; set=1; if(x==0 && set==1) { pmBox.bgColor='#336D95'; x=0; set=0; } } // End --> </script> |
My board is different, so the PM info is in a welcome-type box, along with a bunch of other stuff, so this wasn't going to work for me. Then I tried editing the code without knowing what the heck I was doing, and I got the text to flash instead of the back of the table. But I didn't really like that, so I set it to make the back of the text flash (style), but then it gives me an error:
Line: 102 Char: 2 Error: Member not found Code: 0 URL: (I don't think you need this and my board isn't open yet so I don't tell people the URL) Does the style not work in the Javascript or something? |
And this is what mine looks like:
<tr id="cat"> <td id="pmBox" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="6"><a href="private.php?s=$session[sessionhash]" title="Click Here to Open Your Private Messages $inboxname"><normalfont color="#000000"><b>Private Messages</normalfont></b></a></td> </tr> <tr> <td bgcolor="#1C5780" align="center" valign="top"><img src="https://vborg.vbsupport.ru/images/$lightbulb.gif" alt=""></td> <td bgcolor="#13486D" colspan="5"><smallfont> <b>$bbuserinfo[username]</b> - You have $newpm[messages] new message(s) since your last visit.<br> (You have $unreadpm[messages] unread messages and $allpm[messages] total messages in all your folders.)</smallfont></td> </tr> <script language="JavaScript"> <!-- Begin $pmblink pmBox.bgColor='#1D6AA0'; $pmblink setInterval("Timer()", 500); $pmblink x=1; function Timer() { x=1; set=0; } if(x==1 && set==1) { pmBox.bgColor='#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif'; set=1; if(x==0 && set==1) { pmBox.bgColor='#336D95'; x=0; set=0; } } // End --> </script> |
Hi Firefly;
There is a template mod at vB.com that i want to incorporate along with this hack of yours (which i have been using for awhile and LOVE) Any suggestions for making the 2 peacefully co-exist? Thanks much (in advance ;) ) |
I got it working beautifully with yours FF
Thanks anyway! |
So simple but really cool...
Thanks |
I installed, but it isn't blinking. :( I couldn't have been more careful, either. I even changed:
Code:
$pmblink pmBox.bgColor='#8080A6'; Code:
$pmblink pmBox.bgColor='#FFFFFF'; <edit> The color in the first code tag is actually a word that is getting parsed by vB </edit> |
Hey Marc;
Are your categorybackcolor and tableheadbgcolor normally the same color? Snyx posted about a problem with that here Maybe that will help you? |
All times are GMT. The time now is 04:34 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:
|