Listen To

Wiew Readme in english

Dette er en plugin som lar deg vise hva du hørte på når du postet et innlegg i bloggen din.
Den funger slik at den henter info om den siste “scrobblede” sangen på Last.fm, og viser den i posten din. Så som dere skjønner så er denne pluginen avhengig av at du har en Last.fm konto.

Installasjon:

  1. Last opp listenTo.php til plugins mappen din og aktiver den.
  2. Gå til Settings->Listen To og skriv inn opplysningene dine
  3. Skriv inn < ?php listenTo(); ?> der du ønsker at det skal dukke opp

Du har også muligheter for å sette noen parametre for hva som skal komme før og etter linken, og før og etter hele pluginen.
< ?php listenTo($before, $beforeLink, $after, $afterLink); ?>

Demo:
Se bloggen min

eks:

Hørte på: J Mascis – Repulsion

Last ned innstikket

English Readme

This plugin will display the latest song you scrobbled trough Last.fm while writing a post.

== Description ==

This plugin uses the last scrobbled song on Last.fm as the basis for dsplaying the song you listend to while you where writing your post. It will not display anything if the last
scrobbled song in last.fm, is older than 10 mins. when you publish your post.

Styling the link:
1. The link is sourounded by a span with a class = listenTo
2. When there is no link the span has an aditional class = listenTo_noLink
3. The link has a class = listenTo_link

You need to add the template tag in the content part of your template(or where you wish for it it apear.) when you place it you have some options if you are an advaced user;

< ?php listenTo($before, $beforeLink, $after, $afterLink); ?>

1. $before will apear before a “span”
2. $beforeLink will apear before the “a href”
3. $after will apear after “/span”
4. $afterLink will apear after “/a”

Included languages
1. English
2. Norwegian

== Installation ==

1. Upload the listenTo folder to the “/wp-content/plugins/” directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Configure the plugin in Settings->Listen To
4. Place “< ?php listenTo(); ?>” in your template (recomended around you post.)

Download Plugin

Verson History

1.2 - 2008/03/18
Bugfix
1.0 - 2008/03/17
Initial Release.

Contact

You can contact me by using the comment form or e-mail me ; alex [at] herr-nilsson [dot] com

Use this mail address for feature requests/bug reports too.