Hi to all,
in order to follow a request from a friend i've implemented a new flexicontent field that allow to upload mp3 files and embed them in a simple mp3 player (
flash-mp3-player.net/
opensource). I've adapted the gallery flashmatic source code modifying where it needed and adding some other functions to render the swf object.
A FEW SCREENSHOTS
1. BACKEND
Creation of a new field of type "Simple Flash Mp3 Player". Available parameters
Field value in New Item / Edit Item
- vers. 0.2 add remote mp3 support
2. FRONT END
Simple view in default template (quick test with no skin and no gradient to fit the specific template look)
- vers. 0.2 add remote mp3 support
CSS
In order to change style edit:
plugins/flexicontent_fields/sfmp3player/css/sfmp3player.css or set your template css class parameter
Skin
To add background skin place images (gif/jpg and i've not tried with png) into dir:
plugins/flexicontent_fields/sfmp3player/images
Configuration / Help
Detail about the simple_mp3_player.swf in
plugins/flexicontent_fields/sfmp3player/config/help.htm. In the same folder you'll find an example of configuration.xml|txt and playlist.txt|xml (not implemented)
Languages:
English
Italian
French (thanks to micker)
German (thanks to Rehne)
Limitation:
- no playlist xml support (the swf player does) and i choose not to implement it because like the filefield plugin you can add any number of files at once
Bug
- It's a minor problem but the fileselement windows popup (Back-end) doesn't underline and strikes files already assigned to items. I would need to modify the original flexicontent "view.html.php" because there's an array of array js who's not supported in the original script (first level only).
Note
I still need to work the code to clean it and i'm not familiar with Subversion so i attach here the file. I take a lot of codes from this site, sharing even if it's a simple plugin it was the least I could do.
If anyone wants to download and test it, i will really appreciate feedbacks or bug reports.
Tested on
Joomla 1.5.24
FLEXIcontent version 1.5.6 beta2 (r948)
Apache 2.2.17 php 5.3.5
Project homepage
code.google.com/p/plg-flexicontent-fields-sfmp3player/
NEW SUBVERSION 0.3
Add
- german translation
- show playlist parameters to hide/show playlist (controlbar only or controlbar + playlist
Fix
- javascript qfSelectFile fixed for adding remote mp3
- popup filemanager now filter only mp3 extension
Thank you
Regards.