Tags: Tags: , , , Comentários Deixe seu comentário!

iLast.Fm – WordPress Last.Fm Plugin

No meu último post falei sobre o plugin que desenvolvi para o WordPress: o iLast.Fm. Como disse no artigo, basicamente o plugin se conecta a sua conta no Last.Fm e permite mostrar diversas informações como: músicas recentemente ouvidas, artistas mais ouvidos, álbuns, etc.

Ainda no mesmo artigo, pedi a ajuda de possíveis colaboradores para testar o plugin, e qual não foi a minha surpresa ao ver o interesse de algumas pessoas! :D Gostaria de agradecer ao Thiago Bomfim e, principalmente, ao Felipe Fernandes Horn que simplesmente dissecou o plugin, encontrando diversos bugs e dando várias sugestões! Muito obrigado, Felipe!

Bom, voltando ao plugin, vou ressaltar (novamente) seus recursos:

  • Oito opções de exibições, dentre elas: Música ouvidas recentementes, artistas mais ouvidos, músicas mais ouvidas, álbuns mais ouvidos, álbuns mais ouvidos semanalmente, músicas mais ouvidas semanalmente, artistas mais ouvidos semanalmentes, músicas amadas (Loved Tracks).
  • O plugin pode exibir imagens dos álbuns (cover arts) ou artistas, ou exibir informações em forma de texto. Ou ambos! Como você queira. ;)
  • Cache dos dados e imagens, tornando tudo muitissímo mais rápido!
  • Completamente e facilmente configurável pelo painel de administração do WordPress.
  • Se você não conhece nada de HTML/CSS, não há problema: existe o widget iLast.Fm (basta arrastar e pronto!) e um estilo (CSS) pronto para ser usado, com o tamanho das imagens customizáveis.

Como dito anteriormente, o plugin está funcionando aqui no blog, na página inicial, com os álbuns que eu mais ouvi na semana passada.

Ah! Além disso, ele já se encontra no repositório oficial de plugins do WordPress, e possui um mini-site com algumas informações (em inglês, por enquanto) sobre o mesmo! :)

Então, se você tiver uma conta no Last.Fm e um blog em WordPress, não deixe de testar o plugin, nem que seja por curiosidade! E se gostar, não esqueça de deixar sua sugestão.

40 Comentários »

04/08/08 às 21:17

Tu é o cara, já falei? hahahah

Devidamente linkado.

Abs!

 
04/08/08 às 23:51

Grande Lenadro! =D

Quem tem a idéia que é o cara! Garanto que esse será um dos, se não o plug-in de Last.fm mais usado para wordpress! ;)

Abraço!

 
06/08/08 às 14:50

Trabalho de mestre, da página ao plugin completo, opções, suporte. Genial, com certeza é o melhor plugin de Last.fm para wodpress.
Já pensou em rentabilizar isso para os afiliados Submarino?Só uma idéia. Talvez não muito boa.
Abs

06/08/08 às 20:39

Já pensei sim Thiago! :D

Inclusive essa é uma das funções que pretendo implementar em alguma próxima versão do plugin. Não só com afialiados do submarino, mas de outros sites também.

 
 
07/08/08 às 01:12

Já tenho alguma coisa nova pra fazer no meu template!!!
No fds vou instalar/testar o plugin

Já vi o site da ferramente e está bem feito!
Se funcionar igual o design vai ser sucesso :D
Parabens

 
07/08/08 às 08:02

Hi!

Nice Plugin.. i guess… this requires PHP5, right? Is this necessary? If not, a PHP4-copmatiple version would be nice ;)

07/08/08 às 08:31

Thanks for the commentary Marcus!

The PHP5 is necessary, because PHP4 don’t have the SimpleXML library. This sucks, i know, but, don’t have another way. :(

 
 
08/08/08 às 09:17

Leandro,

Great plugin. I’ve seen it in action and downloaded the zip three times hoping it wasn’t something I did. But I keep getting this error.

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/moojoobe/public_html/wp-content/plugins/ilastfm/ilastfm.php on line 315

Any help?

22/09/08 às 17:35

Try this:

1. Found these lines on ilastfm.php:

private $apikey;
private $username;
private $method;
private $mode;
private $number;
private $period;
private $coverwidth;
private $cache;
private $imagecache;
private $jump;
private $nocover;

2. And replace it by:

var $apikey;
var $username;
var $method;
var $mode;
var $number;
var $period;
var $coverwidth;
var $cache;
var $imagecache;
var $jump;
var $nocover;

3. Activate plugin

4. Tell me what you get. :D

Ps.: The plugin needs PHP5, check it.

 
 
09/08/08 às 00:47

Thanks for the great plugin. Been looking for this.
Great job!

 

Andrea
14/08/08 às 10:46

Same error here…

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/mindplay/public_html/200/wp-content/plugins/ilastfm/ilastfm.php on line 315

 
16/08/08 às 18:29

Hi there,

i really like the plugin, works like a charme! Thank you very much!

Though I have one major suggestion:

Instead of a settings-page, let the user configure the ouput via the parameters of the PHP-function.
That way, it would be possible to use multiple instances of the plugin.

I then could show my top tracks of the last 3 months followed by the top artists of all time by simply calling the function two times with different parameters.

It would make your plugin even more useful!

(I hope i was able to explain it properly, if you couldn’t understand it, i’ll give some examples..)

Cheers, Manuel

 
17/08/08 às 15:25

I am using this plugin – I love it. Thank you.

 
25/08/08 às 20:47

Adorei esse site!
O plugin é bem interessante! Vou testar! ;)

 
31/08/08 às 00:15

Já usou um plugin desenvolvido por um “gringo”, mas agora vou testar o iLast.Fm :)

Parabéns pelo o plugin.

 
31/08/08 às 12:58

Thanks for the wonderful plugin. I’m using yours after being a long time user of “last.fm records”.
Keep it up!

 
05/09/08 às 14:47

Tchê !!! Estava procurando este plugin, mas não havia achado.
Com relação ao blog está muito bacana.
Valeu.

 
08/09/08 às 13:22

I get this same error
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/mindplay/public_html/200/wp-content/plugins/ilastfm/ilastfm.php on line 315

 
13/09/08 às 02:16

O plugin está dando erro e não consigo ativá-lo!

Aparece isso:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/httpd/vhosts/just-stranger.com/httpdocs/testes/wp-content/plugins/ilastfm/ilastfm.php on line 315

Estou usando a versão mais recente do WordPress.

 
13/09/08 às 19:10

Hi. Great plugin! But alas, it doesn’t work. My “last 5 songs” section doesn’t update! Any ideas? PLease e-mail me if you can help :(

Or drop a line at the site…

 
13/09/08 às 19:15

Uhm…nevermind. Looks like it’s working now :)

 
29/09/08 às 22:34

Muito bom! Baixei do site do WordPress e já tinha achado muito maneiro, quando vi que tinha sido desenvolvido por um brasileiro achei ainda mais legal :) Parabéns!

 
30/09/08 às 11:27

Great plugin, as I mentioned before.
But, “last.fm records” has an option to “get more images
if necessary”, which grabs more images to always fill the amount of images you specify. This would be great if you use the “weekly album chart” and only show albums with a cover. That way it would grab covers from the week before.
That would be awesome. Thanks.

 
12/10/08 às 08:38

Your plugin gives the me the following error:

Fatal error: Call to undefined function curl_init() in D:\wamp\www\wp\wp-content\plugins\ilastfm\ilastfm.php on line 429

when I am trying to run it on my local installation of wordpress. Am I missing something here?

 
12/10/08 às 08:45

Update:
Uploaded it on my server and I got the following error:
Warning: Invalid argument supplied for foreach() in /home/laemo/public_html/wp-content/plugins/ilastfm/ilastfm.php on line 496

 
29/10/08 às 08:27

wow menino, eu estava tentando desenvolver uma coisa dessas quando resolvi pesquisar pra ver se já não existia e tcharam: encontrei você!
Congrats pelo plugin e por me fazer poupar tempo ^^
Ainda não instalei mas desde já agradeço ;P

 
17/11/08 às 22:47

I really like the way your plugin is styled compared to other last.fm plugins =) So I am quite determined to use it!

However I keep getting this error:

Warning: ilastfm(/home/kolmedo/public_html/pixelgeekgirl/blog/wp-content/plugins/ilastfm/cache/output.cache) [function.ilastfm]: failed to open stream: No such file or directory in /home/kolmedo/public_html/pixelgeekgirl/blog/wp-content/plugins/ilastfm/ilastfm.php on line 301

I have set up that folder is writable through my file manager; my server allows php 5. I am truly at a loss. I also had to do that change “private” to “var” fix listed up above to get the plugin to activate.

Anyone have an answer?

01/12/08 às 06:15

I’m having the same problem with line 301… anyone have a fix??

17/01/09 às 05:40

me either. the result shows there are some problems on line 315.

 
 
 
19/11/08 às 17:29

I have discovered a few small bugs with iLast.Fm.

The first may be because different versions of PHP5 behave differently but in line 384 in my version the sizeof() always returns 1 so $chartopt = 0. I have fixed it by coding

$chartopt = -1; foreach($chart->weeklychartlist->chart as $i) $chartopt++;

instead.

Secondly line 600 has no ‘else’ clause so if an album has no title the previous one carries across. You need

else { $album = ”; }

after it.

Finally line 382 should really exclude method 8 but it doesn’t do any harm.

Thanks for a great plugin.

 
30/11/08 às 13:51

Hi

I’ve installed the plugin in a page of my blog and it doesn’t work. The PHP Version is 5.2.5 and I’ve changed the CHMOD of the cache folder to 777. I don’t know if the php can write files in it (i’m afraid it’s still empty). :(

I don’t know what’s wrong.

 
05/01/09 às 18:55

Hi there

Great plugin…appreciated! Is there a way to get it to show the album covers and band/song…right now mine is showing the album covers and band/song/album…THx :-)

 
08/01/09 às 07:21

Can you adapt it as a buddypress plugin?

BuddyPress will transform an installation of WordPress MU into a social network platform.
the site
http://buddypress.org

 
09/01/09 às 08:02

Ótimo plugin! Estou usando no meu blog. Achei que não seria compátivel com a versão 2.7 do WordPress, já que na página do plugin não fala nada, mas está funcionando belezinha. Você deveria atualizar lá pra indicar que é compátivel com a nova versão.

Abraço

 
25/01/09 às 21:30

Hi there,

first of all thank you for this plugin.

I want to use the RedCent Musics css, but it does not display the little icon ilastfm_music.png.
where do I have to copy it

here are my settings
http://img.skitch.com/20090126-nrpabcty2fyr1d6q95k6qpwret.jpg

 
13/03/09 às 14:09

Olá Leandro.
Meu sou mto burrinha para essas coisas. Fiz o Dowload do ILast.fm mas não estou conseguindo coloca-lo no meu wordpress. Você pode me responder aki ou me mandar um e-mail de como fazer isso?

Obrigada ^^

b-joks

 
16/01/10 às 01:53

Oi, Leandro… estou usando o WordPress 2.9.1 e tento instalar seu plugin do last.fm e no local onde coloco o widget dá erro: Warning: Invalid argument supplied for foreach() in linha 496

 
14/02/10 às 01:58

Hello!
I love your plugin, the best out there for Last.fm :)
I was wondering if it’s possible to add multiple users, instead of only 1?
I use WP 2.9.1 and iLastfm 0.2 and everything works perfectly.
I really hope you can help me adding multiple users (i use the plugin inside pages)
Thank you! :)

 
27/04/10 às 15:51

Caríssimo Leandro: estou estruturando meu blog no WordPress e apliquei o teu plugin.

Só tenho a te dizer que ele é O MELHOR plugin para Last.Fm a quilometros de distância! Você merece os parabéns!

Ah, e este teu blog também é excelente! Vou segui-lo.

Abraços fr.

 

Trackbacks para este post

Deixe seu comentário

[diminuir | aumentar]
Tags HTML permitidas: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>