r1 - 31 Aug 2006 - 15:09:44 - TWikiGuestYou are here: CWiki >  _BlogPlugin Web > TopicFunction > RenderLastFMRecentTracks

Function: RenderLastFMRecentTracks

Render a list of tracks you currently listen to

Parameters

Uses your LASTFMNICK in the WebPreferences, displays nothing if you didn't define it.

Implementation

%STARTINCLUDE%
%IFDEFINEDTHEN{"%LASTFMNICK%"}%
<div class="blogSideBarSection blogSideBarLastFM">
~~~ <h1 class=\"blogSideBarHeader\"><a href="http://www.last.fm/user/%LASTFMNICK%">Listening</a>
*~~   %REDDOT{"%WEB%.RenderLastFMRecentTracks"}%
*~~ </h1>
~~~
%~~ HEADLINES{
~~~   "http://ws.audioscrobbler.com/1.0/user/%LASTFMNICK%/recenttracks.rss" refresh="10"
~~~   limit="1"
~~~   header="<!-- -->" 
~~~   format="<span class=\"blogLastFMTime\">
~~~     $percntTIMESINCE{from=\"$date\" to=\"%GMTIME%\" format=\"$time ago\"}$percnt 
~~~     </span>"
~~~ }%
~~~ 
%~~ HEADLINES{
~~~   "http://ws.audioscrobbler.com/1.0/user/%LASTFMNICK%/recenttracks.rss" refresh="10"
~~~   header="<!-- -->"
~~~   format="   * <a class=\"nop\" href=\"$link\">$title</a>"
~~~ }%
~~~ </div>
%FIDEFINED%
%STOPINCLUDE%

Test

Calls to 'RenderLastFMRecentTracks'

TopicForm
TopicType TopicFunction
TopicDescription Render a list of tracks you currently listen to
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
CWiki
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding CWiki? Send feedback.