Jopsen.dk - A Personal website

October 17, 2009
Musicplayer module for pluck
Filed under: Computer,English by Jonas Finnemann Jensen at 06:41

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.

11 Comments »

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. hi,
    i want test your modules on this demo webpage:

    http://pluck.ath.cx

    but i’ve some problem with it. The player work fine if i want listen one song, but don’t start next song. For me is a bug. You can help me?
    Excusme for my bad english
    Thank you in advance.
    Giuseppe

    Comment by giux — January 8, 2011 @ 11:52

  7. Have you tried to change the settings?
    If that doesn’t work try out another theme, some of them can be broken… Else you can take a look into the source, it’s not that complicated. You can set extra variables for XSPF Jukebox in player/vars.php
    Take a look at:
    http://lacymorrow.com/projects/jukebox/xspfdoc.html
    and
    https://github.com/jopsen/pluckplayer/blob/master/player/vars.php

    Comment by Jonas Finnemann Jensen — January 8, 2011 @ 12:32

  8. hi, i’ve correct the bug
    if you want i can send you a patch.
    Giuseppe

    Comment by giux — January 8, 2011 @ 17:09

  9. hi,
    the problem was in pluckplayer/pages_site/player.php, when it build the url to pass loadurl parameter to player use vars.php.
    I don’t know reason, but if i pass url in loadurl the player don’t work fine, but if i print parameter the player work.
    You can see this on:
    http://pluck.ath.cx

    Excusme for my very bad english, i understand but i don’t able to write fine:(

    ….
    //$variables = “data/modules/pluckplayer/player/vars.php”;
    $variables=”&activeDownload=”.m_v_bool_out($settings["activeDownload"]).”&alphabetize=”.m_v_bool_out($settings["alphabetize"]);
    $variables=$variables.”&autoload=”.m_v_bool_out($settings["autoload"]).”&autoplay=”.m_v_bool_out($settings["autoplay"]).”&repeat=”.m_v_bool_out($settings["repeat"]);
    $variables=$variables.”&repeat_playlist=”.m_v_bool_out($settings["repeat_playlist"]).”&shuffle=”.m_v_bool_out($settings["shuffle"]).”&crossFade=”.m_v_bool_out($settings["crossFade"]);

    $p_w = $settings["width"];
    $p_h = $settings["height"];
    ?>

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="” height=”" id=”flashObject” align=”middle”>
    <param name="movie"
    value="?playlist_url=&skin_url=&loadurl=” />

    <embed
    src="?playlist_url=&skin_url=&loadurl=”
    ….
    bie

    Comment by giux — January 9, 2011 @ 01:02

  10. perhaps i can send you code because in the textarea i cannot paste it correctly?

    Comment by giux — January 9, 2011 @ 01:04

  11. Hmm… Acoording to [1] it’s possible to load the variables like this:
    xspf_jukebox.swf?autoplay=true&playlist_url=playlist.xml&…
    Or this:
    xspf_jukebox.swf?loadurl=var.txt&playlist_url=playlist.xml
    where var.txt contains the variables…

    What you’re doing is obviously the first approach, and if that works better than the second then why not use it…

    You can mail me the patch my email is jopsen@gmail.com
    (If you know how to use git format-patch that’s probably the easiest, otherwise just send me a list of changes).
    Or you can create a fork of the project on github, push you changes there and send a pull-request…

    Thanks for fixing this bug…

    [1] http://lacymorrow.com/projects/jukebox/xspfdoc.html

    Comment by Jonas Finnemann Jensen — January 9, 2011 @ 02:21

Leave a comment



finpecia tabletten buy Zithromax with a visa free fedex delivery prednisone Accutane without dr order accutane online buy Accutane line Crestor10mg Valtrex effects purchase online prescription Flomax order xenical online with overnight delivery order valtrex online no prescription buy genuine Prednisone online Zithromax Valtrex no prior script purchase cheap Valtrex Valtrex cheap where to purchase Buspar no prescription no fees purchase Orlistat overnight order Prednisone without a rx overnight shipping buy cheap Prednisone no prescription Xenical canadian pharmacy Flomax precio buy Tamsulosin pills in toronto purchase prednisone without a prescription online Flomax toronto cheap Xenical no rx Buy prednisone without a perscription to ship overnight buy Rosuvastatin uk buy Valtrex fed ex purchase Orlistat online without rx buy Orlistat diet pills buy Maxalt where xenical with consult where to buy generic Buspar online without a rx online Valtrex buy equivalent buy Cytotec Proscar online no prescription Valtrex without rx overnight shipping Flomax cheap no rx required canada buy Flomax money buy buying Flomax Prednisone capsule buy cheap Buspar line buy line Orlistat Orlistat buy online in stock Crestor fedex shipping buy finpecia in england canadian pharmacy Cytotec buy finpecia without rx from us pharmacy purchase Valtrex amex online without prescription buy xenical without a prescription overnight shipping prednisone Buy prednisone online overseas buy 200 mcg Cytotec buy Prednisone without rx needed no prescription Buspar with fedex Buspar for sale order valtrex usa How to get perscription of Cytotec buy Amitriptyline online without rx buy Cytotec australia what is Bupropion buy cod valtrex Crestor fedex no prescription Valtrex with free dr consultation buy Buspar tablets without rx order Valtrex overnight order Zovirax for cash on delivery what does Amitriptyline look like finpecia no prior script buy Valtrex in united states online buy cod Zithromax generic Zithromax online want to buy Buspar in usa discount Zithromax prednisone online cash on delivery cheap Crestor usa purchase Crestor no visa without prescription Crestor on line Buspar buy how to buy Valtrex online without a prescription cheap prednisone without a prescription buy cheap Prednisone free fedex purchase rx Crestor without buy Valtrex diet pills buy 40 mg Strattera buy next day Strattera Flomax without rx purchase Flomax without prescription pharmacy Xenical generic Cytotec tablets Cytotec where can i buy Zovirax how to get prescription of xenical buy cheap Premarin line buy Premarin without a rx overnight delivery buy Crestor diet pill purchase Amitriptyline no visa without prescription buy Valtrex in the uk buspar no rx foreign prednisone order on line buy Valtrex once a day buy Orlistat usa Orlistat pharmacy buy Valtrex in the uk Buy prednisone overnight shipping purchase Zithromax overnight Cytotec cheap mexican to buy valtrex order xenical overnight cheap purchase Accutane pay pal without rx buy Buspar free consultation Zithromax 250mg overnight no prescription valtrex buy Premarin online with a debit card Buy Accutane online buy discount proscar purchase Zithromax visa without prescription purchase cheap Xenical where can i purchase xenical no rx how to get a Zithromax rx buy Premarin in india buy cheapest Premarin Flomax uk sales buy Cytotec for women uk buy Valtrex in mo xenical cod next day delivery buy prednisone online without dr approval Valacyclovir effects prednisone shipped COD cheap online pharmacy for prednisone Flomax u.p.s shipping cod achat Orlistat buy prednisone without a prescription buy cheap online pharmacy Crestor safety order xenical Buy xenical without a r x Zithromax order online Purchase Accutane online where can i purchase Crestor no rx purchase Cytotec free consultation purchase Amitriptyline without prescription needed buy cheap Valacyclovir without prescription best buy Orlistat buy xenical no perscription cod Nizoral online order buy discount Flomax where to buy generic Accutane online without a prescription Flomax canada purchasing Flomax online without prescription buy xenical next day delivery buy cheapest Orlistatbuy no prior prescription Orlistat no prescriptions needed for Accutane buy Accutane 40mg valtrex mexico buy Xenical online without rx generic Prednisone online buy Nizoral paypal without rx order Proscar without rx needed buy Orlistat line order Accutane usa