Host unlimited blogs, sites, forums for $4.95 only with this host

Drupal Hosts : Question for Audio module developers

Hostgator web hosting is our best host for drupal. Sign up with our recommended host for drupal here

This is a drupal question asked by Karlheinz on 20 May 2009

I’m using the Audio module, and I’d like to install another Flash player for my site. FYI, it has the rather unimaginable name of Flash MP3 Player, and it’s here:

http://flash-mp3-player.net/

Reason being that I’m already using it, and know how to skin it and so forth.

My question: How do I alter the Audio module to use it?

I’ve read this tutorial about writing a theme override:

http://drupal.org/node/134523

…but it’s an old tutorial, applying only to D4.7, so I doubt it would work now.

I looked through the code in audio.module, and it LOOKS like I would only need to include these things in the /players directory:
- the PLAYERNAME.swf file
- a same-named PLAYERNAME.inc file with an $items['PLAYERNAME'] array, and a theme_audio_PLAYERNAME_node_player() function
- (optionally?) a preview .png, and the license (which is either CC-BY-SA or MPL1.1)

(Also an XML file, but that’s because Flash MP3 Player needs it for the skin.)

More info at this drupal node or sign up with the popular choice for drupal hosting

This entry was posted in Drupal Bookmark this post and come back later for the best web hosting coupons.

This web hosting blog is proudly hosted with reliable Hostgator webhosting for only one cents through this hostgator coupon. If you're new here, you may want to subscribe to this web hosting RSS feed

-->