Version: 1.00, by TECK
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 04-13-2002
Last Update: Never
Installs: 44
No support by the author.
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:
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
Originally posted by nakkid 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.
It doesn't slow down the server, it only slows down the loading up of pages because of the javascript added to each page, that's all. If it works for people, great. Don't get me wrong, the text does blink with new PMs - I was hoping for something more similar to Firefly's which blink only for new UNREAD PMs, not new READ PMs.
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.
$headpm=$DB_site->query_first("SELECT count(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers");
with:
PHP Code:
$headpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers");
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?
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.
is better to read the hack readme before you install it, or do any changes. i do this all the time with any hacks i reedit, so i have it fresh in my head the procedure.
as i said before, we are talking about this hack, not another. so it reffers only to global.php file.