Last.fm for WordPress displays your Last.fm recently listened tracks in your WordPress blog.
Features
- Simply
- Customizable
- Widget ready
- No options page (yes, it’s a feature)
- Uses WordPress resources (no extra files needed)
- Multiple widgets (Thanks to Michael Feichtinger)
Installation
Drop the lastfm-for-wordpress folder into /wp-content/plugins/ and activate the plug in.
Usage
If you use WordPress widgets, just drag the widget into your sidebar and configure.
If widgets aren’t your thing, use the following code to display your recently listened tracks:
lastfm_tracks('username');
Last.fm for WordPress also has several configurable options. Here’s what you can configure:
lastfm_tracks('username', [tracks], [list], [timestamp], [linked], [encode_utf8]);
- username: your Last.fm username
- tracks: number of recently listened tracks to show
- list: show tracks in a unordered list
- timestamp: show a relative timestamp
- linked: create a link to each track
- encode_utf8:turn it on if you have encoding problems
Only username is required. The other parameters will take this default values:
lastfm_tracks('username', 5, true, true, true, false);
This is: 5 tracks, in a list, with timestamps and with links.
So, if I wanted to show my last 5 recently listened tracks, not in a list, with timestamps and with links I would use the following:
lastfm_tracks('username', 5, false, true, true);
Customization
The plug in provides the following CSS classes:
- ul.lastfm: the main ul (if list is activated)
- li.lastfm-item: the ul items (if list is activated)
- p.lastfm-track: each one of the paragraphs (if tracks > 1)
- .lastfm-timestamp: the timestamp span class
- a.lastfm-link: the track link class (if linked is activated)
Live Demo
lastfm_tracks('Ryck');
Download
Version History
1.3.1 – 2008/04/17
- Fixed: Invalid HTML with titles with special characters. Thanks aljuk
1.3 – 2008/04/08
- Now using human_time_diff() instead own function: better performance, less code and automagically i18n!
1.2.1 – 2008/04/1
- I messed it up with the encoding. Now works.
1.2 – 2008/03/31
- Added encode_utf8 option in order to (hopefully) fix the encoding issues.
1.1.1 – 2008/02/26
- Small bug fixed. Thanks to Mateus Moraes
1.1 – 2008/01/03
- Multi-Widget Feature. Thanks to Michael Feichtinger
1.0.1 – 2007/09/08
- Fixed some HTML encoding issues. Props to Dave.
1.0 – 2007/08/22
- Initial Release
Credits
- Ronald Heft – The plugin is highly based in his Pownce for WordPress, so the major part of the credits goes to him.
- Michael Feichtinger – Contributed the multi-widget feature code
Contact
Suggestion, fixes, rants, congratulations, gifts et al to rick[at]jinlabs.com or by my contact page.
Code
Maybe you could be interested in my other plugins: Code
134 replies on “Last.fm for WordPress”
[…] Last.fm for WordPress displays your Last.fm recently listened tracks in your WordPress blog. […]
[…] Last.fm for WordPress displays your Last.fm recently listened tracks in your WordPress blog. […]
[…] Visit […]
[…] Last.fm for WordPress – Rick’s HideOut […]
[…] Last.fm for WordPressGets your Last.fm recently listened tracks. […]
[…] vind je een Last.FM widget. Hoewel, widget, het is wat gepruts in html/css in combinatie met de Last FM plugin voor WordPress. Nu kunnen ook mijn messenger buddies zien welke tunes er door de boxen knallen. […]
[…] erste Plugin, Last.fm for WordPress, liest den RSS-Feed von Last.FM aus und erstellt daraus eine Liste mit den zuletzt gehörten […]
[…] I already use the Last.fm for WordPress plugin, I used their relative time function: lastfm_relative(). If you don’t have/want that […]
[…] Descobri ontem. Você cria um perfil como no Orkut, mas ao invés de ficar catando pessoas, você procura por músicas. Pode ouvir de tudo. E também conhecer pessoas de todo mundo. Pode conhecer os álbuns dos artistas do mundo inteiro. Adicionar músicas ao seu perfil e assim ir construindo sua própria rádio on-line. Ver os video clips das músicas, sem precisar ficar procurando no Youtube.com ou outro. Veja que em minha barra lateral estou exibindo as músicas que ouço no meu WinAmp, e na ordem que estou ouvindo. Também é um recurso da LastFM.com associado ao plugin Last.fm for WordPress. […]
[…] Darum gibts nun das hier: http://rick.jinlabs.com/code/lastfm/ […]
[…] de la musique sur Last.FM et grace aux bons soins de Last.fm for WordPress, j’affiche mes gouts musicaux en […]
[…] voilà, eine neue Stilvorlage, oder Theme. Außerdem habe ich unten rechts in der Sidebar meine last.fm-Liste eingebaut. Man muss ja auch ein wenig mit Mashups […]
[…] One for displaying your latest played tracks from last.fm, one for displaying your bookmarks from del.icio.us, one for displaying your latest twitters and finally one for displaying your latest flickr pics. […]
[…] am now using WordPress plugins to display my del.icio.us bookmarks, Last.fm tracks, and Flickr […]
[…] Last.fm for WordPress […]
[…] et les derniers titres écoutés via last.fm à l’aide du plugin last.fm for WordPress. […]
[…] Written by Ricardo González at Rick’s Hideout, thanks […]
[…] Last.fm for WordPress […]
[…] Het is grappig een database te hebben die 120 MB groot is, en na het legen van deze cache nog maar 5 MB in beslag neemt. Ik denk dat mijn webhost een beetje vrolijker is geworden. Inmiddels gebruik ik een andere plugin. […]
[…] Last.fm for WordPress – Puts a list of your most recent scrobbled Last.fm songs into your sidebar. […]
[…] I tried to put a Last.Fm plugin on my sidebar. If you have no idea what this plug in does, read it here. Due to my low I.Q, I failed. The plugin didn’t work and I don’t even know why. Urgh. […]
[…] Last.fm for WordPress – Damit kann man anzeigen lassen, was man zuletzt für Musik gehört hat. Dazu benötigt man einen Account bei Lastfm.de […]
[…] you may have noticed, I’ve added the fantastic and minimalist Last.fm for WordPress plugin to my blog, authored by Rick of Rick’s HideOut. I much prefer Rick’s plugin to the […]
[…] müzik dinliyorsanız bu ikisini birleştirme ve paylaşmak için güzel bir şansınız var. Rick’s HideOut günlüğünde yayınladığı laft.fm eklentisi sayesinde sizde dinlediğiniz müzikleri […]
[…] Last.fm – this gives a list of all the Last.fm songs that I’ve scrobbled in the recent past, i like to know what people are listening to, and i’d like to think that other people like to know what i’m listening to. I think it’s a fun way to share interests and often says a lot about a person (in my eyes at least!) […]
[…] Last.fm for WordPress – Muestra la lista de temas reproducidos recientemente en la barra lateral. […]
[…] Grund dafür ist, dass ich mich endlich mal bei Last.fm angemeldet habe. Passend dazu habe ich dieses Plugin eingebaut. Lädt man sich die Last.fm-Software herunter, wird – sofern man es möchte – jedes […]
[…] Plugin Last.fm von Ricardo González für WordPress zeigt die bei Last.fm zuletzt gelisteten Musik – Tracks im […]
[…] Last.fm for WordPress—I listen to music fairly regularly on last.fm, and this plugin displays my recently-listened tracks, along with a link to each song. (You can see it in action on my About page.) […]
[…] Last.fm for WordPress, es un caso similar al anterior pero para mostrar las canciones que se envian a través del scrobbling a mi cuenta en Last.fm. […]
[…] I have also found a simple plugin that allows me to list my recently played tracks from Last.fm to my website. Hat tip Rick’s […]
[…] Google之后找到了一款wordpress的插件 — lastfm for wordpress,效果就如下图所示了,仅仅能显示最近播放的歌曲而已。 […]
[…] can get the plugin for your own WordPress blog from http://rick.jinlabs.com/code/lastfm. Category: Site […]
[…] LastFM for WordPress throws the handy little Last.fm info up on the sidebar. I use Last.fm a lot (any time I listen to anything on either computer or the iPhone) so you can see the last 20,000+ tracks I’ve listened to if ou track down my profile. […]
[…] uses last.fm’s monitoring of my winamp playing stuff. after that, i’ve installed a widget that spares me the trouble of a flash(y) embedded last.fm thingy. just plain text, with no links […]
[…] Last.fm for WordPress […]
[…] Last.fm for WordPress v1.3.1 replaced with Last.fm RPS v1.0.2. […]
[…] Again, there are many other attributes which can be set such as how many tracks to display. These can be found here http://rick.jinlabs.com/code/lastfm/. […]
[…] Last.fm for WordPress Last.fm for WordPress display最近听过的歌曲tracks到你的WordPress博客。 […]
[…] Last.fm for WordPress displays your Last.fm recently listened tracks in your WordPress blog. […]
[…] added some nifty widgets to the blog, my favorites thus far being my last.fm for WordPress and my Quotes Collection, both of which help showcase my over adoration for […]
[…] Gone are the Last.fm flash widget – in it’s place, a simple text-based list courtesy of the Last.fm for WordPress widget/plugin. Also gone is the FriendFeed widget/plugin that didn’t really display anything new but […]
[…] have hacked the Last.fm for WordPress plugin from here to search Spotify. At present I don’t plan to release the plugin but will do shortly after I […]
[…] lastfm_tracks(’re404′); (from: http://rick.jinlabs.com/code/lastfm/) […]
[…] come Last.fm for WordPress sono stati ottimizzati per Second To None e altri lo saranno in […]
[…] visning görs möjlig genom det enkla tillägget Last.fm for WordPress som hämtar de senaste spelade sångerna från ditt konto. Du har bland annat möjligheten att […]
[…] z webu dle návodu Tomáše Hnatovského , ale nezdařilo se. Na řadu tedy přišel populární Last.fm plugin pro wordpress, který se vyznačuje svou jednoduchostí. Přesto přezevšechno pracuje k mé […]
[…] for WordPress displays your recently listened tracks in your WordPress blog… …..read more Download Plugin! Version 1.3.3 Last Updated: February 8, 2009 Plugin Owner: Ricardo […]
[…] 配布先 :: Last.fm for WordPress – Rick’s HideOut 2.プラグインフォルダーにアップロード。 3.プラグインの有効化 […]
[…] alte Last.FM Widget Plugin ist geflogen und gegen ein simpleres, schnelleres ausgetauscht worden. Last.FM for WordPress. Es kann zwar nicht so viel und ist mehr oder minder Text. Dennoch funktioniert es und wird auch […]