![]() |
Hi all!
What must be edited if i want to hear a *.wav file when there is a new private message? Thank you! |
thats not such a bad idea,
wait a sec. but you cant play a .wav in explorer. [Edited by Scaramanga_gold on 01-07-2001 at 08:36 AM] |
sure you can,
in "index.php" find: if ($newpmcount == 0) { $lightbulb = 'images/off.gif'; } else { $lightbulb = 'images/on.gif'; } after the "} else {" add: <object id="sound" classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" align="baseline" border="0" width="0" height="0"> <param name=\"ShowDisplay\" value=\"0\"> <param name=\"ShowControls\" value=\"0\"> <param name=\"ShowPositionControls\" value=\"0\"> <param name=\"ShowSelectionControls\" value=\"0\"> <param name=\"ShowTracker\" value=\"0\"> <param name=\"MovieWindowSize\" value=\"0\"> <param name=\"FullScreenMode\" value=\"0\"> <param name=\"MovieWindowWidth" value=\"0\"> <param name=\"MovieWindowHeight" value=\"0\"> <param name=\"AutoStart\" value=\"1\"> <param name=\"AutoRewind\" value=\"1\"> <param name=\"PlayCount\" value=\"2\"> <param name=\"SelectionStart\" value=\"0\"> <param name=\"Appearance\" value=\"1\"> <param name=\"BorderStyle\" value=\"0\"> <param name=\"FileName\" value=\"Worms Armageddon MIX.mp3\"> <param name=\"DisplayMode\" value=\"0\"> <embed src=\"Worms Armageddon MIX.mp3\" name=\"sound\" autostart=\"true\" loop=\"2\" hidden=\"true\"> </embed> </object> Change all the numbers & the file name to match yours, that should work (not tested). You can use .wav & even .mp3 |
Sorry but if i change the code ... i get an error msg :
Code:
Parse error: parse error in /home/www/htdocs/vb/index.php3 on line 93 Please help..... |
Code:
$sound = "<object id=\"sound\" classid=\"clsid:05589FA1-C356-11CE-BF01-00AA0055595A\" align=\"baseline\" border=\"0\" width=\"0\" height=\"0\"> [Edited by Ed Sullivan on 01-10-2001 at 11:59 AM] |
Thank you very much for that help!
|
Yep.
just thought about that but I wasnt here :) Yheaa! My first "Hack!" |
I'm prod of you Sacramenta :)
|
next time you will be proud of me please spell my name right ;)
|
I liked the idea, can someone please post the full modification? I mean to pla the sound only on pms!
|
it is the full modification!
|
I get this error when trying to run index.php:
Code:
Parse error: parse error in /home/sites/site118/web/forums/index.php on line 101 and line 101 contains: Code:
<param name=\"MovieWindowWidth" value=\"0\"> |
Quote:
Code:
<param name=\"MovieWindowWidth\" value=\"0\"> |
Quote:
Anyway, I'm not sure if it's working properly 'cause I hear no sound... |
well,
you have to change the "Worms Armageddon MIX.mp3" to your file. |
Quote:
Anyway... maybe the reason is that it's a testing board with only 2 users (myself registered with two nicks) on it... :confused: |
Post or email be the address and I'll test for you!
|
Tnx conan for your offer but I'm running the test board locally on my PC. ;)
|
can someone make a wav file saying "New PM", preferable a low male robotic voice or a unemotional female commander voice :p thx if you have any
|
I have error after add this hack
Parse error: parse error in /home/www/htdocs/vB/index.php3 on line 117 Code:
if ($lastsent = $DB_site->query_first("SELECT msgid,fromid,UNIX_TIMESTAMP(datetime) AS datetime FROM privatercvd WHERE toid=$bbuserid ORDER BY msgid DESC")) { |
All times are GMT. The time now is 07:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|