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 […]
[…] secret. Разширенията които използвам са: Contact Form 7 ; Exec-PHP ; Last.fm for WordPress ; Twitter for WordPress ; Akismet stefanstoilov.com се хоства от dreamhost и […]
[…] Eklenti sayfasına aşağıdaki bağlantıdan ulaşabilirsiniz: http://rick.jinlabs.com/code/lastfm […]
[…] is now a message on the Last.fm plugin site stating… I know the plugin show a nasty error with WordPress 2.8, I am on it, but seems a […]
[…] wersji 2.8 wystąpił mały problem z wtyczką last.fm, ale wystarczyło podmienić plik http.php zgodnie z instrukcją na macierzystej stronie plugina. Jak ręką odjął! Dodaj do serwisów: These icons link to […]
[…] I’ve hacked together a tool to help me rename and reorganize my MP3 library, butchered the Last.fm plugin I use for WordPress into something that displays my application-usage statistics from Wakoopa, and […]
[…] Last.fm for WordPress plugin by […]
[…] Ich habe eine Lösung gefunden. Es gibt ein kleines nettes PlugIn, welches die zuletzt gescrobbelten (?!) Songs anzeigt. Im Endeffekt nichts anderes als ein umgebauter RSS-Reader. Download PlugIn: http://rick.jinlabs.com/code/lastfm/ […]
[…] Last.fm for WordPress @ Rick’s HideOut […]
[…] but then it just got to me. SO, this iteration uses FlickrRSS, this Twitter widget plugin, and Last.fm for WordPress, all three of which represent the three most active online spaces I inhabit. And, that’s […]
[…] j’ai trouvé ça: un plug-in assez configurable, mais surtout, qui est customizable via du CSS. Moi qui aime le CSS, […]
[…] ダウンロードは last.fm for WordPress […]
[…] Last.fm for WordPress : A simple plugin that allows you to display your recently listened tracks from Last.FM. […]
[…] http://rick.jinlabs.com/code/lastfm/ This entry was posted in Linux & Open Source Stuff. Bookmark the permalink. ← You […]
[…] Last.fm for WordPress – Puts a list of your most recent scrobbled Last.fm songs into your sidebar. […]
[…] Hearing displays songs that are currently or were last played from my iTunes library or on my iPhone. It uses Last.fm and Last.fm for WordPress. […]
[…] Rick’s HideOut – Last.fm for WordPress. Jos tykkäät jaa muillekin..! […]
[…] Last.fm for WordPress配布サイトはこちら […]
[…] For more info (options, customization, etc.) visit the plugin homepage. […]
[…] Last.fm for WordPress Last.fm for WordPress display最近听过的歌曲tracks到你的WordPress博客。 […]
3absolutism
dissertation proofreading services https://professionaldissertationwriting.org/
books thesis dissertation help https://professionaldissertationwriting.com/
dissertation acknowledgement sample https://helpwithdissertationwritinglondon.com/
phd dissertation help proposal https://dissertationwritingcenter.com/
phd dissertation help proposal https://dissertationhelpexpert.com/
dissertation help services https://accountingdissertationhelp.com/
dissertation defense https://examplesofdissertation.com/
thesis vs dissertation https://writing-a-dissertation.net/
dissertation writing services reviews https://bestdissertationwritingservice.net/
dissertation help articles https://businessdissertationhelp.com/
how long is a doctoral dissertation https://customdissertationwritinghelp.com/
doctoral dissertation help your https://writingadissertationproposal.com/
dissertation help uk https://dissertationhelperhub.com/
uk dissertation help https://customthesiswritingservices.com/
free vpn proxy https://freevpnconnection.com/
best vpn firestick https://shiva-vpn.com/
best vpn for computer https://freehostingvpn.com/
super vpn https://ippowervpn.net/
astrill vpn https://imfreevpn.net/
free vpn proxy https://superfreevpn.net/
vpn proxy https://free-vpn-proxy.com/
best vpn for streaming https://rsvpnorthvalley.com/
best gay dating apps https://gay-singles-dating.com/
squirt gay dating cruising and sex site https://gayedating.com/
dating black gay ass https://datinggayservices.com/
gay sex cam chat mobile android https://newgaychat.com/
shemale/gay online chat sites https://gaychatcams.net/
popular gay chat 360 https://gaychatspots.com/
dubuque gay chat https://gay-live-chat.net/