Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Jitter PM Alert Hack Details »»
Jitter PM Alert Hack
Version: 1.00, by John John is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-09-2003 Last Update: Never Installs: 15
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-10-2003, 01:19 AM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed

/me licks install as well
Reply With Quote
  #13  
Old 01-10-2003, 09:21 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one
Reply With Quote
  #14  
Old 01-10-2003, 05:57 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks nice John Good work

- miSt
Reply With Quote
  #15  
Old 01-10-2003, 09:27 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Cool hack

Satan
Reply With Quote
  #16  
Old 01-10-2003, 09:31 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #17  
Old 01-11-2003, 08:29 PM
Mithan Mithan is offline
 
Join Date: Apr 2002
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 01-11-2003, 08:43 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>";
Reply With Quote
  #19  
Old 01-12-2003, 10:25 AM
empreur76 empreur76 is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 !
Reply With Quote
  #20  
Old 01-12-2003, 12:59 PM
Mithan Mithan is offline
 
Join Date: Apr 2002
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:00 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.11796 seconds
  • Memory Usage 2,289KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete