=== WPLastfm === Contributors: loeffler Donate link: http://www.kosmonauten.cc/wordpress/wplastfm Tags: lastfm, last.fm, music, widget Requires at least: 2.5 Tested up to: 2.8.5 Stable tag: 1.0.4 Displays recent tracks from your last.fm account. Requires PHP 5! == Description == Displays recent tracks from your last.fm account. **Important: Requires PHP 5!** **Features** * Easy to set up via widgets (requires Wordpress > 2.8) * Displays your current tracks (Listening now) * Customizable by template and css (you decide what is displayed) * Data is kept locally (default: 45 seconds) * English and German localization == 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 3. Example == Changelog == = 1.0.4 = * Added a fixed height for the album cover * Added the option to configure the maximum length of the title/album = 1.0.3 = * Fixed a problem with the right version number = 1.0.2 = * First stable release == 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