vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Play a sound when a user has a new PM. (https://vborg.vbsupport.ru/showthread.php?t=92524)

Oblivion Knight 08-09-2005 08:04 PM

The easiest and rather sloppy way of achieving that would be to change this line:
HTML Code:

<if condition="$vbulletin->userinfo[pmunread]>0">
To this:
HTML Code:

<if condition="$vbulletin->userinfo[pmunread]>0 AND THIS_SCRIPT != 'private'">
I think that should sort you out.. ;)

Boofo 08-09-2005 08:05 PM

Quote:

Originally Posted by Oblivion Knight
The easiest and rather sloppy way of achieving that would be to change this line:
HTML Code:

<if condition="$vbulletin->userinfo[pmunread]>0">
To this:
HTML Code:

<if condition="$vbulletin->userinfo[pmunread]>0 AND THIS_SCRIPT != 'private'">
I think that should sort you out.. ;)

Bingo! I never even thought of that. I guess I HAVE been away too long, huh? ;)

Thank you, sir. ;)

Wayne Luke 08-23-2005 03:23 PM

Can anyone recommend any free sounds for this?

amykhar 08-23-2005 03:27 PM

I included one with the mod. Another I like is the AOL "You've got mail" wav.

Here's some others:
http://humor.about.com/cs/soundbites/p/ds042804.htm

Biker_GA 08-23-2005 03:28 PM

Heh... Just fire up a sound recorder and make your own. Oh the fun I'm going to have with this! LMAO!

Boofo 08-23-2005 04:44 PM

Wayne, I got one where the 7-11 guy says "You've got mail in your inbox". ;)

bonnmac 08-23-2005 09:49 PM

is there any way to play random sounds? thanks for a great hack

amykhar 08-24-2005 02:03 AM

Yes. You could put your sounds in a folder and give them names like 1.wav, 2.wav etc. Then, have a plugin pick a random number to select the wav for you. That would be the easiest way that I can think of.

bonnmac 08-24-2005 03:39 AM

Quote:

Originally Posted by amykhar
Yes. You could put your sounds in a folder and give them names like 1.wav, 2.wav etc. Then, have a plugin pick a random number to select the wav for you. That would be the easiest way that I can think of.

well i am a lamer when it comes to doing this how about sometime in the near future you can do this as one of your projects lol your so good at this thanks for all your grat stuff

Jagged Tooth 08-24-2005 09:25 AM

I just followed that link through with all the .wav's and it gave me a trojan so yeah, just watch out.


All times are GMT. The time now is 08:42 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.01430 seconds
  • Memory Usage 1,735KB
  • 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_html_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