With this plugin you can post mp3 by using the tag <%FlashMP3(your.mp3)%> in item or inside a skin
The plugin requires dewplayer. The player file ‘dewplayer.swf’ must be in the directory /media of your blog.
| General Plugin info | |
|---|---|
| Author: | Edmond Hui, based on code by Kai Greve, mod by ftruscot |
| Current Version: | v0.8 |
| Download: | n/a |
| Code: | NP_FlashMP3_code |
| Demo: | here |
| Forum Thread: | http://forum.nucleuscms.org/viewtopic.php?t=13807 |
The easiest way to publish a mp3 is to use the Media Manager from Nucleus:
When used in items, the plugin automatically adds the path to your member media directory. When used in skins, the plugin automatically add the path to the site media directory. For example, to play the filename.mp3 file from your member media directory in an item use this:
<%FlashMP3(filename.mp3)%>
to play the same file from a skin (assuming the memberid of the fileowner is 1), use this:
<%FlashMP3(1/filename.mp3)%>
If you wish to post mp3 from a remote location (outside of your blog), you can also use the absolute URL to the mp3. The parameter must start with “http://”, for example:
<%FlashMP3(http://yourdomain.com/mp3/filename.mp3)%>
User can set default values of the player from the plugin option menu
Each of the player options can be overriden in the variable call (in post or in skin) through this format:
If the player being used is the dewplayer-multi version, the mp3_path variable can be a semi-colon separated list of paths to mp3 files in this format:
If you specify a directory (from your member media directory) in place of a file name, a random mp3 file will be chosen from that directory. In the case of use of the dewplayer-multi.swf player, a random playlist will be made from the mp3 files in that directory. For example, if a have a directory called ‘audiofiles’ in my member media directory (media/1/audiofiles/) then this will play a random mp3 from that directory in an item:
<%FlashMP3(audiofiles)%>
or in a skin
<%FlashMP3(1/audiofiles)%>
NP_FlashMP3 version 0.8 works with Nucleus CMS version 3.31 - 2007-11-03 kg