This plugin gets your last.fm feed and parses your recently played song information and then combines it with the album tag
also taken from the last.fm feeds. If it doesn’t find an album image, It shows the artist image instead of it.
Whats New in Version 0.2?
- Added option to define how many songs are displayed on the page
- Seperated css file from code and added new “lastfm.css” file
- Added different stylesheets to recently played songs
- Changed the datetime display configuration like “x days y seconds and z minutes ago”
- Changed the div’s into tables which are more reliable for different themes.
- If the user hasn’t any wp_head() included in his/her theme’s header.php, this script checks and adds its css itself.
Whats the fixes in Version 0.3?
- Added a neccessary fix for the time difference between server time and local time.
- If there is a track played in the player which length is less than 4 minutes ,the script showed two recently listened songs, so this is fixed now.It only displays one.
Whats New in Version 0.4?
- Added support for not widget-enabled themes.
- Added Screenshot
- Updated Readme.txt
Whats the fixes in Version 0.5?
- When no songs played for a long time or only played only one song, this script raised errors. This is fixed now.
- Optimized the SimpleXML Extension for speed issues.
What’s added in v0.6
- Improved checking of album images.
- If the feed item contains no album name, then directly shows default image.
What’s New in Version 0.7?
- Added image positioning
- Added optional Bottom Text
- Removed the slashes before ‘ and “
- Converted tables to css so you have all the control in lastfm.css
- Added artist images support. Now it shows artist images when it can’t find the album image.
The changes in 0.8
- Added Various Artists album image support
- Added last.fm badge option
- Improved options page
- Added last.fm logos (you should use one)
The changes in 1.0.0
- Added cURL and fopen support
The minor changes in 1.0.2
- Added security to file reading function inside class.
The changes in 1.0.3
- Empty images show up as last.fm image placeholders now.
- Fixed the compatibility issue with wordpress 2.7 (Their compat.php broke one of my function and i renamed it.)
- Thanks to Tom for informing me that last.fm started to use 64×64 images instead of 50×50. Thats also changed.
The changes in 1.1
- Added caching support
- Changed Last.fm API v1.0 code to v2.0 code
- Fixed “Now Playing” code
The changes in 1.1.1
- Fixed annoying file_get_contents error.
- Track and artist corrections
- Upload ‘lastfm-RPS’ directory to the ‘/wp-content/plugins/’ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Design->Widgets and Add “Last.fm RPS” widget on your desired sidebar.
- Click to “edit” and insert your last.fm username and widget title you want to display in your sidebar
- Thats all. Go to your main page and check if there’s any errors. If you wrote your username right, then there shouldn’t be any.
Note : If you want to use the caching feature, you need to check that your ‘/wp-content/plugins/lastfm-rps’ is writeable.
If your theme isn’t widget-ready; you can insert the code like this :
<div class="sidebar"> <h3>My Last.fm</h3> <?php lastfm_recent_sidebar([username],[songs to show],[timezone diff in seconds],[image position 'left' or 'right'],[The text at bottom of this widget],[enable cache 'true' or 'false'])?> </div>