Contrib: eZAudioScrobbler (www.last.fm integration)

Author Message

Christian Johansen

Thursday 23 August 2007 6:38:55 pm

Wee, my first contribution is online: http://ez.no/community/contribs/template_plugins/ezaudioscrobbler

It's an implementation of the AudioScrobbler/last.fm web services that allow you to display data from peoples last.fm accounts, example:

{cache-block keys='last.fm' expiry=600}
    {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}

Seeing as this is my first contribution feedback on any part of it is very welcome.

Vathanan Kumarathurai

Monday 27 August 2007 9:30:01 am

Hi Christian

I have just tried the eZAudioScrobbler extension -- it is excellent. I am going to integrate it in my website and will get back to you if I encounter any problems.

Just wanted to say thanks right away. :) Well done.

/vathanan

"Ninety percent of everything is crap"
~Sturgeon's law

Christian Johansen

Tuesday 28 August 2007 3:50:28 pm

Cool, thanks! Looking forward to see it in action so share your URL when you're done :)

Be sure to post any problems or ideas for improvement

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:25:06
Script start
Timing: Jan 31 2025 00:25:06
Module start 'layout'
Timing: Jan 31 2025 00:25:06
Module start 'content'
Timing: Jan 31 2025 00:25:06
Module end 'content'
Timing: Jan 31 2025 00:25:06
Script end

Main resources:

Total runtime0.0274 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.2656151.2266
Module start 'layout' 0.00640.0044 739.4922220.7188
Module start 'content' 0.01080.0149 960.2109997.8672
Module end 'content' 0.02570.0017 1,958.078133.9922
Script end 0.0274  1,992.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.0134140.0002
Check MTime0.00103.8125140.0001
Mysql Total
Database connection0.00083.012610.0008
Mysqli_queries0.003011.053230.0010
Looping result0.00000.051310.0000
Template Total0.00124.410.0012
Template load0.00103.599510.0010
Template processing0.00020.761610.0002
Override
Cache load0.00072.581410.0007
General
dbfile0.00279.838680.0003
String conversion0.00000.032240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs