WP Audio Gallery Playlist Hack: Block Plugin from automatically inserting XPSF player

Saturday, May 30, 2009 | |


The WP Audio Gallery Playlist is pretty nifty, it will automatically generate and link the files needed to generate use the XSPF (read Spiff) player, an open source playlist audio player rendered in flash.

It does exactly what it should, but I was running into a problem, I didn't want the plugin to automatically insert the player if there was audio present, just when I wanted it to. So here is how I did it:

In the wp-audio-gallery-playlist.php file find

if (is_array($lc_matches[0])) //&& !$this->mobile)

and remove everything inside the curly brackets. Problem solved.

1 comments:

dliem said...

thanks for pointing out the need to disable the auto embedding. i have added an option to disable this if the user chooses so in version 0.10 of the plugin.

Mp3 Player

Archive