PDA

View Full Version : Sound if new PM !


01-07-2001, 10:44 AM
Hi all!

What must be edited if i want to hear a *.wav file when there is a new private message?

Thank you!

01-07-2001, 11:24 AM
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]

01-07-2001, 12:13 PM
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

01-07-2001, 01:31 PM
Sorry but if i change the code ... i get an error msg :


Parse error: parse error in /home/www/htdocs/vb/index.php3 on line 93


:(
Please help.....

01-07-2001, 01:56 PM
$sound = "<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>";Then reference $sound

[Edited by Ed Sullivan on 01-10-2001 at 11:59 AM]

01-07-2001, 02:31 PM
Thank you very much for that help!

01-07-2001, 03:03 PM
Yep.
just thought about that but I wasnt here :)

Yheaa!
My first "Hack!"

01-07-2001, 04:54 PM
I'm prod of you Sacramenta :)

01-07-2001, 06:15 PM
next time you will be proud of me please spell my name right ;)

01-09-2001, 07:52 AM
I liked the idea, can someone please post the full modification? I mean to pla the sound only on pms!

01-09-2001, 09:58 AM
it is the full modification!

01-10-2001, 10:43 AM
I get this error when trying to run index.php:
Parse error: parse error in /home/sites/site118/web/forums/index.php on line 101


and line 101 contains:
<param name=\"MovieWindowWidth" value=\"0\">

Plz, help :(

01-10-2001, 02:25 PM
Originally posted by Cr4z33
I get this error when trying to run index.php:
Parse error: parse error in /home/sites/site118/web/forums/index.php on line 101


and line 101 contains:
<param name=\"MovieWindowWidth" value=\"0\">

Plz, help :(


You forgot a "\" it should be:
<param name=\"MovieWindowWidth\" value=\"0\">

01-10-2001, 04:16 PM
Originally posted by Scaramanga_gold
You forgot a "\" it should be:
<param name=\"MovieWindowWidth\" value=\"0\">


Yep you were right. Strange 'cause I did a copy&paste... Well, tnx anyway! ;)
Anyway, I'm not sure if it's working properly 'cause I hear no sound...

01-11-2001, 03:39 AM
well,
you have to change the "Worms Armageddon MIX.mp3"
to your file.

01-11-2001, 06:46 AM
Originally posted by Scaramanga_gold
well,
you have to change the "Worms Armageddon MIX.mp3"
to your file.

Wheheheheh, common' boy I'm not that stupid! :D
Anyway... maybe the reason is that it's a testing board with only 2 users (myself registered with two nicks) on it... :confused:

01-11-2001, 08:00 AM
Post or email be the address and I'll test for you!

01-11-2001, 10:13 AM
Tnx conan for your offer but I'm running the test board locally on my PC. ;)

01-15-2001, 04:47 AM
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

01-17-2001, 01:36 AM
I have error after add this hack

Parse error: parse error in /home/www/htdocs/vB/index.php3 on line 117


if ($lastsent = $DB_site->query_first("SELECT msgid,fromid,UNIX_TIMESTAMP(datetime) AS datetime FROM privatercvd WHERE toid=$bbuserid ORDER BY msgid DESC")) {


pls help , thx :(