Last.fm Widgets for PmWiki
12 May 2007, Afternoon
Last.fm has announced some new widgets that you can place in your web site. I decided to create a PmWiki recipe for how to embed them there. For an example, notice that my sidebar now has an album quilt. Without further ado:
This recipe allows you to incorporate 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:
You can embed radio players, playlist players, quilts, or charts.
For more information, see http://last.fm/widgets.
The recipe enables the
(:lastfm:) markup. You add arguments to customize the widget.
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.