=== WPLastfm === Contributors: loeffler Donate link: http://www.kosmonauten.cc/wordpress/wplastfm Tags: lastfm, last.fm, music Requires at least: 2.5 Tested up to: 2.8.4 Stable tag: 1.0.2 Displays recent tracks from your last.fm account. == Description == Displays recent tracks from your last.fm account. **Features** * Easy to set up via widgets (requires Wordpress > 2.8) * Displays your current tracks (Listening now) * Customizable by template and css * Data is kept locally (default: 45 seconds) * English and German localization **Important: Requires PHP 5!** == Installation == 1. Upload folder `wplastfm` to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Done == Frequently Asked Questions == None. == Screenshots == 1. Example 2. Widget configuration options == Integration == **If you are using widgets** * Design → Widgets * Drag the widget into your sidebar * Configure your username, the number of shown tracks and the template * Done **If you are not using widgets** Copy the following PHP code in your template: `` You can configure the plugin via "wplastfm-settings.php" or via array. E.g. ` '%track%', "cache" => 45, "trunctrack" => 40, "truncalbum" => 25); ?>` == Customization == The plugin provides the following CSS classes: * ul.lastfm — the list * ul.lastfm li — ul list elements * ul.lastfm li a — last.fm links * ul.lastfm li img — image formatting * ul.lastfm li cite — time formatting * ul.lastfm li span.lastfm-album — album formatting If you don't need the `wplastfm.css`, you can delete it. == Settings == You can change the following settings in the "wplastfm-settings.php" or via array. * `$wplastfm_options['cache']` - Specifies how long the data is kept locally * `$wplastfm_options['trunctrack']` / `$wplastfm_options['truncalbum']` - Maximum length of the text * `$wplastfm_options['timeformat']` - Time format for songs played more than 24 hours ago