Important notice: As of 3-May-2007 Pandora is blocking users living outside the U.S. from using the service, which affects me also. Therefore, I can only offer limited support for this plugin.
- Description
- Download
- Requirements
- Installation and Setup
- Adapt your Theme
- WordPress Pandora Widget
- Need Help?
- Found a bug? Feature request?
- License
Description
Inspired by and building upon the great work of Jean-Paul Franssen, who developed a wordpress-sidebar-widget to display feeds coming from Pandora, I have now finished programming a WordPress plugin, which can help you to place Pandora-feeds freely anywhere in your theme-templates.
You can see it in action here.
The plugin receives the feeds from Pandora and transforms the data into xHTML that can be integrated into your WordPress themes. To retrieve the feeds, the MagpieRSS-library which is integrated into WordPress is used. WP’s MagpieRSS is configured to cache the retrieved data in your database. This will limit the requests sent to Pandora and increase the performance of this plugin and your site.
This is the first plugin I wrote, so I cannot guarantee it to be 100% error-free. However, I have tested it with WordPress 2.1 and it should work fine. It might also work with WordPress 2.0, but this is untested. I can’t help you, if there should be problems connected to WP 2.0 or older.
Please don’t post comments, if you need help! Use the forum instead! Thank you.
I’m developing this plugin in my spare time, so I cannot reply to every request at once. But I’m willing to help you as quickly as possible.
This page you are currently reading should answer all your questions regarding installation, setup and usage of this plugin. If not, please feel free to contact me!
Pandora and the Music Genome Project are registered trademarks of Pandora Media, Inc.
There is a support-forum for this plugin.
Download
The current version 0.5.0.3 can be downloaded here:
zip archive at wordpress.org.
The plugin’s sourcecode is available via subversion repository
Requirements
All you need:
Installation and Setup
Complete these steps to install the plugin:
- Download the archive and extract the files
- Copy the file pandorafeeds.php into your plugin-directory: www.yourblog.com/wp-content/plugins/
- Go to the plugin-section of your blog’s admin-area, scroll down to Pandora Feeds for WordPress Plugin and press activate.
- Now go to the Options section and klick on ‘Pandora Feeds’
- Insert your Pandora-account name into the input-field. You register at Pandora with your E-Mail-address. Your account-name is the local-part of the address. For example, if you have registered with john.doe@example.com, you should enter john.doe into the textfield.
- Congratulations, you’re done! Now you can adapt your theme.
What is my account-name?
To find out, open your pandora-player and view your profile:
When you click on View your Profile, a new browser-window or -tab will open. Take a look at the new URL:
The part of the URL right from people/ is your account-name (jan.weinschenker in this example).
Adapt your Theme
The plugin provides three tags that can be used inside WordPress-themes. They are further explained in the following subsections. It is not needed to place these tags inside the WordPress Loop.
The tags will deliver lists of xHTML-1.1-listitems (<li> … </li>). That should make it easy to insert them into a static page for example.
Display Stations
<?php pandorafeeds_display_user_stations(NUMBER_OF_ITEMS); ?>
This tag creates a list of your stations. It should be enclosed inside an <ul>-tag.
The parameter NUMBER_OF_ITEMS will be the maximium number of stations to be displayed. For example …
<ul>
<?php pandorafeeds_display_user_stations(15); ?>
</ul>
… would display the 15 most recent of your Pandora-stations. If you only have 8 stations, the list will only consist of these 8 stations. If you want all of your stations to be displayed, set the parameter to -1:
<ul>
<?php pandorafeeds_display_user_stations(-1); ?>
</ul>
Each listitem represents one of your pandora-stations and will look like this:
<li class="pandorafeeds-stations">
<a href="%URL_TO_STATION%" class="pandorafeeds-stations" title="%STATION_NAME%">
%STATION_NAME%
</a>
</li>
- %URL_TO_STATION% will be the URL pointing to your station at pandora
- %STATION_NAME% will be the name of you station
Notice the CSS-class ‘pandorafeeds-stations’. You can use it to adapt the look of the listitem to your theme.
Display Bookmarked Songs
<?php pandorafeeds_display_bookmarked_songs(NUMBER_OF_ITEMS, SHOW_COVER); ?>
This tag creates a list of your bookmarked songs. It should be enclosed inside an <ul>-tag.
The parameter NUMBER_OF_ITEMS will be the maximium number of songs to be displayed. You can set it to -1 to display all of your favorites. The parameter SHOW_COVER lets you decide, if images of the CD-covers should be displayed. For example …
<ul>
<?php pandorafeeds_display_bookmarked_songs(15, true);?>
</ul>
Will show the 15 most recent bookmarked songs together with their CD-cover.
<ul>
<?php pandorafeeds_display_bookmarked_songs(15, false); ?>
</ul>
Will show the same list, but with no CD-covers.
Each listitem represents one of your pandora-stations and will look like this:
<li class="pandorafeeds-favorites">
<img src="%URL_TO_COVER%" class="pandorafeeds-favorites" title="%TITLE% - %ARTIST%" alt="%TITLE% - %ARTIST%" />
<a href="%URL_TO_SONG_AT_PANDORA%" class="pandorafeeds-favorites" title="%SOME_DESCRIPTION%">
%TITLE%
</a> by %ARTIST%
</li>
- %URL_TO_COVER% will be the URL pointing to the image of the cover at Pandora.
- %TITLE% will be the title of the song.
- %ARTIST% will be the name of the artist.
- %URL_TO_SONG_AT_PANDORA% will be the URL pointing to more information about the song.
- %SOME_DESCRIPTION% will be a short description of the song.
Notice the CSS-class ‘pandorafeeds-favorites’. You can use it to adapt the look of the listitem to your theme.
Display Bookmarked Artists
<?php pandorafeeds_display_bookmarked_artists(NUMBER_OF_ITEMS); ?>
This tag creates a list of your bookmarked artists. It should be enclosed inside an <ul>-tag.
The parameter NUMBER_OF_ITEMS will be the maximium number of artists to be displayed. For example …
<ul>
<?php pandorafeeds_display_bookmarked_artists(15); ?>
</ul>
… would display the 15 most recent of your bookmarked artists. If you only have 8 artists, the list will only consist of these 8 artists. If you want all of your artists to be displayed, set the parameter to -1:
<ul>
<?php pandorafeeds_display_bookmarked_artists(-1); ?>
</ul>
Each listitem represents one of your pbookmarked artists and will look like this:
<li class="pandorafeeds-favoriteartists">
<a href="%URL_TO_ARTIST_AT_PANDORA%" class="pandorafeeds-favoriteartists" title="%ARTIST%">
%ARTIST%
</a></li>
- %URL_TO_ARTIST_AT_PANDORA% will be the URL pointing to more information about the artist
- %ARTIST% will be the name of the artist.
Using Stylesheets
You can use CSS to design the look of the lists. The following code shows the relevant style-classes, which you can adapt to your theme.
/*
* Style-classes for your stations
*/
li.pandorafeeds-stations {
/* define the look of listitem here*/
}
li.pandorafeeds-stations a {
/* define the look of an enclosed link here*/
}
/*
* Style-classes for your bookmarked songs
*/
li.pandorafeeds-favorites {
/* define the look of listitem here*/
}
img.pandorafeeds-favorites {
/* define the look of an enclosed image here*/
vertical-align: text-top;
}
li.pandorafeeds-favorites a {
/* define the look of an enclosed link here*/
}
/*
* Style-classes for your bookmarked artists
*/
li.pandorafeeds-favoriteartists {
/* define the look of listitem here*/
}
li.pandorafeeds-favoriteartists a {
/* define the look of an enclosed link here*/
}
WordPress Pandora Widget
If you plan to insert the feeds into your sidebar, the WordPress Pandora Widget from Jean-Paul Franssen will be your friend!
Need Help?
There is a support-forum for this plugin.
Found a bug? Feature request?
This plugin is hosted at WordPress.org, which is the right place for these matters. Of course, you can also send me an e-mail.
If you want to report a bug or submit a feature request, I would be delighted to hear from you! Please use this form to get in touch with me. Fill out the form and remember to select my plugin at the Component-section (choose “pandora-feeds-for-wordpress”):
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Pandora and the Music Genome Project are registered trademarks of Pandora Media, Inc.



Pingback: Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 2/19
Pingback: WeblogToolsCollection DE » Blog Archive » WordPress Plugin Veröffentlichungen am 19.2.
That is a very nice implementation of my widget! Lot’s of functionality! Will try it out!
Cheers!
Pingback: rgb255 » Blog Archive » Pandora Widget now also as Plugin
Pingback: Julius Sison » Blog Archive » Audio Plugins for WordPress
Hey, i got your comment. Thanks! I hope that you can give link my site to yours. Goodluck.
Pingback: Audio plugins for WordPress
Pingback: WP Plugins DB » Blog Archive » Pandora Feeds for WordPress
Pingback: A big thank you at SovietNinja.com
Pingback: Blog & WordPress » Audio plugins for WordPress
Pingback: WP Plugins DB » Plugin Details » Pandora Feeds for Wordpress Plugin
Pingback: 50+ WordPress Plugins for Multimedia
Pingback: 50+ Plugins de Wordpress para Multimedia « Quest’s Blog
Pingback: 50 Multimedya Worldpress plugin by # YaMTaR
Pingback: 50 plugins para manejo multimedia en Wordpress « COMPU-RECURSOS
Pingback: Audio plugins for WordPress : Blog & WordPress
Pingback: WORDPRESS GOD:300+ Tools for Running Your WordPress Blog
Pingback: voozzy.com » Blog Archive » Плагины для WordPress
Pingback: bilgiservisim » Wordpress multimedya eklentileri
Pingback: Бизнес » Архив блога » Плагины для wordpress
Pingback: 300+ Popular Plugins for Running Your WordPress Blog
Pingback: Wordpress god300 tools for running your wordpress blog by mashabale.com · Cyber Space in One Hand
Pingback: Wordpress god300 tools for running your wordpress blog by mashabale.com · Cyber Space in One Hand
Pingback: 50+ Wordpress Plugins for Multimedia
Pingback: On-line дневник оптимизатора
Pingback: On-line дневник оптимизатора » Архив блога » Плагины для Wordpress с описанием на русском в 3-х частях. Часть 2.
Pingback: WordPress: +100 plugins et applications pour votre blog WP
Pingback: WordPress: +100 plugins et applications pour votre blog WP
Pingback: Плагины для WordPress
Pingback: Плагины для WordPress | Блог Дениса Лизунова
Pingback: ARHI » Blog Archive » Pluginuri de baza pentru un blogger
Pingback: dimanet » Архив блога » Список разных плагинов для WordPress
Pingback: Audio plugins for WordPress at core strategy: www & real-world
Pingback: SEO | SEM | Affiliate Expert | Andy Huang
Pingback: shawn rider dot com
Pingback: The Ultimate WordPress Plugin Library : Get More Reviews
Hey, Thanks!. on WP 2.5 in my dont work but 2.3 ok .Goodluck.
[...] [...]
Pingback: 300+ Tools for Running Your WordPress Blog : Freshweblab Network
Pingback: 50 plugins para manejo multimedia en Wordpress
Pingback: 300 лучших плагинов для WordPress | Спорт, боевые искусства, технологии, МПО
Pingback: 300+ Tools for Running Your WordPress Blog « Itz all neu
Pingback: Wordpress插件大全(多媒体相关篇) | kleom's blog
Pingback: Los mejores plugins Wordpress - Megacolección | El blog de Crix
Pingback: Plugins Wordpress : 60 plugins Multimédia (Images, Videos, MP3…) | froboo.com
Pingback: Plugins para multimedia en wordpress « El Cubanito Web
Pingback: Los mejores plugins Wordpress - Megacolección | Bloggeros
This is a great plugin and if anyone wants to see it in action I have it set up three ways here
http://theotherblog.net/pandora-radio/
Pingback: Plugins Wordpress : 60 plugins Multimédia (Images, Videos, MP3…) | youbuzz
Pingback: 50个与多媒体相关的Wordpress插件