Описание
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.
Установка
- Unzip lastfm-recent-tracks-widget.zip and upload the entire folder to wp-content/plugins.
- 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>
Часто задаваемые вопросы
- 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
Отзывы
Нет отзывов об этом плагине.
Участники и разработчики
«Recently on Last.fm» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
УчастникиПеревести «Recently on Last.fm» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.