This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Recently on Last.fm

Description

The Last.fm Recent Tracks Plugin / Widget let’s you display your Last.fm recent tracks in the sidebar of your blog, useful if you use WP-Cache / Super Cache and want the feed to be fresh. It leverages jQuery and JSONP to provide a never-stale, asynchronous connection to Last.fm.

Screenshots

  • View of the widget in the K2 Theme.

Installation

  1. Unzip lastfm-recent-tracks-widget.zip and upload the entire folder to wp-content/plugins.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Widget Enabled Themes

  • Go To The Widget Screen Under Appearance.
  • Add The Recently on Last.fm Widget.
  • Add Your own Last.fm username to see your recent tracks.
  • Select The number of Recent Tracks you want to display
  • Save your changes

Non Widget Enabled Themes

  • Add the jquery.lastfm.js file to the head of your document
  • Add The following HTML to your sidebar, replacing __YOUR_USER_ID__ with your actual Last.fm username
<div class="last_fm_recent_tracks_bx">
        <style type="text/css">
            <!--
                .sp_list_itm_span { display:block; }
            -->
        </style>
    <h4><a href="http://www.last.fm/user/__YOUR_USER_ID__" target="_blank">Recently on Last.fm</a></h4>
     <ul id="recent_on_last_fm_itm_list"></ul>
     <script type="text/javascript">
        jQuery('#recent_on_last_fm_itm_list').lastfm({ params : { limit : 5, user : '__YOUR_USER_ID__' } })
     </script>
</div>

FAQ

How Does It Work

Magic?! But seriously. The plugin / widget leverages JSONP to connect to the Last.fm API for a specified username to provide a never-stale, asynchronous connection to Last.fm.

What awesome technologies are at play

jQuery, JSONP, PHP & WordPress!

How do I install it

See the installion section

Who do I complain to if it’s broken?

gregory.tomlinson [at] gmail [dot] com

Contributors & Developers

“Recently on Last.fm” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Recently on Last.fm” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.