get_option('lfm_username'),
'limit' => get_option('lfm_summ_limit'),
'period' => 'overall',
), $atts));
$raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?method="
. "user.gettopartists&user=" . urlencode($user)
. "&period=" . urlencode($period)
. "&api_key=" . get_option('lfm_apikey'));
$xml = new SimpleXMLElement($raw);
?>
Showing: artists
|
See more
get_option('lfm_username'),
'limit' => get_option('lfm_page_limit'),
'period' => 'overall',
), $atts));
$raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?"
. "method=user.gettopartists&user={$user}"
. "&api_key=" . get_option('lfm_apikey'));
$xml = new SimpleXMLElement($raw);
$i = 0;
foreach ($xml->topartists->artist as $artist) {
if ($i++ == $limit)
break;
$raw2 = file_get_contents("http://ws.audioscrobbler.com/"
. "2.0/?method=artist.getinfo&artist="
. urlencode($artist->name)
. "&api_key=" . get_option('lfm_apikey'));
$xml2 = new SimpleXMLElement($raw2);
?>
Rank:
| My Play Count:
playcount); ?>
| Scrobbled:
artist->stats->playcount); ?>
times | Total listeners:
artist->stats->listeners; ?>
artist->bio->summary; ?>
Tags:
artist->tags->tag as $tag):
echo("url}\">" . $tag->name . " ");
endforeach;
?>
get_option('lfm_username'),
'limit' => get_option('lfm_summ_limit'),
'period' => 'overall',
), $atts));
$raw = file_get_contents("http://ws.audioscrobbler.com/"
. "2.0/?method="
. "user.gettopalbums&user=" . urlencode($user)
. "&period=" . urlencode($period)
. "&api_key=" . get_option('lfm_apikey'));
$xml = new SimpleXMLElement($raw);
?>
Showing: albums
|
See more
get_option('lfm_username'),
'limit' => get_option('lfm_page_limit'),
'period' => 'overall',
), $atts));
$raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?"
. "method=user.gettopalbums&user={$user}"
. "&api_key=" . get_option('lfm_apikey') . "");
$xml = new SimpleXMLElement($raw);
$i = 0;
foreach ($xml->topalbums->album as $album) {
if (++$i == 15)
break;
$raw2 = file_get_contents("http://ws.audioscrobbler.com/2.0/?"
. "method=album.getinfo&artist="
. urlencode($album->artist->name)
. "&album=" . urlencode($album->name)
. "&api_key=" . get_option('lfm_apikey') . "");
$xml2 = new SimpleXMLElement($raw2);
?>
Rank: | My Play Count: playcount); ?> | Scrobbled: album->playcount); ?> times | Total listeners: album->listeners; ?>
album->wiki->summary; ?>
Tags:
album->toptags->tag as $tag):
echo("url}\">" . $tag->name . " ");
endforeach;
?>
get_option('lfm_username'),
'limit' => get_option('lfm_summ_limit'),
'period' => 'overall',
), $atts));
$raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?method="
. "user.gettoptracks&user=" . urlencode($user)
. "&period=" . urlencode($period)
. "&api_key=" . get_option('lfm_apikey'));
$xml = new SimpleXMLElement($raw);
?>
Showing: tracks
|
See more
get_option('lfm_username'),
'limit' => get_option('lfm_page_limit'),
'period' => 'overall',
), $atts));
$raw = file_get_contents("http://ws.audioscrobbler.com/2.0/?"
. "method=user.gettoptracks&user={$user}"
. "&api_key=" . get_option('lfm_apikey') . "");
$xml = new SimpleXMLElement($raw);
$i = 0;
foreach ($xml->toptracks->track as $track) {
if (++$i == 15)
break;
$raw2 = file_get_contents("http://ws.audioscrobbler.com/2.0/?"
. "method=track.getinfo&artist="
. urlencode($track->artist->name)
. "&track=" . urlencode($track->name)
. "&api_key=" . get_option('lfm_apikey') . "");
$xml2 = new SimpleXMLElement($raw2);
?>
Rank:
| My Play Count: playcount); ?>
| Scrobbled: track->playcount); ?> times
| Total listeners: track->listeners; ?>
track->wiki->summary; ?>
Tags:
track->toptags->tag as $tag):
echo("url}\">" . $tag->name . " ");
endforeach;
?>