Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Topic started by: liamandamonkey on May 13, 2006, 04:51:20 AM

Title: Background Music?
Post by: liamandamonkey on May 13, 2006, 04:51:20 AM
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?
Title: Re: Background Music?
Post by: Alan S on May 13, 2006, 01:56:06 PM
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

Title: Re: Background Music?
Post by: anunlike on May 13, 2006, 07:57:17 PM
Just to add,

To make it so that the music doesn't start playing automatically, change autostart="true" to autostart="false".
Title: Re: Background Music?
Post by: usaalpine on May 14, 2006, 11:33:51 AM
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!
Title: Re: Background Music?
Post by: usaalpine on May 14, 2006, 11:36:11 AM
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?