I’ve been working a bit on a website for a friend, not computer literate, so I took a look around for a simple, easy to use, content management system without a million uselessĀ features and found pluck. It’s simple and yet supports modules to extend the functionality, though within limits…
Anyway, I needed a MusicPlayer module that would make it easy to publish music in Flash based music player, so I wrote one. The documentation for pluck is fairly good, php on the other hand is horrible (it took me a while to figure out I had to enable error reporting). Nevertheless, the result allows the user to upload mp3s, choose player skin and settings. For playback I used Xspf Jukebox which has 20 skins included some of which are fairly good looking…
You can download the module here… It’s for pluck 4.6, tested with 4.6.3.
Update: This plugin is now hosted at github: github.com/jopsen/pluckplayer.
I tried to use your Music Player module. I installed the module. But I do not understand what to do now.
Look at the website under the button: Muziek. What did I do wrong.
Greets,
Ellie Rouwenhorst
Comment by Ellie Rouwenhorst — December 29, 2009 @ 09:37
Music Player module uses spyc (an YAML reader) for it’s configuration file… The spyc.php files included module requires php5…
So my guess is that you’re running php4, from the error message it looks like a problem parsing a php5 class…
If you’re on php4, you may try to replace spyc.php with a the version for php4, it’s in the same zip, available from:
http://code.google.com/p/spyc/
Note: From the spyc changelog, it appears the php4 version have been generated using the 5-to-4 tool. So I have no idea if it’ll work…
Comment by admin — December 29, 2009 @ 11:09
You forget about two things:
http://www.pluck-cms.org/docs/dev:modules:security
And second – you cant mkdir with a dir and subdir with one operation. Thats why Musicplayer module cant be install in pluck.
Comment by A_Bach — January 3, 2010 @ 11:08
I think I have the security thing in order… at least on the pages_admin/playlist.php file… Don’t know if it should be anywhere else…
And yeah, I probably need to make the mkdir call recursive… Thanks… will fix it as soon as a get a test install up and running…
Comment by admin — January 3, 2010 @ 11:37
Okay, I’ve fixed the bugs and released the source on http://github.com/jopsen/pluckplayer
Enjoy… If you find any bugs or similar feel free to contact me or create an issue at github…
Comment by admin — February 7, 2010 @ 12:28