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)

350Chevy 05-31-2004 06:23 PM

Quote:

Originally Posted by will_lean
this hack c :surprised: :surprised: l

one question before i install this how can i use this hack with the option to play the wav files on a seperate server.
(my host doesnt allow sound files) :ermm:


Hrmmm... Server doesn't allow sound files? How strange! :)

in global.php edit this line to point to your sound files

find:
Code:

$sound = iif($bbuserinfo['pmunread'], '<embed src="sounds/message'.$srand_snd.'.wav" autostart="true" loop="0" hidden="true"></embed>');
change to example:

Code:

$sound = iif($bbuserinfo['pmunread'], '<embed src="http://www.lssix.com/forums/sounds/message'.$srand_snd.'.wav" autostart="true" loop="0" hidden="true"></embed>');
the above example should pull the sounds from my server..

if you wish to place the sounds elsewhere make sure you have the wav files installed on the other server all named messagexx.wav (xx denotes the number 1-10) and point it to that server and folder name. I haven't tested the above but don't see why it wouldn't work.

neocorteqz 05-31-2004 08:45 PM

Sweet addition.

/me clicks install.

Question, how many queries does it add? My guess would be one?

Thanks again for a cool hack.

neocorteqz 06-01-2004 06:20 AM

where do i set it to use more sounds?

Edit:

is anyone having problems in Mozilla??

And the pop up box is not popping up.

350Chevy 06-01-2004 02:13 PM

Quote:

Originally Posted by neocorteqz
Sweet addition.

[high]* neocorteqz clicks install.
[/high]

Question, how many queries does it add? My guess would be one?

Thanks again for a cool hack.


I never tested, it shouldn't add any queries until a PM is sent. If anything then yes, one query.

Quote:

Originally Posted by neocorteqz
where do i set it to use more sounds?

In global.php

Code:

        srand(make_seed()); $srand_snd = rand (1,10);
change the number 10 in rand (1,10) to whatever number you wish. :)

Quote:

Originally Posted by neocorteqz
And the pop up box is not popping up.

I just tested my board and the popups work fine for me with this. The code should not have any effect on the popups. ;)

neocorteqz 06-01-2004 09:07 PM

Quote:

Originally Posted by 350Chevy
I never tested, it shouldn't add any queries until a PM is sent. If anything then yes, one query.



In global.php

Code:

        srand(make_seed()); $srand_snd = rand (1,10);
change the number 10 in rand (1,10) to whatever number you wish. :)



I just tested my board and the popups work fine for me with this. The code should not have any effect on the popups. ;)


Thank you sir, other than popups not popping up, it works great. Nice Job. :)

I'll see if I messed something up. ;)

Onkel_Tom 06-03-2004 11:20 AM

nice hack, thanks !
clicked install

Flow Fusion 06-09-2004 09:27 AM

Very cool hack I get errors as well but yes I do have other hacks as well installed so my members will live.

TTG 06-09-2004 04:39 PM

Works well .. took 10mins to install ..

Thanks for that.

350Chevy 06-09-2004 08:48 PM

Quote:

Originally Posted by Flow Fusion
Very cool hack I get errors as well but yes I do have other hacks as well installed so my members will live.

What type of errors? Anything I can do to help?

monstergamer 06-10-2004 04:04 AM

some members are reporting that they dont hear any thing
what could be the problem?


All times are GMT. The time now is 05:31 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.01267 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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