vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Sound if new PM ! (https://vborg.vbsupport.ru/showthread.php?t=6504)

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 :

Code:

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

01-07-2001 01:56 PM

Code:

$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:
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\">
Plz, help :(

01-10-2001 02:25 PM

Quote:

Originally posted by Cr4z33
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\">
Plz, help :(

You forgot a "\" it should be:
Code:

                <param name=\"MovieWindowWidth\" value=\"0\">

01-10-2001 04:16 PM

Quote:

Originally posted by Scaramanga_gold
You forgot a "\" it should be:
Code:

                <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

Quote:

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

Code:

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 :(


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
  • Page Generation 0.02799 seconds
  • Memory Usage 1,755KB
  • 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
  • (9)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete