[lastfmrecords|overall|4]
See, the four albums I listened to the most since joining last.fm on March 3rd, 2004. These three four images appear because I added
[ lastfmrecords | overall | 4 ]
(without the spaces) to this page. The plugin code will replace this with the images. As you can see this way of showing covers is back in 1.5.4. Only thing to fix is the widget now — that one stays empty as the [] code overrules the widget. But the main thing for me is that if you want, you can use this option.
In the sidebar on your right you can see the plugin version. All the options are on the settings page for the plugin, except for the widget title.
Download
The plugin version is available at the WordPress Plugins Directory. Version 1.5.4 has been updated for WordPress 2.9.
Can I use this widget without WordPress?
Yes you can! Just include the javascript file from the zip and call it from your webpage.
An example:
<div id="lastfmrecords"></div> <!-- do not forget to include jQuery if it is not already included --> <script type='text/javascript' src='/PATH/TO/jquery.js'></script> <script type='text/javascript' src='/PATH/TO/last.fm.records.js'></script> <script type="text/javascript"> jQuery(document).ready( function() { var _config = { // last.fm username username: 'YOURUSERNAME', // number of images to show count: 10, // period to get last.fm data from period: '3month', // when to get new data from last.fm (in minutes) refresh: 1, // difference between your timezone and GMT. offset: 1 }; lastFmRecords.init(_config); }); </script>
The period option can be set to `recenttracks`, `7day`, `3month`, `6month`, `12month`, `overall`, `topalbums` and `lovedtracks`.
Welkom! Op deze pagina's vind je meer info over mij en het werk dat ik als zelfstandig programmeur uitvoer (en hier en daar een spelletje).


167 Comments
Dag Mirthe, de javascript zit in het bestand last.fm.records.js. Als je de code die als voorbeeld in deze pagina (zie boven) kopieert en aanpast waar PATH/TO staat, werkt het. Laat je weten of het gelukt is?
hello! thanks for this awesome plugin! i am currently looking to edit or create my own plugin for last.fm which would have a weekly snapshot of top artists within a post which would hopefully automatically update or which i would post each week at a specific time. i see that you have the weekly option but it stays current to the most recent 7 days not a specific date range… is it possible to edit the code for a specific date range? if not, do you know of any way to accomplish this?
thanks for yr help!
Hiya!
Thanks for last.fm records…..it’s great! I’m using it on my WordPress site, but not as a plugin. Wondering if there’s a way of having the links (album covers) open in a new window?
eg. target=”_blank”?
excuse my late reply — holiday season :-)
@Tiffany: the images and their links are added at lines 219 and 237 (current version) of the javascript file. You could try adding
.attr(“target”,”_blank”)
just before the last semicolon of these lines. Nice touch, I’ll put it on my list of possible options for the plugin.
@skiddysmith: you would need completely different code to do this, as the current version of my plugin uses javascript to display the covers, so the list of artists is never saved in WordPress.
Hi,
Love the plugin, I’m having issues with changing the period.
No matter what I change it to it always shows the same ten images.
I’m using this outside of wordpress, here is my code:
lastfm.js:
var lastFmRecords = (function() {
// private, reachable through public setters
var _user = ‘c_leckie’;
var _period = ‘lovedtracks’;
var _count = 6;
var _styletype = ”; // can be highslide, lightbox
var _refreshmin = 3;
var _placeholder = ‘lastfmrecords’;
var _defaultthumb = ‘http://cdn.last.fm/depth/catalogue/noimage/cover_85px.gif’;
var _debug = false;
var _gmt_offset = ‘+1′;
jQuery(document).ready( function() {
var _config = {
// last.fm username
username: ‘c_leckie’,
// number of images to show
count: 10,
// period to get last.fm data from
period: ‘lovedtracks’,
// when to get new data from last.fm (in minutes)
refresh: 1,
// difference between your timezone and GMT.
offset: 1
};
lastFmRecords.init(_config);
});
[ lastfmrecords | overall | 10 ]
Any ideas?
Thanks!
Hi there, thank you for your well designed widget, however I’m having a tiny problem with it in IE7 & Safari, but it works perfectly in Firefox.
In IE / Safari a little image box appears above the widget. It’s the little red x the appears if it’s a wrong link to an image or something. Not sure if there is something in the code that I could tweak? If so how do I access this (I downloaded it via the plugin)? I’m currently using V3.0 of WP.
Any help much appreciated :-)
Hi Steph, back from my 2nd holiday ;-) I’m on a Macbook, so can’t find the little red x. I’ll go and check on a Windows computer later this week.
32 Trackbacks
[...] Last.Fm Records Displays a list of images from my last.fm profile. It can be controlled to display almost any list you want; weekly,monthly, yearly etc. [...]
[...] : Annexationfr.zip [ 1 téléchargements] Nécessite les plugins Last.fm plug-in de Jeroen Smeets et Twitter for WordPress plugin de [...]
[...] professional WordPress theme released under the GNU General Public License. Integration with the Last.Fm Records plugin in the footer to showcase the music you’re currently listening to (don’t worry, if you [...]
[...] was a problem with Last.Fm Records plugin by Jeroen Smeets when using WordPress 2.8.1 but he fixed it quickly with version 1.5.3. [...]
[...] I was playing with my blog recently, and during some updates I decided to have a play with the Last.Fm Records WordPress widget. I didn’t like how it was displaying the recent tracks album art (bit buggy [...]
[...] Smeets Skip to content ProjectsThe Associative DictionaryLast.Fm RecordsCurrent tagsAbout « Geode Open letter to my (ex-) hosting company [...]
[...] Anyone notice the new plugin? It show what I’ve recently listened to (it tends to change constantly because I listen to a lot of music) courtesy of Last.fm. It’s called Scrobbling, I think. All I know is that my iTunes and my iPod Touch is linked up to my Last.fm account via a program I had to download from the site and then with the help of the plugin it shows the music I’ve recently listened to. You can get the plugin yourself here. [...]
[...] ich hier aber keine ewig lange Review schreiben möchte, habe ich mich entschlossen mit Hilfe von Last.Fm Records einfach nur eine Übersicht meiner meistgehörten Alben des Jahres 2009 online zu [...]
[...] Last.fm Records Get Recent Comments Subscribe to Comments WordPress.com Stats for the [...]
[...] LastFM [...]
[...] Last.Fm Records [...]
[...] deine aktuelle Last.fm Playlist auch auf deinem Blog weiter empfehlen? Mit dem WordPress-Plugin Last.fm Records kannst du deine Lieblingscover auf deinem Blog [...]