Recent Topics

1 Oct 18, 2009 02:44    

My b2evolution Version: Not Entered

My b2evolution Version: Not Entered

Im using 3.3.1 LA Version B)

What Im trying to do is, in my sidebar have some sort of player that plays some mp3s, either by a file where I can choose the MP3 ive uploaded, or it to scan a folder..im not hugely particular. Ive been struggling with this for 3 hours and i think Ive browsed every topic under the searches of SWF, Flash, Mp3, music etc. So here my post asking for help.

I liked the mulilist Dew Player. But most the sites in french and I cant figure it out. It works for podcast mp3's, but when i try to install the widget i get all sorts of errors and it changes my font in backoffice.

My next thing was FlashMp3player. I can get the "test player" to work, but trying to add the code in a HTML widget container fails and im not sure what else to try. I tried it on a post also and it didnt work. here is the code they are giving me so maybe im posting it in the wrong spots.

Add this to the head of your webpage: 
<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="swfobject.js" ></script> 

Add this to the body of your webpage, where you want player to appear: 
<!-- Div that contains player. -->
<div id="player">
<h1>No flash player!</h1>
<p>It looks like you don't have flash player installed. <a href="http://www.macromedia.com/go/getflashplayer" >Click here</a> to go to Macromedia download page.</p>
</div>

<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file. You can change player width and height here (using pixels or percents).
so.addParam("quality","high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script> 

I obviously took out their instruction, and just in case, yes i know theres already a topic about this program, but it died with no clear solution and it was for a post.

Im not set on this player, its just where Im at, Ive tried the AM player, dew player, and this and all the forums are for displaying these kind of things in posts not the sidebar.

Thanks for any help in advance :)

2 Oct 27, 2009 19:57

You shouldn't have a problem slapping that in the free html widget ... for kicks remove the 'language="javascript"', it's obsolete ... if that's the solution then let me know and I'll do this weeks lottery :D

¥

3 Nov 24, 2009 22:29

I am looking into this aswell. I like to use swf-object for flash and it looks like thats what your code uses. Guess you have pasted the code in the head and have the javascript-file in place?
Anyone else successfully used swfobject?

4 Dec 13, 2009 20:01

Yabba helped me with my last problem (thanks again) and now on to my next...

I am trying to do the same thing, add flash to the sidebar via swfobject.

I am using a free html sidebar widget with the following code:

<script src="/media/shared/js/swfobject.js"></script>


<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject("/media/blogs/comments/flash1.swf","mpl","165","200","8");
so.write("player");
</script>

The problem is that nothing is happening. "This text will be replaced" is constantly being displayed. I have my paths correct and I have the latest flash player installed so I know it isn't that. I don't think swfobject is even being called..

Has anyone had any success with this? Any advice?

5 Dec 13, 2009 20:58

OK, got it working. However, I had to change the former swfobject code to:

<script src="/media/shared/js/swfobject.js"></script>


<div id="player">This text will be replaced</div>

<script>
swfobject.embedSWF("/media/blogs/comments/flash1.swf", "player", "165", "200", "9");
</script>

not sure why it doesn't like the previous code. But at least I can check the flash player version now. :o


Form is loading...