Background Music?

Started by liamandamonkey, May 13, 2006, 04:51:20 AM

Previous topic - Next topic

liamandamonkey

It's probably on this site somwhere but I couldn't find it, please excuse my ignorance because I'm new at this PHP thing, anyway, is there a way to put background music on my forum?

Alan S

open up the index.template.php file of the theme your using , at the very end of the code after the last ?> add


<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" showstatusbar="1" enablecontextmenu="false" autostart="true" transparentstart="1" loop="0" controller="true" src="www.linktoyourmusicfilehere.com/musicfile" height="25" width="100">

that will bring up a small version of windows media player and the music will start playing straight away , to center the console add the <center></center> tags and you can adjust the witdh and hight of the media player to your standards , demo see here www.theteenzone.net/forums/index.php

Note * if you make the media player as small as i have you will need to right click on it to view the controls

Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

anunlike

Just to add,

To make it so that the music doesn't start playing automatically, change autostart="true" to autostart="false".

usaalpine

I was very interested in this idea, and I went ahead and followed the directions here.

After I inserted this text into the template of the theme that I was using here is what happned:

(1) a box, in the upper left hand part of the screen appeared that said "ready" it was black background, with blue lettering

(2) the font and layout of the board got all "bloated"

(3) there was no music in the background.

What happened?

thanks!

usaalpine

Also, I just checked the "demo link" and this was the result of that:

Notice: Undefined variable: sourcedir in /home/alans/public_html/forums/index.php on line 47

Warning: main(/QueryString.php): failed to open stream: No such file or directory in /home/alans/public_html/forums/index.php on line 47

Fatal error: main(): Failed opening required '/QueryString.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/alans/public_html/forums/index.php on line 47


I thought you would like to know that for your own sake, and maybe this will help troubleshoot why this is happening to me on my board?

Advertisement: