Log in

View Full Version : Jitter PM Alert Hack


John
01-09-2003, 10:00 PM
Okay, this is nothing special -

I quickly made it for my board, where the flashing PM bar wouldn't have looked very good. This is a more subtle, but effective way of letting your users know when they have a PM. When someone gets a PM, the "Private Messages"
link on the front page jitters slightly, letting the user know that they have a PM.

I hope this hasn't been done before!

John

Addon: Number of unread PMs (https://vborg.vbsupport.ru/showthread.php?postid=341084#post341084)

John
01-09-2003, 10:03 PM
Screenshot:

John
01-09-2003, 10:09 PM
Just updated the code, although I think one person downloaded it first - please redownload the install file!

Auero
01-09-2003, 10:28 PM
Off Topic:

Ultimate User Profiles - Including "ID Images", Desktop screenshot, Mini Bio, Journal, and Mini Gallery! - When is a release date for this? It sounds very good.

On Topic: That's a cool hack but maybe the jitter text might get annoying :p

John
01-09-2003, 10:32 PM
Originally posted by Auero
Off Topic:

Ultimate User Profiles - Including "ID Images", Desktop screenshot, Mini Bio, Journal, and Mini Gallery! - When is a release date for this? It sounds very good.

On Topic: That's a cool hack but maybe the jitter text might get annoying :p

On Topic: Only annoying if you constantly get PMs and spend all of your time on the front page ;)

Off Topic: I've been working on vBay more recently, but I'll be continuing with this shortly...

DrkFusion
01-09-2003, 10:43 PM
Hehe, looks fun

/me installs

Brad
01-09-2003, 10:52 PM
/me licks install

the ultimate user profiles is just what i need, so i hope you get the time to work on it.

Thanks for this hack aswell, the flashing pm bar just looked ugly on my new design.

DrkFusion
01-09-2003, 11:14 PM
Originally posted by Anime-loo
* Anime-loo licks install

the ultimate user profiles is just what i need, so i hope you get the time to work on it.

Thanks for this hack aswell, the flashing pm bar just looked ugly on my new design.

lol..licks :p thats a new one.

JulianD
01-10-2003, 12:03 AM
Very neat! but i guess it only works with IE!

Anyway, you got my click

/me installs.

Brad
01-10-2003, 01:00 AM
Drk: ive done it twice now i think ;)

DrkFusion
01-10-2003, 01:19 AM
Installed

/me licks install as well

Logician
01-10-2003, 09:21 AM
nice one :)

Dean C
01-10-2003, 05:57 PM
This looks nice John :) Good work

- miSt

Chris M
01-10-2003, 09:27 PM
* Chris M licks install:p

Cool hack:)

Satan

John
01-10-2003, 09:31 PM
lol, thanks everyone - this hack only took me 20 minutes, it's nothing compared to the beast of a hack I'm working on at the moment. (vBmail - with Chen's permission, of course)

Mithan
01-11-2003, 08:29 PM
What I would like to see, is a hack that adds, in brackets () next to Private Messages, the number of PM's you have, when you get them, then goes away or clears after you reply to them. This would be very effective.

John
01-11-2003, 08:43 PM
Originally posted by Mithan
What I would like to see, is a hack that adds, in brackets () next to Private Messages, the number of PM's you have, when you get them, then goes away or clears after you reply to them. This would be very effective.

This is easy - if you've already installed the hack, simply open index.php and:

FIND:

$privtext = "<span id=\"jiggle0\" class=\"jc\">Private Messages</span>";


REPLACE WITH:

$privtext = "<span id=\"jiggle0\" class=\"jc\">Private Messages</span> ($unreadpm[messages])";


This will add the number of unread PMs you have next to "Private Messages" in brackets. However, the number of PMs will NOT jiggle!

To make the number of PMs jiggle along with "Private Messages":

FIND:

$privtext = "<span id=\"jiggle0\" class=\"jc\">Private Messages</span>";


REPLACE WITH:

$privtext = "<span id=\"jiggle0\" class=\"jc\">Private Messages ($unreadpm[messages])</span>";

empreur76
01-12-2003, 10:25 AM
thanks for this hack but dont work for me !!
i think i have already this hack install ! (play a sound ) but i'm not sure !
in index .php i have this
//new PM sound hack
if ($unreadpm['messages']==0) {
$sound='';
} else {
$sound='<embed src="message.wav" autostart="true" hidden="true">';
}
//end new PM sound hack

can you help me !? i'm install the hack but not trembling

thank you !

Mithan
01-12-2003, 12:59 PM
Yes, but I was just hoping to show Private Messages (X) at the top, without the giggle. I tried your code, editing the CSS span line out, but that didn't work. I guess I will leave it.

Thanks anyways :)