brettbrewer.com

Programming + Design

Home
Fix for Joomla MP3Player module
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 )
 
Roomba reborn!
Written by Administrator   
Thursday, 29 March 2007
It seems like only yesterday I lamented the loss of my first Rooma, Lolita, as she descended into a schizophrenic seizure of starts and stops and half-circles. I cleaned her, I removed/replaced her battery and nothing worked. I had all but resigned myself to sending her back for a replacement when I decided to spray out her front sensor area with compressed air. A big chunk of dust shot out of the left side and suddenly, my sweet Lolita was back in business. My sweet Lolita has been reborn!
Last Updated ( Thursday, 29 March 2007 )
 
PHP $_REQUEST variables not showing up when you submit your form?
Written by Administrator   
Thursday, 29 March 2007
Had an annoying little problem with some variables I submitted to a PHP script now showing up in any of the $_REQUEST, $_POST or $_GET arrays. After an hour or so of head scratching and echoing, and print_r-ing, I figured out that my form had some duplicate form elements with identical names and IDs. This seems to have caused Firefox to completely lose MOST, but not all of the form submission. I didn't delve much further to find out what exactly was going on, I simply fixed my form and the problem went away. Strange though. It seems like the last instance of the duplicate form element on the page should have simply overridden any previous values, but not cause the loss of other variables. I didn't test in IE, so it may only be a Firefox 2.0.0.3 issue. 
 
Why Ion Sancho ROCKS!
Written by Brett Brewer   
Tuesday, 07 November 2006
As someone who has voted in Leon County, FL. for over 10 years, I can honestly say that we are incredibly lucky to have Ion Sancho for a Supervisor of Elections. Never have I met a government official that is so willing to talk to individual voters and to go out of his way to help people. 
Last Updated ( Tuesday, 07 November 2006 )
Read more...
 
<< Start < Prev 1 2 3 4 5 6 Next > End >>

Results 41 - 44 of 44

Search

Who's Online

We have 1 guest online

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.