Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Mp3 player via widgets

Old Feb 1, 2009, 03:00 PM
67 posts · Jan 2009
I have been trying embed an open source mp3 player.

The player works correctly here: http://www.midriffrecords.com/home.html, but I am now trying to move it to my Atahualpa rebuild.

Using the Theme Options HTML/CSS inserts, I have inserted the appropriate javascript into the header.
<script type="text/javascript" src="http://www.midriffrecords/com/mp3/swfobject.js"></script>

And then, using the Text/Random HTML widget, I have tried to place the player on the page, right column, under the "Audio" heading. This is what I have inserted into the Text/HTML Widget box.
<script type="text/javascript">
var s2 = new SWFObject("http://www.midriffrecords.com/mp3/mp3player.swf", "playlist", "240", "200", "7");


But the player is not appearing. Is the text widget not suitable for inserting this kind of code?

Or is there a better, smoother, more Wordpress compatible mp3 player that anyone might know about?

Old Feb 1, 2009, 03:20 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
I think you have a typo here

HTML Code:
 <script type="text/javascript" src="http://www.midriffrecords/com/mp3/swfobject.js"></script>
The Slash between midriffrecords and com most likely needs to be a dot:

HTML Code:
 <script type="text/javascript" src="http://www.midriffrecords.com/mp3/swfobject.js"></script>
Old Feb 1, 2009, 03:31 PM
67 posts · Jan 2009
Yikes! Unfortunately, that did not fix it. But boy did I sure hurt my forehead!
Old Feb 1, 2009, 04:40 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
Looks like we both missed yet another typo

Edit: Seems to be gone now or I saw something that wasn't there. Anyway, it seems the Javascript isn't in your (test) page anymore (at all)
Old Feb 1, 2009, 04:49 PM
67 posts · Jan 2009
Hi Flynn,

I have been monkeying around with the page, assuming that I had messed up one of the other urls. But I have double checked everything, and the javascript for the player is right above the closing HEAD tag, and inserted the flash object verbatim from the previous html. On the bright side, now I am getting a box in the shape of the player, but it still isn't linking up to the player itself. Do you think I should move everything to a local folder in the atahualpa directory? I can't see that being the answer, but I am stumped on this one. Could is possibly be any of the div stylings from the widget?
Old Feb 1, 2009, 06:39 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
I looked and couldn't find an error. There seems to be one closing div too much for the text widget that contains the player, that might be caused by the theme, but should not disturb the player. The P tag with the ID "player2" is important and it's there, and closed properly. The SWF and the Javascript are there and referenced properly. No tricky hiding or anything is being done with the widget divs. At the moment I have no idea, sorry, but I can have a look again tomorrow if you remind me with a post..
Old Feb 2, 2009, 10:34 AM
67 posts · Jan 2009
thanks flynn for all the help. as i assumed initially, the problem was neither with the theme, the widget, nor myself (for once!). i uploaded a new player and a playlist, and it worked fine. i think there was something in the old player's code, but i can't imagine what. i don't really care, i found a new opensource player that rocks and is a breeze to use.

for anyone interested in seeing a half built site with a great mp3 player, visit

or just visit here for the original


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
incorporating xspf player to the header... metwin1 Header configuration & styling 6 Jun 26, 2010 08:49 PM
Problem with flv player lion.gem Atahualpa 3 Wordpress theme 3 Jul 16, 2009 10:49 PM
Audio Player Plugin not showing up or working Nefeli Plugins & Atahualpa 1 Feb 24, 2009 10:06 AM
Set left sidebar widgets same distance from center area as right sidebar widgets daisy24 Sidebars & Widgets 2 Feb 19, 2009 05:11 AM

All times are GMT -6. The time now is 08:36 AM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.