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

Reply
 
Thread Tools
Play Sound When Private Message Received - the Amy Way Details »»
Play Sound When Private Message Received - the Amy Way
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-17-2003 Last Update: Never Installs: 34
 
No support by the author.

This hack is based off of one by EvilLS1 who also kindly contributed the wav file.

His hack plays a sound when the user visits the forumhome page if they have a new PM.

My version plays the sound on any page much the same as the PM popup works. In addition, my version has a usercp option for members to turn off sounds if they wish.

It's a rather easy hack to install.

Amy

Show Your Support

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

Comments
  #2  
Old 03-18-2003, 12:52 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent work there, young lady. Let me be the first to (c)lick the install button.
Reply With Quote
  #3  
Old 03-18-2003, 12:55 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You see, Amy? Now who's flirting with you?

Nice
Reply With Quote
  #4  
Old 03-18-2003, 12:57 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, but I'm old and harmless. I can't even handle what I have at home let alone anything else.
Reply With Quote
  #5  
Old 03-18-2003, 01:54 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I left out two steps in the documentation earlier. The zip is updated, but if you already installed, here is the rest:

Run this query:

ALTER TABLE `user` ADD `pmsound` TINYINT DEFAULT '1' NOT NULL;


In the modifyoptions template
Find:

Code:
<tr>
	<td bgcolor="{firstaltcolor}"><normalfont><b>Pop up a box when you receive a Private Message?</b></normalfont><br>
	<smallfont>This will pop up a small warning box when you receive a Private Message asking whether you want to view the message.</smallfont></td>
	<td bgcolor="{firstaltcolor}"><normalfont>
		<input type="radio" name="pmpopup" $pmpopupchecked value="yes"> yes
		<input type="radio" name="pmpopup" $pmpopupnotchecked value="no"> no
	</normalfont></td>
</tr>

Add after:


Code:
<tr>
	<td bgcolor="{firstaltcolor}"><normalfont><b>Play a sound when you receive a Private Message?</b></normalfont><br>
	<smallfont>This will play up a sound when you receive a Private Message.</smallfont></td>
	<td bgcolor="{firstaltcolor}"><normalfont>
		<input type="radio" name="pmsound" $pmsoundchecked value="yes"> yes
		<input type="radio" name="pmsound" $pmsoundnotchecked value="no"> no
	</normalfont></td>
</tr>
Reply With Quote
  #6  
Old 03-18-2003, 01:55 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See what happens when you guys flirt? I get distracted and make mistakes

Amy
Reply With Quote
  #7  
Old 03-18-2003, 03:52 AM
Vile's Avatar
Vile Vile is offline
 
Join Date: Apr 2002
Location: Arizona, USA
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet hack.

*installed.
Reply With Quote
  #8  
Old 03-18-2003, 11:47 AM
SgtSling SgtSling is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amy.. I cannot get this to work...
No sound.. nothing
Reply With Quote
  #9  
Old 03-18-2003, 11:49 AM
SgtSling SgtSling is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I checked my files.
and it looks like I did everything correctly..

and yes I checked recieve sound pm in modify options
Reply With Quote
  #10  
Old 03-18-2003, 01:24 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:47 AM SgtSling said this in Post #8
Amy.. I cannot get this to work...
No sound.. nothing
That's because I forgot another step in the documentation. I am not a night person. Gotta quit releasing these things at night.

In youre header template, you need to put :

Code:
$headsound
I put it at the very top of my header template.

Off to update the documentation.

Amy
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 07:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04780 seconds
  • Memory Usage 2,286KB
  • Queries Executed 23 (?)
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
  • (3)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
  • (2)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_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