vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Private Message Sound Notification (https://vborg.vbsupport.ru/showthread.php?t=65570)

MaxScript 05-28-2004 01:10 AM

is there an AOL sounds package ?

Revenge 05-28-2004 01:40 AM

Hm, plays also sound when I go in the Usercp and click any link... every time a new page is loaded...???

mharmon 05-28-2004 01:57 AM

This is a great hack but I agree with the above comment... Is there anyway to make this so it will play ONCE per session? You have to listen to it 3 times before you actually read your message.

350Chevy 05-28-2004 03:09 AM

I did this so it played on every page no matter what page your users were viewing.

You can take the $sound out of the navbar template and just place it in the FORUMHOME template anywhere you wish. If you do that it will only play the wav file when they're on the Forum's home page. Since it's a random sound I don't think users mind hearing a different sound two times more before reading thier message. And with the option to turn it off they can disable it if choosen.

Adding the option not to play a sound when entering the private messages would require much more hacking and not really worth it. ;)

350Chevy 05-28-2004 03:11 AM

Quote:

Originally Posted by MaxScript
is there an AOL sounds package ?


What are you looking for?

Here you can find some AOL "YOU GOT MAIL" type message .wav files. :)

http://www.emailgifsandsounds.com/index-eng.html

350Chevy 05-28-2004 03:13 AM

I've also noticed about 3 or 4 of you that posted haven't clicked the "installed" link. :) Please click it if you plan to keep it.

As for the sound being played after you enter the Private Message panel I'll look into changing that. Pretty tired now though and the weekend ahead I doubt I'll be able to get to it until Monday (if I can even do it at all.. lol)

EvilLS1 05-28-2004 03:33 AM

Quote:

Originally Posted by 350Chevy
Adding the option not to play a sound when entering the private messages would require much more hacking and not really worth it. ;)

You could use a conditional in the navbar template like this:

Code:

<if condition="THIS_SCRIPT!='private'">       
        $sound
</if>

If ya also want to stop the sound when viewing the usercp use this:
Code:

<if condition="THIS_SCRIPT!='private' and THIS_SCRIPT!='usercp'">       
        $sound
</if>

Gotta love template conditionals. :)

350Chevy 05-28-2004 12:37 PM

Oh yeah.. never thought of that. Too tired lastnight. Thnx Evil. :)

First post updated. :)

The Realist 05-28-2004 01:49 PM

Installed.

Thanks M8 :)

Revenge 05-28-2004 01:57 PM

Perhaps there is an easy way, that the sound only plays once, so if the user does not read the mail it is still playing until he reads it?


All times are GMT. The time now is 03:10 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.01195 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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