TinyPortal

Development => Support => Topic started by: bgcntry on September 06, 2007, 04:48:57 PM

Title: Playing a sound
Post by: bgcntry on September 06, 2007, 04:48:57 PM
Question for anybody:
Part of my forum is dedicated to those of us that play fantasy football and I had an idea, I would like it if I could get the Sports center cut scene sound to play anytime someone opens the thread for fantasy football....is this even possible?

I am using Helios Multi

Thanks

Title: Re: Playing a sound
Post by: IchBin on September 06, 2007, 05:51:31 PM
I don't know the code, but if you can find some javascript or something that will automatically play a file you can do it with a bit of php in your index.template.php file.

if ($context['current_board'] == 3){
    echo 'your sound code here';
}


This would output your sound code if you were inside board number 3.
Title: Re: Playing a sound
Post by: bloc on September 06, 2007, 10:44:40 PM
For the sound to play, try <BGSOUND SRC="test.wav" LOOP="1">
Title: Re: Playing a sound
Post by: IchBin on September 06, 2007, 10:56:26 PM
Well, there you go lol. I've never played with sound in a web page so I didn't know it could have been so easy. :)
Title: Re: Playing a sound
Post by: bloc on September 07, 2007, 12:27:04 AM
Its actually not so used anymore I think, not now that flash can do the same and more really.