vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Jitter PM Alert Hack (https://vborg.vbsupport.ru/showthread.php?t=47555)

John 01-09-2003 10:00 PM

Jitter PM Alert Hack
 
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

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

Quote:

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

Quote:

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

[high]* Chris M licks install:p
[/high]

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

Quote:

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:
Code:

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

  $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:
Code:

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

  $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 :)


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
  • Page Generation 0.01026 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete