Archive for the 'Deezer'

Deezer player for Wordpress 2.x

Friday, August 24, 2007

Deezer I was looking for an MP3 player for my daughter's blog without the problems of copyright on the music and today I found it. Deezer . So I quickly wrote a WordPress plugin for easy use as widget :) . I will let you discover for yourself. As usual it is XHTML compliant. I did not implemented on my blog because I always use WP version 1.5.1.3 ...

So how to use it?

  1. Go to Deezer and create an account
  2. Create a playlist
  3. Looking for music to add to your playlist
  4. When done click "Embed ..."
  5. You will see in the code that will appear a line like this <param name= »movie "value= »http://www.deezer.com/embed/player?pid= &ap=0&ln=fr&sl=1"> 3903340 < / param>
  6. Note the parameter p id (3903340 in the example)
  7. Upload the file into your wp-content/plugins deezer.php
  8. In the WordPress administration interface, go to Plugins and activate the plugin Deezer
  9. Go to Theme -> Widgets and drop the plugin where you want
  10. Click on these properties, and add the title of your drive, the id of your playlist, which you noted before. Choose your language (currently there are only English and French), the setting for the auto play and transparency of the player. That's it : D
  • 07-09-2007 version 1.1:
    I added the ability to define the width of your drive (the height is automatically adjusted) in the properties of the widget. You can choose your unit in px or%.
  • 27-11-2007 version 1.2:
    I added the ability to use (or non) transparency to the reader through the interface of the widget.
  • 24-11-2009 version 1.3:
    Well I just dropped this plugin but occasionally I can give, even when changes ;) . So for once, I reduced the code because, as the reader that I implement is the playlist, I do not need to change its size. It is now hard to define 180px wide by 220px high. this will avoid unnecessary re-dimension (which again, for some reason I do not understand, did not work regularly). In addition, I removed the Path parameter that no longer exists on Deezer :) .
    PS. Warning please note the id parameter of your drive before upgrading from version 1.x as it is not preserved ;) .

For questions, bugs and technical aspects, head instead to the Forum .