And one more WordPress plugin:
This one makes life easier, when you use an embedded MP3-player on your blog.
You shurely know that: To embed a flash MP3 player, like the dewplayer which I use, you have to define that ugly object tag like
<object type="application/x-shockwave-flash" data="../../mp3/dewplayer.swf?son=../../mp3/silver+spyder+sam+-+blind+cat.mp3" height="20" width="200"> <param name="movie" value="../../mp3/dewplayer.swf?son=../../mp3/silver+spyder+sam+-+blind+cat.mp3"> </object>
where the relative paths to the player and MP3 file have to be entered twice.
And then there is that big problem with the relative paths, since the players need the relative path to the MP3 file. If you define that path on a post, which is displayed at the root URL of your page, e.g. „http://myblog/mypost-with-mp3.html“, then that path must be empty (e.g. data=“mp3/dewplayer.swf?son=mp3/silver+spyder+sam…) and if the post is referenced from a deeper path (like the categories page) like in „http://myblog/music/“ the relative path has to be „../“ and so on.
This tiny plugin, called „MP3 Tag“ makes things easier. It supports two tags you can include anywhere in your posts: One for the player and one for a download link to the mp3 file.
[mp3player:myalbum/mymp3file] will generate that player object, while it will recognize which
ULR is actually involved and calculate a relative path to the root (e.g. „../“). And it will recognize, that you didn’t specify a file extension and will append the missing „.mp3″ to the referenced filename and generate the following output:
<object type="application/x-shockwave-flash" data="../mp3/dewplayer.swf?son=../mp3/myalbum/mymp3file.mp3" height="20" width="200"> <param name="movie" value="../mp3/dewplayer.swf?son=../mp3/myalbum/mymp3file.mp3"> </object>
And if you use non-ascii characters in your filenames, you can configure the plugin to escape the pluginname with urlencode:
[mp3player:myalbum/myartist – mymp3file]
<object type="application/x-shockwave-flash" data="../mp3/dewplayer.swf?son=../mp3/myalbum/myartist+-+mymp3file.mp3" height="20" width="200"> <param name="movie" value="../mp3/dewplayer.swf?son=../mp3/myalbum/myartist+-+mymp3file.mp3"> </object>
By the way: All of it is configurable through options and templates on the admin/options panel. So it should fit most embedded players. If not, try the free one I mentioned above.
will create a link pointing to the MP3-file with the text „myfile.mp3″ or „myfile“ (configurable, too).
Additionaly you can define a link text:
which will create a link with the text „Download“.
The plugin is mostly self-explanatory, have a look at the options page, where every option is explained.
Version: 1.1 – update
Version: 1.0 – initial
Tested with WordPress 2.1.3 up to 2.9.1.
Just upload to your wp-content/plugins folder or any subfolder and activate in plugins menue. Then go to the admin/options/MP3 Tag options page and configure.
If you like this plugin and it helps so much, that you would like to donate (no matter how much), please do it here.