eZAudioScrobbler
eZPublish extension that provides fetch functions for the old AudioScrobbler API.
eZAudioScrobbler is best shown by an example:
{cache-block keys='last.fm' expiry=300}
{def $recent_tracks=fetch(audioscrobbler, recent_tracks,
hash(user, $user))}
<h2>{'Recent tracks for %user'|i18n('design/audioscrobbler', '',
hash('%user', $user))}
<ol>
{foreach $recent_tracks as $track}
<li>
<a href={$track.artist.url|ezurl}>{$track.artist.name}</a> -
<a href={$track.url|ezurl}>{$track.name}</a>
</li>
{/foreach}
</ol>
{/cache-block}
Beware that this will only work if you disable view cache for the is template and rely on cache blocks instead.
The extensions exposes the complete old API. It's still highly functional, allthough the last.fm crew does consider it legacy. The extension has not been tested on PHP5/eZP4, and probably won't be either (as I'm not using it myself anymore). However, if you want to use it for your 3.x eZ Publish install - enjoy!
Download eZAudioScrobbler from ez.no.
Download
- QUICK_REFERENCE (2.64 kB)
- README (3.47 kB)
- REFERENCE (13.53 kB)