brettbrewer.com

Programming + Design

Home arrow News arrow Joomla Module/Extension Fixes arrow Fix for Joomla MP3Player module
Fix for Joomla MP3Player module PDF Print E-mail
Written by Administrator   
Tuesday, 24 April 2007

I had a small issue (several actually) with the Joomla MP3Player module . There are several out there based on the jeroenwijering Flash MP3 player , but all of them are a bit picky about how you configure them and they seem to fail to properly implement the options available in the original standalone player. In particular, the "repeat" option doesn't work right. Instead of using the values "true", "false" and "list" for the values of the "repeat" variable, the module uses "0" and "1" and completely omits the option to jump to the next playlist item using the value "list". So I made a slight change to two module files and am posting them here for your pleasure. 

Download the module files 

Just extract the two module files from the above archive and upload them into your Joomla "modules" folder, overwriting the old versions. Then go to the config screen for the mp3player module (or whatever you have named it in on your modules admin screen) and set the "repeat" option to "list". Now when a song finishes playing, the next song in your list will automatically start. If you have shuffle play enable then it will play the next random selection instead. Also, if you do not set the repeat option at all, it will default to the "list" repeat behavior. 

Please note that I DID NOT WRITE THIS MODULE or the player from which it is derived. I take no credit for anything, not even this patch. Use at your own risk, yada, yada, yada. 

To see the module in action, head on over to my music section

Last Updated ( Thursday, 26 July 2007 )
 
Next >

Search


Brett highly recommends...

Get Your War On: The Definitive Account of the War On Terror 2001-2008

My favorite comic is getting ready to be relased as a single volume. You can preorder now. If you hate the war and love to laugh, do yourself a favor and order this. You can also read all the GYWO comics online for free here.

BBS The Documentary

This is by far the most comprehensive and entertaining documentary I have ever seen regarding the early BBS system. If you're serious about knowing your internet history, or you just want some extra geek-cred, this is your new favorite documentary.

The Nada Chair "BackUp"

The best alternative I have found to overpriced ergonomic office chairs, especially for very low pain around the sacral joint. Works better than my Aeron chair ever did. Also, it comes in navy blue and black, in case you're not into the whole pregnant woman aesthetic (pictured).It's really not meant for sitting on the floor, it's really better for seats that offer poor back support, and works great at sporting events to make sitting in bleachers much more comfortable.

Antec Quiet PC Case

At just under $120 including a 500 Watt power supply, this "quiet pc" case has worked great for me for over 2 years. In fact I now own two great Antec cases/PSUs. For the money, it's hard to beat this combination.

Valid XHTML 1.0 Transitional

© 2008 www.brettbrewer.com

Spam bots check out this page.

Joomla! is Free Software released under the GNU/GPL License.