![]() |
New PM's in Header (blinking text or image)
Since I don't really like the the PM window notification alert built in VB, I wanted to have a little link in the header that blinks and tell me (no matter what page i view at the moment) that I have a new PM from one of the users.
The link is invisible by default. When you get a message, it starts to [high]blink[/high]. The good part about this hack is that you don't have to edit the database and also that you can customise it through the VB template system. The Java script that makes the link to blink doesn't insert any [high]onLoad();[/high] in <body>, so it will work independently from any other Java scripts you inserted in your pages. This hack will work in both, IE and Netscrape. ESTIMATED INSTALL TIME: 3 minutes TESTED IN VERSION: 2.2.5 NOTE: As a thank you for using my hack, please click on the INSTALL button. You will receive updates in your email, whenever I add new features to it and it will let me evaluate better the quality of my hacks. [high]Also post a reply with your comments. Your oppinion is important to me.[/high] [high]HACK UPDATES[/high] Version 1.1 Released ------------------------------------------- Added the choice between 'blinking text' or 'blinking image' To download the latest version of this hack, click below: |
a demo... ;)
|
very nice man
|
Sweet! Easy to install, and it really works! Hard to ignore a flashing link at the top of the page.
Good work nakkid, keep em coming :D |
i'm glad you like it. thanks alot.
|
cool!!
Thanx nakkid btw nice design(screenshot) :) |
][ installed | clicked install | voted ]
:D |
Installed, very nice :p
Hey that is a sweet forum in that attachment picture, is that yours Nakkid? No links? ^-^' |
is my new skin.. for my site. ;)
soon to be online. |
great hack!
concern - mine is flashing whenever i have a new PM but i woudl prefer to have it flash when i have an unread PM. right now it is flashing away yet i have read all the PM's any way to change this? |
you did something wrong? is working perfectly.. what version you installed? the text?
post a link i wanna see... |
version 2.2.4 - text
|
works great here... recheck it again... u may made a mistake somewhere... be sure to use IE5.x and up...
|
it should work fine in this version also.. but i didnt test it. anyone else have problems? i doubt it.. but let me know please.. i'm not perfect.. :)
|
Quote:
netscrape or microcrap, both. |
nakkid, I have already the Blink on PM hack installed (by FireFly)
so is it possible to add $headerpms variable in another place, like in postbit, under the avatar? thanx |
you can add it anywhere you want.
|
]even in my XXX ? ;)
|
cool!!
installed :D but it didnt work for me in the postbit. |
hmm i just put it in the forum home.. it works anywhere.
|
]
Quote:
|
The headinclude script does slow down the loading of my pages quite a bit for some reason. Also, the PM text is blinking even after you have read your message - it blinks when you have new messages since your last visit, not when you have unread messages (unlike Firefly's PM bar blink hack).
|
Great hack and all, but in the install file it says that you've been having trouble with the div tags. You don't even need the div tag, the A tag has the id attribute too (oh yeah, and there is no title attribute in the A tag either), so you can change
Code:
<div id="pm"><a href="private.php?s=$session[sessionhash]" title="Private Messages"><smallfont>$headpm[messages] New PM(s)</smallfont></a></div> Code:
<a href="private.php?s=$session[sessionhash]" id="pm"><smallfont>$headpm[messages] New PM(s)</smallfont></a> |
cool.. thanks alot for the tip.. you see?? i get help from everyone..
i will mod this.. but before can anyone else try it? i guess is done this way for netscape.. can anyone with netscape test it? thanks. |
Quote:
and this is not a hack inspired from firefly's. ;) |
]1) I can assure u, that it doesn't slow down your forums at all... :)
2) works just great at mine forums, no errors, no blinking after u have read all messages 3) Firefly's hack and this one is two different things... :p |
]works fine, thanx :)
Quote:
|
Quote:
|
this is wierd. i get 2 comments. one that is working perfect and the other that it slows down the server and it doesnt blink only on new pm's.
well, it does blink only in new pm's. and it doesnt slow down my server. so far i got 3 people telling me on messenger that it works perfect (blinks the right way, server ok) and 2 here, that it doesnt. can you be more specific? what browser do you use? is all related to browser. |
Works fine for me, blinks with new messages (read and unread) and server is seeing no increase whatsoever. Using IE 6.
|
but does becomes invisible right after you checked the messages?
once you clicked on the link, it should dissapear. |
No, it doesn't. vB still classifies it as "new" even after I read it, it still blinks in the header and still says I have one new message on the forum home too (in the PM section).
|
that explains why it still blinks. the script grabs the status of your new messages. when your message is not considered "new" (in pm section), your link will stop blinking.
|
Quote:
It's a great hack, well done. :) Keep up with the great hacks. Sorry if I came across as though I was complaining - I was just pointing out what I found, that's all. |
for unread pm's replace:
PHP Code:
PHP Code:
|
That's in the global.php too, for those that are wondering. Back to the slow loading times, I don't see a difference as I am on a cable modem, but I bet dial up users will feel some lagging. Any way to add the extra javascript to only the new posting pages?
|
"That's in the global.php too"?? what do you mean?
you only change the code in global.php. |
I know, but in your post you didn't mention it, so I had to load up the install file again and checked the file, instead of just editing it through vBengine like I do with most other hack updates :)
|
there is no need to mention it.. the changes are done only in global.php (where the $headpm variable appears).
in the install file is marked clearly that you mod forum/global.php, not other files. |
Yes, but again, I don't have your hack/install file memorized, so a simple "In global.php" would have been nice, so I wouldn't have had to open up the file again. I've installed many hacks, I don't remember which hacks edit which files.
|
All times are GMT. The time now is 04:43 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:
|