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)

Lucky 01-01-2002 10:16 PM

That's what I mean.
It works until you delete the message and then it flashes constantly from then on.

Anyone know how to figure this out.
TIA

philliplewisuk 01-01-2002 10:37 PM

OIC!

But its flashing the wrong box!

Lucky 01-01-2002 10:41 PM

Your other box?

philliplewisuk 01-01-2002 10:43 PM

Currently Active Users Box Flashes!! not the PM box!

Lucky 01-01-2002 10:50 PM

What BB are you using?
I don't know why you would be having it flash the wrong box.
Did you follow to a T.
I am using 2.2.1 just like here and followed the directions to a T and have it flashing the correct box, but When you have no PM it doesn't flash (correct) When you get PM it flashes (correct) When you read PM it stops flashing (correct) When you delete your PM it starts flashing (wrong)

I have even viewed the source here and configured the template correctly. It just keeps flashing if you delete your PM.
This leads me to believe that there must be a change or addition made to the root/index.php

What do you guys think?

Lucky 01-02-2002 07:33 AM

Someone please help with this.

Thanks.

Lucky 01-03-2002 11:37 AM

Quote:

Originally posted by Lucky
I like the idea of this hack.

There is one bug with it though.

When you have no PM it doesn't flash (correct)
When you get PM it flashes (correct)
When you read PM it stops flashing (correct)
When you delete your PM it starts flashing (wrong)

When you delete your PM it should not flash any more, this is where the bug lives.

If someone is able to squash this bug please let me know what you had to do.

TIA

^^^UP^^^

Lucky 01-04-2002 06:11 AM

Can any body help me with this?

The PM bar blinks all the time.

itstd 01-04-2002 03:01 PM

I'm getting a Java script error as well. Says "set" is undefined.

Lucky 01-04-2002 09:51 PM

Quote:

Originally posted by FireFly
This is a very simple hack, yet I kinda like it.
Don't you just hate it when you write a long PM to someone, send it, and he doesn't even notice it?!

NO MORE! :)

Install this very easy hack and no one will be able to ignore the PM again.

This is almost just a template hack, but since it does involve editing a file and adding 4 lines of PHP code, it qualifies as a hack.
Sue me.

Anyway, what does this hack do?
Whenever you come to the forum main page, and you have any unread messages (even if they aren't new), the category strip that says "Private Messages" will blink.
Simple, but effective.

To see a demo of this, just send yourself a PM and see what happens. I'm sure you'll like it. :)

Installing this will take you 2 minutes if not less, it's very very simple.
I also don't expect too many support requests. ;)

Anyway, have fun!

Please help with this buddy.
The pm bar is constantly blinking.
TIA

SirSteve 01-05-2002 04:23 AM

Just uninstall it and try again...

Lucky 01-05-2002 04:51 AM

I was putting it before instead of after the }.

It is working great now.

Thanx.

voogru 01-05-2002 06:01 AM

Works great thanks, im on 2.2.1 as well

Warlord 01-12-2002 04:42 AM

It didn't work for me. I'm on version 2.2.1 and I did everything right, I double checked. And tried the appendages... but no luck..

Xelation 01-22-2002 02:14 AM

I was sending myslef a pm to see if my new hack worked, and when I went to send myslef the pm I wouldn't get a message, I would just get a white screen. So I unistalled the hack to see if the hack was the reason why I was getting this problem... well it wasn't, so does anyone know what would cause this problem? thank you.

Gutspiller 01-28-2002 09:57 PM

Quote:

Originally posted by VolsReport
Can Somebody make this hack for v2.03?
EDIT: nevermind I fixed this problem. For some reason even though I had remarked something out with a <!-- and a --> it was showing the trailing -->

it works on my 2.0.3?

FireFly I need a little help. After I installed this hack I got a "-->" above the row where it says Forum, thread, posts, etc. I thought it was the in the pmlogged template at the end of the script where it says:

PHP Code:


// End -->
</script

but when I removed the --> from that it didn't load anything below the PM message. I did however move my PM message box up top.

Can you please help me as this is rather annoying to just have text there. If I take out the whole block of the script code it takes away the -->.

Please help!

Thanks.

Admin 01-29-2002 12:31 PM

Remove what you removed and also remove the <!-- from the starting of the script.

lordofgun 01-30-2002 12:33 AM

AWESOME SCRIPT!

Wolf42 01-30-2002 07:49 AM

Worked great on my vB 2.2.1!

THX!! Good work!!

Darren Evans 01-30-2002 06:09 PM

I'm using background images in the table header as well. What would the call be to have the row below it to blink?

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?

mjames 02-23-2002 01:01 AM

I checked in my styles and don't believe they are the same.

NYI Fan 02-23-2002 01:14 AM

Sorry I cant help then...
Maybe Firefly will catch this and be able to assist....

HiroshiNanami 02-24-2002 07:15 AM

I have a problem. When using IE it flashes, but when I use Opera it doesn't, and I'm sure JS is enabled in Opera. Any ideas?

Admin 02-24-2002 07:19 AM

Maybe Opera just doesn't support that code.

rishel 02-24-2002 01:05 PM

Ok, I read, and there were so many posts here.

I installed this hack, just like FireFly said, and right outta the box it works awesome.

My only question is:

I want the bar to blink yellow ( #FF0000 ) but I am not totally sure as to where to put that.

Can someone just give me a little nudge as to where to put that, I really appreciate it.

weazel 02-25-2002 08:10 PM

excellent! thanks alot:):):)

Saiyan XL 02-26-2002 02:51 AM

this hack doesn't work for me, I need a person who can install hacks on my Forumz, and Expert!!!

mondaynightmike 03-01-2002 09:29 AM

this is a great hack. I have only just noticed it when i logged on to vb.org and i had a PM! never thought i would get one of those. Anyway thanks firefly.

aldamon 03-07-2002 02:07 PM

2.2.3 is a GO! Nice!

Radon3k 03-10-2002 09:37 PM

Hey Chen I have a ? for you. How can you set the color of the blinking PM bar? The color it is now doesn't work b/c it's almost the exact same color as the cat. bar it's on and it's hard to tell when it's flashing. How do I make it whatever color I want? Thanks and great hack! :)


All times are GMT. The time now is 10:54 AM.

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.01583 seconds
  • Memory Usage 1,820KB
  • 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)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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