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)
-   -   Play Sound When Private Message Received - the Amy Way (https://vborg.vbsupport.ru/showthread.php?t=50371)

amykhar 03-17-2003 10:00 PM

Play Sound When Private Message Received - the Amy Way
 
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

Boofo 03-18-2003 12:52 AM

Excellent work there, young lady. Let me be the first to (c)lick the install button. ;)

filburt1 03-18-2003 12:55 AM

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

Nice :)

Boofo 03-18-2003 12:57 AM

Yeah, but I'm old and harmless. I can't even handle what I have at home let alone anything else. ;)

amykhar 03-18-2003 01:54 AM

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>


amykhar 03-18-2003 01:55 AM

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

Amy

Vile 03-18-2003 03:52 AM

Sweet hack.

*installed.

SgtSling 03-18-2003 11:47 AM

Amy.. I cannot get this to work...
No sound.. nothing

SgtSling 03-18-2003 11:49 AM

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

and yes I checked recieve sound pm in modify options

amykhar 03-18-2003 01:24 PM

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


All times are GMT. The time now is 05:48 AM.

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.01656 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete