vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Blink PM bar on new PM! (https://vborg.vbsupport.ru/showthread.php?t=32299)

RoC-RTCWCentral 01-30-2002 07:09 PM

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

1yesfan 02-03-2002 09:42 PM

I never got it to work. Got it to change colors when there was a PM, but never blinked.

Demineo 02-08-2002 07:20 AM

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>

TELEK 02-10-2002 07:43 PM

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?

Demineo 02-11-2002 01:10 PM

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>

NYI Fan 02-17-2002 06:38 PM

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 ;) )

NYI Fan 02-18-2002 05:07 PM

I got it working beautifully with yours FF
Thanks anyway!

Jeroen 02-22-2002 04:31 PM

So simple but really cool...

Thanks

mjames 02-23-2002 12:22 AM

I installed, but it isn't blinking. :( I couldn't have been more careful, either. I even changed:
Code:

$pmblink pmBox.bgColor='#8080A6';
to
Code:

$pmblink pmBox.bgColor='#FFFFFF';
to see if it would blink, but no change. My boards seem unchanged after this. I tried sending two different PMs to myself, too. Any ideas?

<edit> The color in the first code tag is actually a word that is getting parsed by vB </edit>

NYI Fan 02-23-2002 12:39 AM

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
  • Page Generation 0.01182 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete