Last.fm Audioscrobbler Plugin for Habari
May 16, 2008 at 18:06 / Updated at May 20, 2008
Introduction
This plugin allow you to display the album cover art from your recent tracks recorded at Last.fm powered by Audioscrobbler on your Habari page.
Requirements
- Habari 0.4.1 or later
- SimpleXML enabled
- GD enabled
Installation
- Download the plugin (Version 0.3).
- Extract the the file to user/plugins in your Habari path.
- Activate and configure the plugin at the Habari admin page.
Configuration
- Last.fm username - If you don't have a Last.fm username, get it at Last.fm for free. The web service may take about 5 days to works if you just for first time using the Last.fm.
- Period - The period of record to fetch.
- Records cache path - Cache directory to store the records cache relative to Habari path, make sure it's writable by webserver.
- Cache expire time - The expiration time of cache in second, 0 also means no cache. Beware your page will slow loading.
- Cover image size - The image size in square dimension.
- Maximum albums - Maximum CD cover images to display, may from 1 to 10.
- Image cache - Would you cache the image in your server or use the original one.
- Image cache path - Cache directory of cover images relative to Habari path, fill it only if the image cache is enable and make sure it's writable by webserver.
- Default image URL - An URL of image to use as default if the album cover not found.
- Stylesheet class - Select the stylesheet class to apply on the <ul> tag.
Usage
<?php $theme->scrobbler() ?>
Demo
Take a look at the bottom of my home page.
Changelog
Version 0.1 (May 16, 2008)
- Initial release
Version 0.2 (May 17, 2008)
- Fixed handling for not found cover
- Added no cover image option
Version 0.3 (May 20, 2008)
- Improved error handling
- Better handling on 404 response
- Retitled some options
- Added support for recent weekly album chart
- Added period option
- Improved cache handler
No comments / Got a comment? Submit yours / Comments feed
There are currently no comments.