web analytics
you're reading...

Featured

Last.fm RPS WordPress Plugin

 

 

 

 

 

 

 

 

 

 

 

Note: if you have this error message shown inside the plugin :

Deprecated: Function split() is deprecated in
blabla/wp-content/plugins/lastfm-rps/lastfm.php
on line 120

Please change

$artist = split("_",$string);

on line 120 to

$artist = explode("_",$string);

Description : Its a widget plugin which collects data from Audioscrobbler web services and gets your last listened tracks and their album images. It works in PHP4 platforms and uses my simplexml class to collect data from Audioscrobbler.

Installation : The directory structure should be like this :

 --> wp-plugins/
	|-- lastfm_RPS/
		|-- noart.gif
		|-- simplexml.class.php
		|-- readme.txt
		|-- lastfm.css

Then just activate the plugin, go to Design-Widgets, add the widget where you want, write the username and widget title in the settings and save. That’s all.

Note : If your theme isn’t widget enabled, you can insert this plugin in your sidebar.php file or wherever you want like this :

<div>
<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>

Download : You can get the latest release here : http://wordpress.org/extend/plugins/lastfm-rps/

Current Version : 1.1

Demo : You can see a working example in the middle sidebar at my homepage ;)

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-ready 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 v0.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




  • Sorry, I don’t have much time to work with this plugin. Maybe later (don’t know when) I’ll rewrite it with new features. So if you want some extra features, feel free to post here. And thanks for using it.

    August 07 2012
    CommentsLike
    • Sue

      I’m sorry to hear the plugin isn’t being developed further. But I’ll keep using it with my workarounds until I find something better. Thanks.

      August 07 2012
      CommentsLike

      • Hi Sue, thanks for trying my plugin first. Second, I didn’t catch this bug before and I’m not developing this plugin further. That was written 4 years ago. The overlapping issue would be fixed with CSS I think. And caching is saving the response from last.fm server to a file and using it for about 3-4 minutes for every request. When the cache expires, It’ll load a newer version into the cache file, so it’ll improve speed and will reduce unnecessary api calls to last.fm.

        August 06 2012
        CommentsLike
        • Sue

          I like your plugin best out of many I tried, but it sometimes shows one more item than what I have set in “list size” If I set list size to four, sometimes it will show five items, and so on. Any fix for this?

          At first I had the plugin set to show my user profile/badge. This worked fine when I viewed it on my desktop browser, but in Safari on iOS, the badge text was overlapping the image so I had to take it off. Since I couldn’t “inspect elements” on my iPad, I wasn’t able to figure out how to modify the CSS to prevent this.

          Does caching mean that when Last.FM’s site is running slow or down, it won’t affect the loading of my site? This is a problem I was having with other LastFM plugins I tried.

          August 06 2012
          CommentsLike

          • Ok, the files now I’m using are packed at http://www.tahapaksu.com/lastfm-rps.rar download and try it. if it doesn’t work, there might be something wrong with your wp installation. My WP version is 3.4.1 too.

            June 30 2012
            CommentsLike

            • Tried deleting and reinstalling to no avail, still hit the same error. Updated WP to 3.4.1 and the error is still the same :(

              June 29 2012
              CommentsLike

              • Re-download the package and re-install it. And tell me what happens.

                June 28 2012
                CommentsLike

                • Hey, I’m getting an error when I try and install it :( All other plugins install fine but for some reason this won’t, i’ve had it installed before, but changed host and updated wordpress. Any ideas?

                  Plugin could not be activated because it triggered a fatal error.
                  “Parse error: syntax error, unexpected ‘}’ in /var/www/vhosts/taktak.co.uk/httpdocs/wp-content/plugins/lastfm-rps/lastfm.php on line 449″

                  June 25 2012
                  CommentsLike

                  • try replacing

                    $album = rawurlencode(utf8_encode(str_replace($replace,$with,stripslashes($album))));

                    with

                    $album = rawurlencode(utf8_encode(str_replace($replace,$with,stripslashes((string)$album))));

                    on line 190.

                    May 27 2012
                    CommentsLike

                    • Hey there!

                      I seem to be getting the following error — may you help?

                      Catchable fatal error: Object of class stdClass could not be converted to string in /home/exit3/public_html/exit3/wp-content/plugins/lastfm-rps/lastfm.php on line 190

                      Thanks!

                      May 26 2012
                      CommentsLike


                      Categories

                      Son Yazılar // Recent Posts

                      jQuery Scrolite Plugin
                      April 14, 2012
                      By Taha Paksu
                      Yine yarışmadayım!
                      March 1, 2012
                      By Taha Paksu
                      SASS User Tool for Editplus
                      February 22, 2012
                      By Taha Paksu
                      Installing SASS on Windows
                      February 22, 2012
                      By Taha Paksu
                      SASS – Syntatically Awesome Stylesheets
                      February 22, 2012
                      By Taha Paksu
                      Bir isim koyma hikayesi: nelm.io
                      February 21, 2012
                      By Taha Paksu
                      PHP Animated Gif Resizer
                      February 13, 2012
                      By Taha Paksu
                      about costabrava hack and some fix.
                      February 11, 2012
                      By Taha Paksu