Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-03-30 20:43:57

TheEric
Plugin Author
From: Wyoming
Registered: 2004-09-17
Posts: 566

Re: [request] Proper last.fm Plugin!

I’de develop it, but I would most probably ransom it, especially since it’s Driz asking for it.

Offline

#14 2009-09-02 21:32:47

zeusdidit
Member
Registered: 2007-10-16
Posts: 111

Re: [request] Proper last.fm Plugin!

Can’t you just use bit_rss and simplepie and pull the rss feed? I just did.
http://blog.zeusdidit.com/popsci/

Last edited by zeusdidit (2009-09-02 21:34:53)

Offline

#15 2010-08-01 13:00:33

kch42
New Member
From: Lübeck, Germany
Registered: 2010-07-25
Posts: 2

Re: [request] Proper last.fm Plugin!

I have developed and published a plugin, which will list your recently listened songs:
http://textpattern.org/plugins/1185/kch_lastfm_recently

It is very flexible, you can configure, how many songs should be listed, if the album cover should be displayed or not and many more.

Here is a example, how to use it:

<txp:kch:lastfm_recently name="yourusername" count="5" date_format="%H:%M:%S" />

By default, it will cache the results, because I think it would otherwise produce a lot of traffic, if your website has much hits.

It uses the Last.fm API and it should be no problem to extend it with more features or use it as a template for other last.fm plugins.

Offline

#16 2017-03-07 07:59:59

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [request] Proper last.fm Plugin!

I didn’t see another thread for lastfm_tagcloud; was a beautiful plugin when it was working, which it is currently not doing for me and I’m hoping someone can help me figure out why..

Is this error familiar to anyone?/how may I troubleshoot?: Warning: usort() expects parameter 1 to be array, null given while parsing form #lastfmtagcloud on page playlists


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#17 2017-03-07 08:13:34

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [request] Proper last.fm Plugin!

Issue may be on last.fm side ? :-/ I miss my tag clouds.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#18 2017-03-07 08:30:17

etc
Developer
Registered: 2010-11-11
Posts: 4,191
Website

Re: [request] Proper last.fm Plugin!

alicson wrote #304483:

Issue may be on last.fm side ? :-/

I’d suspect that last.fm API has changed quite a bit. In particular, they want you to register, to get an API key.

Edit: once you’ve got a key, you can extract all kind of data, either server-side:

<txp:etc_query url="http://ws.audioscrobbler.com/2.0/?method=user.getTopTracks&user=test&api_key=4a9f5581a9cdf20a699f540ac52a95c9&limit=10&format=json"
	markup="json" query="toptracks/track/*" wraptag="ol" break="li" label="Top Tracks" labeltag="h4"
>
	<a href="{url?}">{name?}</a> by <a href="{artist/url?}">{artist/name?}</a> ({playcount?} times)
</txp:etc_query>

or with numerous javascript plugins.

Offline

#19 2017-03-13 09:18:45

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [request] Proper last.fm Plugin!

etc wrote #304484:

once you’ve got a key, you can extract all kind of data, either server-side:

<txp:etc_query url="http://ws.audioscrobbler.com/2.0/?method=user.getTopTracks&user=test&api_key=4a9f5581a9cdf20a699f540ac52a95c9&limit=10&format=json"...

Thank you! Really appreciate this. I don’t know how to use it, however I’ll play around and figure it out in the not-too-distant-future.. Still trying to iron out a few other things meanwhile..


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

Board footer

Powered by FluxBB