LastFM

Summary: Embed Last.fm widgets
Version: 2007-05-12
Prerequisites: PmWiki 2
Status: Stable
Maintainer: JonHaupt
Categories: Includes
Discussion: LastFM-Talk?

Questions answered by this recipe

How can I embed Last.fm Widgets such as radio, quilts, and charts in PmWiki?

Description

This recipe enables you to embed Last.fm widgets in PmWiki.

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:

  include_once("$FarmD/cookbook/lastfm.php");

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.

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.

Notes

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

2007-05-12: Initial release.

See Also

Contributors

Comments

See Discussion at LastFM-Talk?

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.