PDA

View Full Version : Jitter PM Alert Hack


John
09 Jan 2003, 23:01
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 (http://www.vbulletin.org/forum/showthread.php?postid=341084#post341084)

John
09 Jan 2003, 23:03
Screenshot:

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

Auero
09 Jan 2003, 23:28
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
09 Jan 2003, 23:32
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
09 Jan 2003, 23:43
Hehe, looks fun

/me installs

Brad
09 Jan 2003, 23:52
/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
10 Jan 2003, 00:14
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
10 Jan 2003, 01:03
Very neat! but i guess it only works with IE!

Anyway, you got my click

/me installs.

Brad
10 Jan 2003, 02:00
Drk: ive done it twice now i think ;)

DrkFusion
10 Jan 2003, 02:19
Installed

/me licks install as well

Logician
10 Jan 2003, 10:21
nice one :)

Dean C
10 Jan 2003, 18:57
This looks nice John :) Good work

- miSt

Chris M
10 Jan 2003, 22:27
/me licks install:p

Cool hack:)

Satan

John
10 Jan 2003, 22:31
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
11 Jan 2003, 21:29
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
11 Jan 2003, 21:43
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
12 Jan 2003, 11:25
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
12 Jan 2003, 13:59
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 :)