get_option('lfm_username'), 'limit' => get_option('lfm_page_limit'), ), $atts)); $raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?method=" . "user.getrecenttracks&user={$user}" . "&api_key=" . get_option('lfm_apikey') . "&limit={$limit}"); $xml = new SimpleXMLElement($raw); foreach ($xml->recenttracks->track as $track) { $raw2 = file_get_contents("http://ws.audioscrobbler.com/2.0/?method=" . "track.getinfo&api_key=" . get_option('lfm_apikey') . "&artist=" . urlencode($track->artist) . "&track=" . urlencode($track->name)); $xml2 = new SimpleXMLElement($raw2); ?>

artist; ?> - name; ?>

date}"); break; endswitch; ?> | Scrobbled: track->playcount); ?> times | Total listeners: track->listeners); ?>

track->album->image[0] ) { ?> <?php echo($xml2->track->album->title); ?> Cover Art track->wiki->summary != null) { echo($xml2->track->wiki->summary); } else if ( (bool) $xml2->track->album->title ) { echo("From the album {$xml2->track->album->title}"); } else { echo("Could not find any information about this track."); } ?>

Tags: track->toptags->tag as $tag): echo("url}\">{$tag->name} "); endforeach; ?>

get_option('lfm_username'), 'limit' => get_option('lfm_summ_limit'), 'more' => null, ), $atts)); $raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?method=" . "user.getrecenttracks&user={$user}" . "&api_key=" . get_option('lfm_apikey') . "&limit={$limit}"); $xml = new SimpleXMLElement($raw); ?>

RSS Logo My Recent Tracks

recenttracks->track[0]['nowplaying']): case 'true': echo('Now listening'); break; default: echo("Last listened: {$xml->recenttracks->track[0]->date}"); break; endswitch; ?> | Showing: tracks | See more