[pmwiki-users] New recipe: Last.fm Widgets
Jon Haupt
jhaupt at gmail.com
Sat May 12 14:21:41 CDT 2007
http://pmwiki.org/wiki/Cookbook/LastFM
This recipe allows you to incorporate Last.fm widgets
(http://last.fm/widgets) into your PmWiki installation.
To install, place lastfm.php in your cookbook directory, then add the
following to config.php or another local configuration file:
include_once("$FarmD/cookbook/lastfm.php");
You can embed radio players, playlist players, quilts, or charts.
The recipe enables the (:lastfm:) markup. You add arguments to
customize the widget.
Here are the arguments:
type (chart, radio, playlist, quilt)
user
color/colour (red, blue, black, grey)
chart (recent, topartists, toptracks, weeklyartists, weeklytracks)
quilt (album, artist)
orient (horizontal, vertical)
size (small, medium, large for quilts; regular, mini for radios)
autostart ( 1 for an autostarting radio )
If you just put in a username and nothing else, you will get, by
default, a red medium-sized chart of recent tracks played.
Jon Haupt
More information about the pmwiki-users
mailing list