View Full Version : Blink PM bar on new PM!
Admin
11-09-2001, 10:00 PM
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!
JTMON
11-10-2001, 01:22 PM
I made the necessary changes but for some reason it doesn't work for me:(
Sc0rpion
11-10-2001, 02:01 PM
yep followed instructions to the letter,and it also does not work for me.
maverick1236
11-10-2001, 04:40 PM
Nope:(
i believe its a javascript error, it worked for me so :p
oh and thanks for another great hack
Works GREAT man!
Only problem I had is that both my categorybackcolor and my tableheadbgcolor are the same.
So at first I thought it wasnt blinking (cuz they were the same)
So like before anyone starts to say it doesnt work, try using THIS as your JS to test it:
<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>
stick that in the end of forumhome_pmloggedin, REMOVE! the ** from {*categorybackcolor*} and send yourself a PM, and if it doesnt blink then, you probolly did something wrong.
snyx
Sc0rpion
11-10-2001, 05:26 PM
synx i don't even need to try,i know thats my problem,thanks for pointing that out.
:stupid: Doh
JTMON
11-10-2001, 05:38 PM
So at first I thought it wasnt blinking (cuz they were the same)
DOH DOH DOH DOH!!!:(
Great Hack Firefly! Me stupid! Thanks Snyx!
Works great, FireFly! Thanks. :)
see, snyx knew it!
(first and last time you will ever here that sentance) :D
amykhar
11-10-2001, 11:54 PM
I have mine set to blink a shocking red color. If they don't see that, they're blind. :D
Thank you Firefly. I like this one.
Amy
Originally posted by amykhar
I have mine set to blink a shocking red color. If they don't see that, they're blind. :DLOL! I made mine blink red, too. :)
JJR512
11-11-2001, 02:44 AM
This won't really work very well if you are using a background image inside your category header cell, as I am. For example, if you use the method discussed here (http://www.vbulletin.com/forum/showthread.php?s=&threadid=31550) to have a category background image, the image is shown over the background color. Each time the cell flashes, you will see the background color for an instant, as the background image has to be re-downloaded.
So I guess I'm SOL on using this hack!
DarkReaper
11-11-2001, 05:16 AM
I sent myself a PM and don't see anything happening:confused:
DarkReaper
11-11-2001, 05:17 AM
Or I'm just tired as hell and its not a big color difference and I didn't notice it doh :)
hi...
(a little add to this hack)
i added an onclick to the TR, so i can click on TR to open PM's:
(del the space between { and categorybackcolor!)
find in forumhome_pmloggedin:
<td id="pmBox" bgcolor="{ categorybackcolor}" colspan="6">
change it to:
<td id="pmBox" bgcolor="{ categorybackcolor}" colspan="6" onMouseOver="this.style.cursor='hand';" onclick="window.location.href='private.php?s=$session[sessionhash]'">
br red
Originally posted by red
hi...
(a little add to this hack)
i added an onclick to the TR, so i can click on TR to open PM's: Well, I can't resist a good toy. I added this. I also put it on online users and my statistics bar that leads to Bane's stats hack. I already had them almost everywhere else. :)
mojotim
11-11-2001, 10:20 AM
Dude, nice one
Admin
11-11-2001, 12:11 PM
Thanks everyone. :)
JJR512, you can do something like this.
After this: (in the Javascript)
$pmblink pmBox.bgColor='xxxxxxx';
add this:
$pmblink pmBox.backGround='';
I *think* it will work, although I'm not sure.
Baratator
11-11-2001, 12:21 PM
Hi hust i looking for but i only want the link "private message" blink. not the whole section and i want it to blink only when the messages are new and to be in a different coulor when there a new pm hum like this :)
new pM : blink
unread PM : red
no new or unread pm : white
is that possible?
Joshs
11-11-2001, 02:08 PM
I have a blinking and a nonblinking image. How could I use this hack to have it display the blinking image when their is new PM, and the nonblinking one when there isnt any?
Basically I want it to look like this (and have the image and text link to the PM box):
No new PM-
[nonblinking image] no new message(s).
New PM-
[blinking image] (# of new messages (in bold)) new message(s).
I installed it in my vb2.2.0 and it doesn't work !
My Windows Internet Explorer gives me even an error in the command line "Done, but with errors on page" !!
Is this the javascript problem as it is with many other hacks that uses javascript.
Admin
11-11-2001, 03:06 PM
xug, what is the error you are getting?
Joshs, instead of this:
if ($unreadpm['messages']==0) {
$pmblink='//';
} else {
$pmblink='';
}
use this:
if ($unreadpm['messages']==0) {
$pmblinkimage='PATH TO NON BLINK';
} else {
$pmblinkimage='PATH TO BLINK';
}
then use $pmblinkimage in the src="xxx" of the <img>.
The error I wrote in my previous post ! no further details than that !
JJR512
11-11-2001, 04:32 PM
Xug, when IE tells you there is an error on the page, click the little message that tells you there's an error. The little yellow exclamation point that appears in the status bar, lower left hand corner? Next to the message that there's an error on the page? Double click it. Copy the contents of what it then tells you, and paste it here.
cyrus
11-11-2001, 04:46 PM
was very happily installing it, but it ended up not working :( I tried synx's fix but that didnt help . It just doesnt blink ... and yes, I DID send a pm to myself if ur wondering if i have a new pm or not :p
any ideas ?
JJR512
11-11-2001, 04:46 PM
Originally posted by FireFly
Thanks everyone. :)
JJR512, you can do something like this.
After this: (in the Javascript)
$pmblink pmBox.bgColor='xxxxxxx';
add this:
$pmblink pmBox.backGround='';
I *think* it will work, although I'm not sure.
Sorry, it didn't work. :(
Ok here is the error !
(Sorry, I didn't knew about this option to see the error)
line : 958
char : 2
error : 'pmBox' is undefined
code : 0
url : http://www.xboxusersgroup.com/forum/index.php?s=
Admin
11-11-2001, 05:43 PM
/======================================\
| In the template forumhome_pmloggedin |
| find this: |
\======================================/
bgcolor="{categorybackcolor}"
/======================================\
| Before that, add this code: |
\======================================/
id="pmBox"
Looks like you haven't done this.
I had put it on the wrong spot :o
first here : id="pmBox" <td bgcolor="{categorybackcolor}"
changed to : <td id="pmBox" bgcolor="{categorybackcolor}"
Thanks, it works now !
Baratator
11-12-2001, 11:58 AM
erf nobody answers my question :(
Sweet Evil
11-13-2001, 09:05 AM
Nice little hack.. Works Great! :D
Sent myself a PM on this page don't see anything flashing.. help.
Sweet Evil
11-14-2001, 04:31 AM
Are you saying you sent yourself a PM on this forum and it does not blink?
(They most likely do not have it installed)... ;)
Or are you having a problem on your site?
This site, but I read back and Firefly said to do that and I could see it.. :( SS anyone..? lol I mean tell me if it's worth it I'll install it just to see it...
Sweet Evil
11-14-2001, 04:40 AM
I feel it is a great addition, as some people do not have notify on, and sem to forget the have a PM box... This kind of reminds them..
HEY YOU HAVE A PM! :D
Its very simple to add/remove.. but its all if you want it or not..
Can't really give you a SS of a blinking category BG without a bit of work..
lol no thanks, I'll install it now. I have installed something like 15 hacks on a fresh 2.2 forum with template customs to, now all I need to do is the actual layout/header work lol, thanks though!
Sweet Evil
11-14-2001, 04:44 AM
(FYI) I just sent myself a PM , and I guess they do have it installed here.. You just can not see it very well (the colors are to close to the same)...
But send youself a PM (Do not read it when it redirects you to your inbox) , click the Forum button.. and you will see the category "» Private Messages" blinking...
Baratator
11-14-2001, 04:47 AM
Originally posted by Baratator
Hi hust i looking for but i only want the link "private message" blink. not the whole section and i want it to blink only when the messages are new and to be in a different coulor when there a new pm hum like this :)
new pM : blink
unread PM : red
no new or unread pm : white
is that possible?
plz can somebody tele me even if it's possible?
Originally posted by Baratator
plz can somebody tele me even if it's possible?
I'll try and help in a few minutes gotta finish up some client work then I'm going to install myself... then I'll help you out.
Sweet Evil - Thanks again! I saw it and I'm sold!
Sweet Evil
11-14-2001, 04:51 AM
Anything is possible... Just have to find someone to make it for you... or do it yourself.. :)
Baratator
11-14-2001, 05:11 AM
thx a lot lubi :)
I'll get on this tomorrow I need sleep. I promise... It shouldn't be hard.
fiona
11-15-2001, 03:23 PM
works brill for me, Cheers :D
thanx this looks like a useful hack.. hate it when users are oblivious to PM's
Baratator
11-18-2001, 06:48 AM
lubi ?
erf erf u've got looooooooooooooooooooooong days in your country :)
Originally posted by Baratator
lubi ?
erf erf u've got looooooooooooooooooooooong days in your country :)
Sorry I had completely forgotten. I'm having some trouble with a Prefix hack on my forum plus I updated to 2.2.1 today so give me a little time please.
Baratator
11-18-2001, 07:10 AM
no problem of course take your time :)
it was just for being sure you hadn't forgot it ;)
Sufian
11-18-2001, 02:36 PM
Am I correct in thinking this is supposed to blink (as in flash between two different colors) ? If that's the case then I dunno why, but it doesn't blink, it just changes the color of the cell till you go read the PM.
How come mine is blink all the time? :confused:, even when there is no new msg?
JTMON
11-18-2001, 06:13 PM
I believe it blinks until you actually READ the message. Even of you click on ok to a new message and go to your box, unless you actually open the message it will still blink.
streamzone
11-20-2001, 01:24 PM
I am having the same constant blink issue as well. I deleted all pm's in my inbox as well as from sent folder just to be sure. It still blinks. Still a newbie at all this code hacking so I need a little help with this one :)
Love the hack though. Like someone mentioned before, to many people leave pop up on pm unchecked and takes them days before they even realize they have a pm. This is a small but ingenious idea.
So, can someone kindly help me out? :D
I found out why it keeps blinking, stupid me, and that was I forgot to upload the index.php.
You might forgot to upload it too, go and check it.
butty
11-22-2001, 11:20 AM
works a treat on my 2.2.1 thanks :)
Prezident
11-24-2001, 08:00 PM
I installed this hack, but am having the same problem that one other person mentioned.
The PM bar does change to a different color, but it does NOT blink.
Any ideas why this would happen?
Thanks.
JTMON
11-26-2001, 11:48 AM
Well this hack was working great for me for awhile. But now what happens is it will blink for a new pm and of course I also get the pop up, so I click ok on the pop up to read it, I read it, then go back to the main forum and the bar is still blinking!!:D If I click on the bar and read the message again it stops. It's almost like reading it using the popup doesn't count as actually being read to the blink bar:D Any ideas?
SpeedWorx
11-30-2001, 08:27 PM
This is probably easy, but I'm new...
I installed and it works fine, BUT -
My first and second BG colors are fairly close, and the blinking is not very noticable. Can I change the alt. color to say, [COLOR=red]?
Originally posted by SpeedWorx
This is probably easy, but I'm new...
I installed and it works fine, BUT -
My first and second BG colors are fairly close, and the blinking is not very noticable. Can I change the alt. color to say, [COLOR=red]? Just use #FF0000 instead of {whicheveraltcolor}.
VolsReport
12-05-2001, 01:51 AM
Do you have that hack for version 2.03?
Anybody?
VolsReport
12-07-2001, 01:21 AM
Originally posted by VolsReport
Do you have that hack for version 2.03?
Anybody??
Bimma Boy
12-07-2001, 02:05 AM
What a sweet hack and it works perfect! simple yet very effective, my members will love this :)
Thanks
Bimma Boy
VolsReport
12-08-2001, 02:27 AM
Can Somebody make this hack for v2.03?
Bimma Boy
12-08-2001, 08:19 AM
Originally posted by VolsReport
Can Somebody make this hack for v2.03?
Why not just upgrade to 2.2.1 :confused:
VolsReport
12-08-2001, 02:00 PM
I would lose alot of members and all da posts...
DarkReaper
12-09-2001, 02:27 AM
Originally posted by VolsReport
I would lose alot of members and all da posts...
And why's that??
Prezident
12-10-2001, 02:34 PM
For some reason I never got this hack working.
I got errors on the page, which I beleive were javascript errors.
I copied the javascript to the letter. Don't know what is going wrong.
VolsReport
12-10-2001, 11:55 PM
And v2.21 has alot more bugs...V2.03 doesn't have that much bugz...
Bimma Boy
12-11-2001, 08:10 AM
Originally posted by VolsReport
And v2.21 has alot more bugs...V2.03 doesn't have that much bugz...
I kinda agree with you there so fair enough and 2.2.0 and above has pass encryption which I dont like! :rolleyes:
----------
Back on topic - I am now using a bg image instead of bg color - has anyone figured out who to get this hack working properly for this yet?
Evil_Incarnate
12-11-2001, 02:28 PM
kickarse code hack mate, thanks...
KarateKid
12-11-2001, 05:34 PM
Can someone tell me why the pn row blinks always, also when there issn't a new pn, after I upgraded the hacked vbb 2.2.0 to 2.2.1??? :o :mad: :stupid:
VolsReport
12-12-2001, 02:13 AM
Can someone make this hack for v2.03?
Lesane
12-14-2001, 11:09 AM
VolsReport, this hack works perfect on 2.0.3. I just installed it on my board & i use 2.0.3.
Firefly, thanks for the small but neat hack.
Hooper
12-15-2001, 01:05 AM
Thanks Chen. Nice.
Hey T-Dogg!
Hack works nicely...flashes when it should, and not when it shouldnt. However, I have now lost the standard pop-up alerts.
Any ideas?
AM I correct in assuming that this hack works in conjunction with the pop-up notices and it is not intended to replace them?
Admin
12-18-2001, 11:57 AM
Nope, should work nicely with them. :)
Considering the pop up is controlled in global.php and my hack in index.php, I don't know how it could conflict with it. :confused:
Princeton
12-21-2001, 02:06 AM
A little hack goes a long way ... thanks.
Princeton
12-21-2001, 03:33 AM
I can easily use this feature in a non-vb page, however, it continues to blink (even if I don't have any unread messages). What do I have to do to fix this problem?
philliplewisuk
01-01-2002, 07:28 PM
Its works.. BUT it makes the Currently Active Users: box flash and not the other PM box??
Lucky
01-01-2002, 08:28 PM
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
philliplewisuk
01-01-2002, 08:30 PM
But... there is a bigger bug. it makes my other box flash all the time!
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
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
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
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:
// 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 (http://www.vbulletin.com/forum/showthread.php?s=&postid=250043#post250043) 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:
$pmblink pmBox.bgColor='#8080A6';
to
$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 (https://vborg.vbsupport.ru/showthread.php?postid=199786#post199786)
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! :)
b-b00gie
03-11-2002, 04:44 AM
I guess this doesnt work with Netscape?
It works fine in IE, but I'm trying it with NS 6 and nothing happens... :ermm:
Originally posted by b-b00gie
I guess this doesnt work with Netscape?
It works fine in IE, but I'm trying it with NS 6 and nothing happens... :ermm: What does work with Nutscrape? It's junk. :tired:
b-b00gie
03-11-2002, 10:19 AM
Well I use IE, but I'm concerned about the rest of my visitors.
It looks like this goes above and beyond the 'blink PM' hack. All the tables in vb are messed up in Netscape 6. They are all sized incorrectly. Same goes for the text fields.
If you click on a smilie to insert it, it erases your text. Also... why are animated gifs moving at 10x the correct speed!! aaaaaaaaaaahhhhhhhhhh!!@#$!@!
:speechless:
EDIT: ok, looks like the smilies thing was a one time thing.. it works now.
This is with Netscape 6.2 btw. Tested on XP and NT4.
Will vb3 fix any of these issues? Mainly the table/textbox sizes?
Admin
03-11-2002, 11:22 AM
Just edit the javascript code in the hack... replace the {replacement} with whatever color code you want.
b-b00gie
03-11-2002, 11:49 AM
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='#1D6AA0';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor="#D60000";
x=0;
set=0;
}
}
// End -->
</script>
Thats what I have as the javascript, it still doesnt work.
I've also tried:
pmBox.bgColor='#D60000'; & pmBox.bgColor=#D60000;
Help! :cry:
Ack!! how do I paste code without having it come up with the category colors from this forum?
Anyway.. I have {variables} for the category color which is fine... the flashing color I manually set to #D60000 (red). It doesnt work in NS 6.2
Radon3k
03-11-2002, 02:33 PM
FireFly-It works great, thanks! :)
b-b00gie-You have to leave the {} in there. It works just fine for me! :)
b-b00gie
03-11-2002, 02:41 PM
Originally posted by Radon3k
FireFly-It works great, thanks! :)
b-b00gie-You have to leave the {} in there. It works just fine for me! :)
Tried that too a few minutes ago.
How about this... on 4 different machines running 95,98,XP,NT all with Netscape 6.2 the blink PM wont even work on vbulletin.org when I send myself a PM..
Do any of you even have NS 6.2 installed that are telling me it works?? :(
Dont get me wrong this works like a charm in IE and I LOVE IT!!! but I'm concerned with my netscape viewers... :(
Admin
03-11-2002, 04:16 PM
It's probably because of Nutscrape unbelievably crappiness which doesn't support this code. Sorry. :(
b-b00gie
03-11-2002, 04:28 PM
OK.. no worries then... :cool:
I was just getting frustrated because I thought others were saying it does work with Netscape 6. But then I tried it on this site and it didnt work here either.. :disappointed:
Thanks for the help though! :tired:
Birdie501
03-13-2002, 10:55 AM
Hi,
can somebody tell me how to change the code that when the table is blinking and you go over this field it will be linked to the privat messages in user cp?
Sorry for my english :)
Birdie501
Originally posted by Birdie501
Hi,
can somebody tell me how to change the code that when the table is blinking and you go over this field it will be linked to the privat messages in user cp?
Sorry for my english :)
Birdie501 Add:
onclick="window.location.href='private.php?s=$session[sessionhash]'
to the <td> at the beginning of forumhome_pmloggedin.
jjj0923
03-18-2002, 12:33 AM
I just love simple and highly functional hacks and this one sure qualifies...
thanks!
- jeff
Webmasta XT
03-20-2002, 09:43 AM
ok, mine never flashes, everytime there is a new PM, it just goes to a different color then the rest but doesn't flash, why?
This is what I have in my Template:
<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="{categoryfontcolor}"><b>Private Messages</normalfont></b></a></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" align="center" valign="top"><img src="{imagesfolder}/$lightbulb.gif" alt=""></td>
<td bgcolor="{firstaltcolor}" 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>
Originally posted by Webmasta XT
ok, mine never flashes, everytime there is a new PM, it just goes to a different color then the rest but doesn't flash, why?
You have a category background image. You can't blink that. I made a modifed version that will enable you to get the bar to blink:
http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=161
google54
03-24-2002, 12:27 PM
can somone past a working template that works
GeOrGe
03-26-2002, 11:29 AM
Very nice Hack, thank´s
Kevlar
03-28-2002, 12:43 PM
Nice hack... I installed it on v2.2.4.
One question tho... is there any code that can get the PM box to blink in the User Control Panel?
Visionray
03-30-2002, 04:48 AM
Hello guys I have read through the entire thread and I STILL cannot get this hack to work. :(
code removed :)
Even if I change all the colors for the categorybackground color and tablehead background color...it does not blink. The color changes but it doesnt blink.
Any suggestions?
Oh and yes I am using IE and Ive uploaded the index.php file, and sent myself a pm etc.....
Visionray
03-30-2002, 04:55 AM
Oiy Vey!!! Nevermind folks. Got it too work. I forgot to change both tablehead colors.
Nice hack firefly
jarvis
04-02-2002, 03:36 AM
Ok, I just upgraded to 2.2.5 and my PM bar now blinks all the time. I did a quick search for this problem, but did not find anything. Have I overlooked it, or any ideas as to what may cause this. It worked fine with 2.0.3.
Thanks!
Admin
04-02-2002, 04:55 AM
Reapply changes to index.php.
oliwood
04-10-2002, 03:01 PM
What must i edit, to put the bar from bottom to top???
GsxrTony
04-19-2002, 08:20 PM
Damn this hack is cool and its my first ever. There goes my Cherry :D I noticed someone else was having the same probleem I am, now My pop up box is non existant.
Did you ever figure out why this happens?
Thanks Firefly
flasvt
04-27-2002, 12:27 AM
This is the first hack I've done to my site and it worked perfectly. Thanks.
JulianD
04-27-2002, 02:22 AM
Yeap, great hack! Thanks!
Boofo
04-29-2002, 02:02 PM
Great hack, Firefly! But then, all of yours usually are! ;)
Baratator
05-03-2002, 03:34 PM
I installed it on vbb 2.2.5 and it works.... strangely :) :
When i got no new pm it's ok not blinking
When i got a new pm okay blinking....
-BUT-
When i send a pm it's blinking "you've got 0 new pms" ???
When i logoff and that i am now a guest it is blinking too "you've got (*nothing*) new PM"
I analysed the code and as i'm not a php guru don't find what was wrong...
plzzzz :)
MomofThree
05-22-2002, 12:20 AM
Great and easy hack! :)
The only thing that I see, is that it's blinks once for me. How can I make it to blink continuously until the person reads their pm?
Thanks!
Iliana
MomofThree
05-22-2002, 03:36 PM
bump
Marty McFly
05-23-2002, 04:45 PM
i dig! good work.
Ryan McBain
05-28-2002, 02:26 AM
Heres my entire forumhome mp logged template. i cant get the hack to work for me...
<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="{categoryfontcolor}"><b>Private Messages</normalfont></b></a></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" align="center" valign="top"><img src="{imagesfolder}/$lightbulb.gif" alt=""></td>
<td bgcolor="{firstaltcolor}" 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='{tableheadbgcolor}';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#778899';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#2D3851';
x=0;
set=0;
}
}
// End -->
</script>
Originally posted by Ryan McBain
$pmblink pmBox.bgColor='#006633';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#778899';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#2D3851';
x=0;
set=0;I'm not certain because all your replacement variables got parsed, but you have three colors there. The first color should be your alternating flashing color. The second one should be your category background color and the third color should be the alternating flashing color again. You may have it right already. It just looks wrong here.
Ryan McBain
05-28-2002, 06:24 AM
well im sure its wrong cause its not working.... what code should i have??
Originally posted by Ryan McBain
well im sure its wrong cause its not working.... what code should i have?? This is what you should add to the end of template. Substitute the colors you want:<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='Alternate Flashing Color';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='Normal Category Background Color';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='Alternate Flashing Color';
x=0;
set=0;
}
}
// End -->
</script>
Ryan McBain
05-28-2002, 12:31 PM
still doesnt work, and i have this code....
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='#880000';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#778899';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#880000';
x=0;
set=0;
}
}
// End -->
</script>
deano1
05-28-2002, 07:17 PM
i still want to know
how you move the PM bar to the top of the page
TLfuRy
06-28-2002, 06:40 PM
Originally posted by deano1
i still want to know
how you move the PM bar to the top of the page
Edit your forumhome template, and find the "$pminfo" variable towards the bottom:
</tr>
$forumbits
$pminfo
$loggedinusers
$birthdaybits
And move it just above the </tr> tag two lines above it. That will move it to just above your first Forum in the index, like this:
deano1
07-01-2002, 09:13 PM
i thank you very much sir
Jared Press
07-04-2002, 05:28 AM
I tried to install this hack and have my bar flashing but I haven't been able to edit the index.php files success fully.
Every time I try adding the code for blink I get a serever parse error and the site wont load up.
Any ideas what is wrong?
I inserted the code after the light bulp on code by entering a new line and pasting it after the light bulb code.
Jared Press
07-04-2002, 05:39 AM
Never mind. I screwed up the code. I noticed what appeared to be a bracket out of place and rechecked the original code.
Great Hack!!!!!!
Thanks. Oh and I even picked up on the quick tip about moving the position of the PM bar...cool!
Peace
07-07-2002, 05:33 PM
Do this hack work with 2.2.6? I followed the directions correctly, I went over the steps 10 times or more, and it still won't Blink. I even tried FWC's modified version of the PM Blink hack. It still didn't Blink. What could be the problem?
Massiel
07-10-2002, 12:49 AM
I installed this and I don't see anything either, has the original been updated with the background color that needs to be changed? Where do I need to include that?
Heineken77
07-15-2002, 04:35 PM
Ahh nice firefly!!
This is a beautiful hack!! I am currently running vBPortal v3.0b with my site. Is there any way to make the Private Message side box blink the same way that the Private Message bar does on the forum index page?
Cheers! :)
Heineken
Ryan McBain
07-16-2002, 05:24 AM
this is what i have and when i get an private message the box changes color but it does not blink
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='Alternate Flashing Color';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='Normal Category Background Color';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='Alternate Flashing Color';
x=0;
set=0;
}
}
// End -->
</script>
Boofo
07-16-2002, 05:39 AM
Ryan,
Try this EXACT code and let me know if it works. Also, if you have any pop-up killers running, shut them down to test this. They can cause problems too. :)
<!-- Begin
$pmblink pmBox.bgColor='#1D6AA0';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#FF0000';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#1D6AA0';
x=0;
set=0;
}
}
// End -->
</script>
RaZor Edge
07-16-2002, 07:23 AM
Note: Strange.... if you put { tableheadbgcolor } (without space) in this message... it will be change to #1D6AA0... :ogre:
Boofo
07-29-2002, 05:46 AM
Can anyone please tell me how to have the blinking continue after moving the mouse off of mouseover? It blinks fine until you mouseover it and then it stops blinking and will not start back up until you refresh the page.
<tr>
<td id="pmBox" bgcolor="#13486D" colspan="5"
onMouseOver="this.style.backgroundColor='#1C5780';
this.style.cursor='hand';"
onMouseOut="this.style.backgroundColor='#13486D';"
onClick="window.location.href='private.php?s=$session[sessionhash]'" title="Click Here to Open Your Private Messages $inboxname">
<center>
<b><normalfont>$bbuserinfo[username]'s Private Message Information</normalfont></b><br>
<smallfont>You have <b>$newpm[messages]</b> new private messages since your last visit.<br>
(You currently have <b>$unreadpm[messages]</b> unread messages and <b>$allpm[messages]</b> total messages, out of <b>$pmquota</b> allowed, in all of your folders.)
</center></smallfont>
</td></tr>
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='#6699CC';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#FF0000';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#6699CC';
x=0;
set=0;
}
}
// End -->
</script>
Thunderpuck
08-02-2002, 05:12 AM
I don't think I've ever seen so many people have so many problems with such a small hack. ;) I just read the entire thread and am very disappointed to find that nobody else has the same problem as I do.
The hack works fine with my 2.2.6, but for some strange reason the off.gif next to the words "Personal Messages" does not show up. Instead I get that red X that I.E. puts when an image is missing. I right click to get the properties and it says the file is ".gif" no name in front of the period, just .gif - and of course there is no .gif so I'm getting the red X.
Any advice would be greatly appreciated...
mauisun
08-04-2002, 06:53 PM
I would love to get this hack going but unfortunately, php is far from my forte. I started by looking in index.php for the code you said to look for, nothing remotely close to it is in there. I am using v2.2.6
======================================/ if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } /======================================\ | After that, add this code: |
and the newpm, messages or even lightbulb is nowhere to be found anywhere in index.php. can you give me some kind of idea as to why none of these words are even in that file? is this based on some other hack that was supposed to be already added or something? excuse my ignorance, my learning curve is pretty huge right now
.....mauisun
Boofo
08-04-2002, 06:57 PM
You are wrong. On line 27 of an unhacked index.php from version 2.2.6 is the following:
if ($newpm['messages']==0) {
$lightbulb='off';
} else {
$lightbulb='on';
}
eval("\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");
Originally posted by mauisun
I would love to get this hack going but unfortunately, php is far from my forte. I started by looking in index.php for the code you said to look for, nothing remotely close to it is in there. I am using v2.2.6
======================================/ if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } /======================================\ | After that, add this code: |
and the newpm, messages or even lightbulb is nowhere to be found anywhere in index.php. can you give me some kind of idea as to why none of these words are even in that file? is this based on some other hack that was supposed to be already added or something? excuse my ignorance, my learning curve is pretty huge right now
.....mauisun
mauisun
08-04-2002, 07:12 PM
could just smack myself in the head because I searched that whole friggin document and did not see any of those words. sorry to waste your time, haven't a cluse as to why I missed it, will be more cautious int he future. will let you know once it is working good, thank you for the help
....mauisun
mauisun
08-04-2002, 07:23 PM
/======================================\ | By Chen 'FireFly' Avinadav | | chen.avinadav@vbulletin.com | \======================================/ /======================================\ | Open index.php, and find this: | \======================================/ if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } /======================================\ | After that, add this code: | \======================================/ if ($unreadpm['messages']==0) { $pmblink='//'; } else { $pmblink=''; } /======================================\ | Save index.php and upload. | \======================================/ /======================================\ | In the template forumhome_pmloggedin | | find this: | \======================================/ bgcolor="{categorybackcolor}" /======================================\ | Before that, add this code: | \======================================/ id="pmBox" /======================================\ | In the same template find this: | \======================================/ /======================================\ | And after that, add this script: | \======================================/ /======================================\ | By Chen 'FireFly' Avinadav | | chen.avinadav@vbulletin.com | \======================================/
this is an exact copy and paste of the readme text file. after you add the id="pmBox" part of the code it says to add this next and there is nothing there to add, it says after that to add this script, nothing there to add, does anyone else know what the missing code is here?
....mauisun
Boofo
08-04-2002, 07:27 PM
After this:
</smallfont></td>
</tr>
add this:
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='{tableheadbgcolor}';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#ff0000';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='{tableheadbgcolor}';
x=0;
set=0;
}
}
// End -->
</script>
is the rest of it.
mauisun
08-04-2002, 07:46 PM
worked like a charm, my thanks Boofo I appreciate it, wonder why that string of java is not in the original text file at the beginning of this thread? well, anyways, thanks I appreciate it
.....mauisun
Boofo
08-04-2002, 07:51 PM
Wrong again. :) It is in the file in the first post of this thread. Right at the bottom. :) You might want to re-download it. ;)
Originally posted by mauisun
worked like a charm, my thanks Boofo I appreciate it, wonder why that string of java is not in the original text file at the beginning of this thread? well, anyways, thanks I appreciate it
.....mauisun
Baptizer
09-02-2002, 08:06 PM
I upgraded from 2.0.3 to 2.2.7 and i am having a problem. I double checked the hack and it is still intact, but the flashing wont stop! even when i dont have any messages in my box! i even deleted them all! does anyone know how to get it to stop blinking when there are no messages??? ACCCK!!! heh
Baptizer
09-02-2002, 08:33 PM
I got it fixed me thinks...call off the search dogs!! I just reinstalled it again and left out the wheel over stuff....and then re-added wheel over! thanks!
Gohan
09-02-2002, 10:54 PM
i've install on 2.2.7 and work prefect :)
DarkyB
09-03-2002, 05:30 PM
That hax rox0rs
Greystang302
09-06-2002, 02:07 AM
BTW, this hack is also working on Version 2.2.7. I will report any bugs that I find.
Mirri
09-09-2002, 12:42 AM
meh. It wont work for me, i'm using 2.2.6 :ogre: I even un and re installed it 2 times! IT WONT BLINK! I DID CHANGE THE COLORS! *mad* Maybe this just isn't the hack for me..
GaleForce
09-09-2002, 01:20 AM
This doesn't work for me. It only half works. When someone recieves a new private message, the bar turns red, but it doesn't proceed to blink.
Craigr
09-15-2002, 02:21 PM
Works great for me.
Great hack.
Thanks, Craig
[email protected]
vbmenu_register("postmenu_301799", true);
09-23-2002, 12:59 AM
Is there anyway to make the same thing happen on other pages. Not just the main page.
Mark
Sia Bani
10-19-2002, 06:31 PM
does this work properly for anyone on 2.2.8? I get blank pages when this is installed!
BeatDown
10-19-2002, 09:00 PM
Originally posted by Sia Bani
does this work properly for anyone on 2.2.8? I get blank pages when this is installed!
Yes.
I've also integrated it into my "vbHome (Lite)" page successfully.
sklwer
10-20-2002, 10:07 PM
Works like charm on 2.28
dotagious
10-21-2002, 04:32 AM
This is working fine for me on 2.2.8.
BUT
It's using the correct Table Heading Background Color, but is NOT using the correct Category Strip Background Color. I'm not sure what is causing this... or how I can fix it. Any ideas?
dotagious
10-21-2002, 04:35 AM
Ok.. it appears my Category Strip Background Color uses a .gif as part of it's path. So, in the forumhome_pmloggedin template, I just added the color code minus the .gif and it works fine. :)
dotagious
10-21-2002, 04:38 AM
Bah... I noticed now my mouse pointer arrow "hour glasses" every time it blinks. I know it's kind of running a script, but (a) being on a cable modem, and (b) being on a site with VERY low traffic... should this be happening?
Deimos
10-23-2002, 01:49 PM
Nice hack :)
Is there anyway to MOVE the whole PM bit to the top of the main page? If so....can someone tell me how?
I don't wanna bugger up my forums.
waddy
10-24-2002, 02:07 AM
Has anyone got this working properly with background images?
BeatDown
10-24-2002, 02:13 AM
Originally posted by waddy
Has anyone got this working properly with background images?
Kinda depends on what you mean "properly". I use background images for all of my tables, and I do have this hack installed. The background image blinks with a "color" (red on my site). The only thing I don't care for is that for every blink, the image reloads from the server. I believe it's because vB is not allowing the client to cache anything (which makes sense).
I did have to increase the timing factor, though. It was way too fast for me otherwise.
Littlebit
10-26-2002, 05:03 AM
I have it working great with 2.2.8 on IE, but I'm getting a javascript error (pmBox is not defined) on Netscape. Any quick fixes for this?
Fiyah
11-08-2002, 12:50 AM
OK, I'm gonna show you how fresh I really am.......My mind is going blank and I don't know where to start to add this hack. I found "the template forumhome_pmloggedin" and can change taht but where do I start to find the "index.php"? to add the changes there.
Don't laugh too loudly......
Jesus Chio
11-08-2002, 04:11 AM
it rocks! :) took me 3 minutes, thanks
!!!cyr0n_k0r
11-10-2002, 02:33 AM
I installed this hack and even when I dont have any unread PM's it still blinks.
<tr id="cat">
<td id="pmBox" bgcolor="#B2B0A3" colspan="3"><a href="private.php?s=$session[sessionhash]" title="Click Here to Open Your Private Messages $inboxname"><normalfont color="{categoryfontcolor}"><b>Private Messages</normalfont></b></a></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" align="center" valign="top">
<a href="private.php?s=$session[sessionhash]"><img src="{imagesfolder}/sendpm.gif" alt="" border="0">
</td>
<td bgcolor="{firstaltcolor}" 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='#B2B0A3';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#FF0000';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='B2B0A3';
x=0;
set=0;
}
}
// End -->
</script>
Cyberhouse
11-10-2002, 08:05 AM
Works great on 2.2.7 ;)
thanks :D
TheEDIGuy
11-10-2002, 11:53 AM
Just installed on 2.2.8, works great, took about 3 minutes total.
Excellent hack, as usual, FireFly!
350Chevy
11-17-2002, 03:35 AM
Anyway to add a random .wav file to play along with this?
Great hack btw!
alkatraz
11-17-2002, 04:02 AM
works great! thx!
Dynamic One
11-20-2002, 01:55 PM
Thanks for this hack FireFly
XFLBret
11-28-2002, 07:17 AM
OK, I got it working, but I thought of a good improvement to it...
Just so my forums look cleaner, this is what I'd like...
Is it possible to make the text flash also? what i'd like is to make the bar flash to that the background and the text alternate colors. example: if it is normally white text on black background, i'd like to see it so that it flashes back and forth from white text on black background to black text on white background.
i would do it, but know absolutely nothing about coding. could someone else make this happen?
Sebastian
11-28-2002, 07:33 AM
Originally posted by XFLBret
OK, I got it working, but I thought of a good improvement to it...
Just so my forums look cleaner, this is what I'd like...
Is it possible to make the text flash also? what i'd like is to make the bar flash to that the background and the text alternate colors. example: if it is normally white text on black background, i'd like to see it so that it flashes back and forth from white text on black background to black text on white background.
i would do it, but know absolutely nothing about coding. could someone else make this happen?
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='{tableheadbgcolor}';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='{categorybackcolor }';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='{tableheadbgcolor }';
x=0;
set=0;
}
}
// End -->
</script>
See {tableheadbgcolor } and {categorybackcolor } change it to the colors you want, you can use #000000 for black #FFFFFFF for white, etc..
XFLBret
11-28-2002, 08:08 AM
well, yeah, i got that part. but that flashes just the background. i was inquiring on how I could get the text to flash also in sync with the background flashing. I want where it says "private message" to flash also, but different colors then what the background is flashing
did i make sense this time? i don't know if i'm expressing myself well here...
BigCheeze
11-29-2002, 09:55 PM
Works Great! Thanks!!
XFLBret
12-06-2002, 06:46 AM
hello? anyone know the answer to my questions two posts above? i would really like to make this happen. thanks.
Lionel
01-06-2003, 06:36 PM
I have been using that hack for the longest time and it works fine. But is it possible to have just the text blink instead of the entire <td>?
time4akshun
01-13-2003, 04:10 AM
How can I make this hack also appear on vbHome? It is working on Forums Home but I would like it on my vBHome homepage also.
Any help would be appreciated!
Time
time4akshun
01-13-2003, 04:13 AM
<a href="http://www.teckwizards.com/forum/showthread.php?s=&threadid=180&highlight=vbHome+blink" target="_blank">http://www.teckwizards.com/forum/sho...t=vbHome+blink</a>
Think I found my answer.
Time
esoin
02-03-2003, 11:03 PM
works great on 2.2.9! thanks
eso
mini2
02-16-2003, 11:57 AM
I installed 'as-is' and this screwed up my forum display (I have a fixed width forum), it made the forum wider than it should have been.
I changed the code in index.php and this cured my problem, this is how:
// PM Blink Hack
if ($unreadpm['messages']==0) {
$pmblink='';
} else {
$pmblink="<script language=\"JavaScript\">
<!-- Begin
pmBox.bgColor='#1D6AA0';
setInterval(\"Timer()\", 500);
x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#1C5780';
x=0;
set=0;
}
}
// End -->
</script>";
}
And changed the forumhome_pmloggedin template to simply:
$allpm[messages] total messages in all your folders.)</smallfont></td>
</tr>
$pmblink
Hope that's useful to others.
LOL vBulletin parses the code ^^^ never realised that before (ie the background color etc).
Well, hopefully you can figure it out if you need to!
Zelda-King
02-17-2003, 02:18 PM
I'm using it. Works fine. Just edit the bottom colour value in the template as you see fit I say (regarding 'same-colour' problems);
pmBox.bgColor='insert colour value';
x=0;
set=0;
}
}
// End -->
</script>
mini2
02-17-2003, 02:20 PM
I am sure it will work fine in most instances, but for some reason it completely screwed up my fixed width forum, the changes above meant no problems what so ever, and will also work for other forums (not just fixed width).
:)
maligno
02-17-2003, 02:52 PM
<font size="5">thanks </font> :knockedout: :knockedout:
Paraone
02-21-2003, 10:43 PM
Originally posted by Boofo
Ryan,
Try this EXACT code and let me know if it works. Also, if you have any pop-up killers running, shut them down to test this. They can cause problems too. :)
<!-- Begin
$pmblink pmBox.bgColor='#1D6AA0';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#FF0000';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#1D6AA0';
x=0;
set=0;
}
}
// End -->
</script>
YES THANK YOU, this made my 2.3.0 start blinking...I LOVE YOU...
Boofo
02-22-2003, 12:01 AM
I have a piece of code that will give you blinking text (instead of a blinking background) that works in IE AND Netscape, if anyone is interested.
Boofo
02-22-2003, 12:07 AM
Originally posted by Paraone
YES THANK YOU, this made my 2.3.0 start blinking...I LOVE YOU...
No problem. I'll let the wife know she has competition now. Maybe it'll straighten her out. ;)
XFLBret
03-05-2003, 07:15 AM
Originally posted by XFLBret
OK, I got it working, but I thought of a good improvement to it...
Just so my forums look cleaner, this is what I'd like...
Is it possible to make the text flash also? what i'd like is to make the bar flash to that the background and the text alternate colors. example: if it is normally white text on black background, i'd like to see it so that it flashes back and forth from white text on black background to black text on white background.
i would do it, but know absolutely nothing about coding. could someone else make this happen?
still waiting for an answer...for months now thank you. how about some help here?
pixelpunk
03-09-2003, 06:19 AM
Ok... one question.
On my forum index page the PM title BG is blue. However I can't find the part of code to change this to to the dark grey like the rest of the forum headers.
Why is it blue? Or where do I change this?
ImportPassion
03-13-2003, 06:44 PM
I changed it up a bit and made it a little more efficient. For me at least anyway.
<script language="JavaScript1.2">
//configure interval btw flash (1000=1 second)
$pmblink var flashspeed=500
function flashme(){
var flashtable=document.getElementById? document.getElementById("pmBox") : document.all? document.all.pmBox : ""
if (flashtable){
var col1 = "{ firstaltcolor }";
if (flashtable.style.borderColor.indexOf(col1.toLower Case())!=-1)
flashtable.style.borderColor="{ tableheadbgcolor }"
else
flashtable.style.borderColor="{ firstaltcolor }"
}
}
$pmblink setInterval("flashme()", flashspeed)
</script>
I also added this to the TD
style="border: medium solid { firstaltcolor };"
remove the spaces inside the {}
D
Boofo
03-13-2003, 06:48 PM
Will this work with all browsers?
ImportPassion
03-13-2003, 07:04 PM
unfortunately no, but should work with IE and NS6. Does not work with Mozilla 1.2, and I had it working with Opera, but it doesn't seem to want to work anymore.
I was looking for an all-in-one solution too.
D
Boofo
03-13-2003, 07:29 PM
Well, you're in luck then. I have one that works with mozilla and IE and I think Netscape for sure. Want it? ;)
Boofo
03-13-2003, 07:31 PM
Oh, I forgot to mention, mine only flashes the text.
ImportPassion
03-13-2003, 07:37 PM
text i can do. need border or cell to flash.
thanks tho.
D
Boofo
03-13-2003, 07:39 PM
Could probably re-work the code to do that. ;)
ImportPassion
03-13-2003, 08:02 PM
send it over and let me see. :cool:
Boofo
03-13-2003, 08:09 PM
Use the following javascript in the header of the page and put
<blink>Text goes here</blink>
where ever you want it to go. If you get it working for the background, let me know. ;)
<SCRIPT>
<!--
function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i<blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}
function startBlink() {
if (document.all)
setInterval("doBlink()",500)
}
window.onload = startBlink;
// -->
</SCRIPT>
ImportPassion
03-13-2003, 08:15 PM
doesn't work in Opera 7.01
WIll see what i can do with it, but I i know u can't change the visibility on colors.
Boofo
03-13-2003, 08:19 PM
I just do this to get color:
<blink>
<font color="red"><b>$bbuserinfo[username], you have $unreadpm[messages] new private messages</font>
</blink>
and it works fine here. ;)
ImportPassion
03-13-2003, 09:09 PM
again, i am not talking about text. cells and borders
AllMadden.net
03-15-2003, 05:25 PM
Mine flashes red one time...and then doesn't do anything else. Any idea why?
pixelpunk
03-19-2003, 08:17 PM
Mine flashes ok but the normal color is IE's default color which is uaually a color that doesn't match A THING on my site.
Does anyone know how to set the default color?
pixelpunk
03-24-2003, 06:22 PM
bump
leitel
04-02-2003, 01:52 PM
Does the link on the first post point to the latest hack? Sometimes hack threads do sometimes they don't. :)
Master Computer
04-03-2003, 07:49 PM
Does this work with vB 2.2.8?
350Chevy
04-03-2003, 09:19 PM
Today at 09:49 PM Master Computer said this in Post #239 (https://vborg.vbsupport.ru/showthread.php?postid=377186#post377186)
Does this work with vB 2.2.8?
Yes.. works with 2.2.9 and 2.3.0 as well..
Master Computer
04-04-2003, 10:09 AM
At first, thanks for the quick reply.
I have two questions here:
1. the guide says that I have to put in the template "forumhome_pmloggedin":
/======================================\
| Before that, add this code: |
\======================================/
id="pmBox"
but I have another variable there:
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
so, what do I have to do?
2. Also, about the javascript function. Do I have to put it after the last line in the template? I don't know where since I don't have "</smallfont></td></tr>"
DarkDraco07
04-07-2003, 03:45 AM
i saw a request for blinking background images and didnt see a reply. here is how to do it.
1)upload 2 images into the forums/images folder that you want to blink
2)add this line to the template insteade of the original:
[code]<script language="JavaScript">
<!-- Begin
$pmblink pmBox.backbround='{imagesfolder}/img1.gif';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.background='{imagesfolder}/img1.gif';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.background='{imagesfolder}/img2.gif';
x=0;
set=0;
}
}
// End -->
</script>
*note: replace the img1.gif and img2.gif with the file names that you uploaded
DarkDraco07
04-07-2003, 03:45 AM
i saw a request for blinking background images and didnt see a reply. here is how to do it.
1)upload 2 images into the forums/images folder that you want to blink
2)add this line to the template insteade of the original:
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.backbround='{imagesfolder }/img1.gif';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.background='{imagesfolder }/img1.gif';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.background='{imagesfolder }/img2.gif';
x=0;
set=0;
}
}
// End -->
</script>
*note: take the space in {imagesfolder } out
*note: replace the img1.gif and img2.gif with the file names that you uploaded
DarkDraco07
04-07-2003, 03:46 AM
double posts
Splitfyre
04-17-2003, 08:56 PM
Didn't work for me.
Master Computer
05-08-2003, 10:29 PM
I've posted a questions 4 posts before and didn't get any reply.
I assume that I couldn't explain the issue.
Here I attach the forumhome_pmloggedin template to show you what I have.
I don't know how to apply that hack since my template has id="AutoNumber1".
Any suggestion for how to get that hack working?
0ptima
05-09-2003, 09:50 PM
Today at 12:29 AM Master Computer said this in Post #246 (https://vborg.vbsupport.ru/showthread.php?postid=393104#post393104)
I've posted a questions 4 posts before and didn't get any reply.
I assume that I couldn't explain the issue.
Here I attach the forumhome_pmloggedin template to show you what I have.
I don't know how to apply that hack since my template has id="AutoNumber1".
Any suggestion for how to get that hack working?
I have a similar problem, my template says:
The instructions say:
/======================================\
| In the template forumhome_pmloggedin |
| find this: |
\======================================/
bgcolor="{categorybackcolor}"
/======================================\
| Before that, add this code: |
\======================================/
id="pmBox"
My template has:
<tr id="cat">
<td bgcolor="{categorybackcolor}"
So do I do the following: <tr id="cat" id="pmBox"> ?
jclay
05-26-2003, 12:08 AM
But where do I add this. I'm using 2.3 and I tried adding it to the end of forumhome_pmloggedin and it didn't do anything.
Can someone please advise.
(I'm trying to learn, but I'm still very new to this type of stuff)
Thanks again!!!
paratek
05-28-2003, 01:26 PM
05-09-03 at 11:50 PM 0ptima said this in Post #247 (https://vborg.vbsupport.ru/showthread.php?postid=393236#post393236)
I have a similar problem, my template says:
My template has:
<tr id="cat">
<td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif"
So do I do the following: <tr id="cat" id="pmBox"> ?
It should look like this:
<td id="pmBox" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif"
Paratek
BlackDeath
05-30-2003, 02:28 AM
u spelled category wrong. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.