Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.3
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

lastfm_tagcloud

This plugin shows a typical tagcloud from the stored data of a last.fm user. It has been added a new features and you can now select the kind of tagcloud that you wanna show. See help section of the plugin for more information.

Help

Usage: txp:lastfm_tagcloud username=“frangarcia” listtype=“toptracks” maxartists=“25”

Options:

  • username: you must specify your username at last.fm service. The default value is frangarcia (that’s me)
  • maxartists: you can specify a maxim number of artists to show. The default value is 100.
  • listtype: you can specify the kind of tagcloud that you want. These are the possible types:
    1. topartists
    2. topalbums
    3. toptracks
    4. topfriends
    5. topneighbours
    6. recenttracks

Article Request Count:
Keywords/tags:
Initially released:
19. Juni 2006
Posted here:
21 Jun 2006
Article modified:
07 Mar 2017

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (22)

Hey Fran, i like the idea of your plugin. So i try it out direct after i found it on this site. But! I get this message after my upload action.
“Badly formed or empty plugin code”
The result: no installed plugin

It would great when this issue get some attention.

Many Thanx!

Hi Max,

i don’t understand exactly what kind of problem you had. Have you already uploaded the plugin into your textpattern and you have obtained this message?

I have another time the plugin installed and I didn’t have any problem. Can you explain me all the process that you made to get this message?

Thanks, Fran!

Ruud van Melick:

This type of error occurs when you try to install the plugin, right after copy/pasting the plugin code and pressing the ‘upload’ button.

I tried this plugin in 4.0.3 and 4.0.4. No problems.

Most likely cause of the error is that Maix didn’t copy the plugin code completely into the plugin upload textarea of textpattern.

I think so that. Max, you must be carefully and select all text of the plugin and then paste into the box to upload it.

I hope you can use this plugin.

Fredrik:

Hey Fran! I can’t use recenttrack as listtype, but all the other tagclouds work. Why?

Hi Fredik,

thanks for your advice. I think that I’ve already solver the problems. Try to download another time the plugin and test it.

Let me know if it works well.

Fredrik:

It work’s now! Thank you Fran, you have been very helpful.

is there a way to wrap each song in a list or paragraph tag in order to stylize each item, rather than having a big hodgepodge of links?
thanks!

Is this plugin still working for the rest of you? I’m on TxP 4.0.5.

As far as I know, this plugin works with all versions. I’m using txp 4.0.6 and it works. Do you get an error or what’s the problem do you have?

Well, I’m getting nothing, really.. it’s just not outputting anything.

This is what I have:
<txp:lastfm_tagcloud username=alicson listtype=topartists maxartists=40 />

That outputs exactly nothing. (The clouds used to work for me, no problem… just stopped working somewhere along the way…)

In debugging mode, these are the error messages, that I don’t understand:

Tag error:
<txp:lastfm_tagcloud username=alicson listtype=topartists maxartists=40 /> -> Warning: usort() [function.usort]: The argument should be an array on line 39

textpattern/lib/txplib_misc.php(534) : eval()‘d code:39 usort()
textpattern/publish.php:963 lastfm_tagcloud()
processTags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/lib/txplib_misc.php:1383 parse()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processTags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()

Tag error: <txp:lastfm_tagcloud username=alicson listtype=topartists maxartists=40 /> -> Notice: Undefined variable: output on line 73

textpattern/publish.php:963 lastfm_tagcloud()
processTags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/lib/txplib_misc.php:1383 parse()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processTags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()
index.php:39 textpattern()

Much appreciated!
~Alicson

You just need to put the double quotes wrapping the values of the parameters like this:

<txp:lastfm_tagcloud username=“alicson” listtype=“topartists” maxartists=“40” />

I’ve tried that a few times.. tried it again just now, and same result = no output.

<txp:lastfm_tagcloud username=“alicson” listtype=“topartists” maxartists=“40” />

:-/

Am I missing something else?

Have you edited on your own the plugin? Maybe you can download it and install it again. Maybe is just a problem with your server, but the plugin doesn’t need any special server feature.

I put it your tag cloud of your user in last.fm on my site and it worked fine. I don’t know the reason. You contact with me directly in my email.

That’s helpful to know, thank you Fran; I appreciate it. I did recently reinstall the plugin, so that does not appear to be the issue.. Perhaps I have another plugin interfering somehow. I’ll try a few more experiments when I get the chance. If/when I figure it out, I’ll let you guys know what my dumb mistake [predicting] was.

For those having issues with the plugin, it’s probably due to your server’s settings.

I’ve updated the plugin to use another method of retrieving the information from Last.FM. You can download it here

Amit, what kind of changes have you made on the plugin? Maybe I can update the direct download of the plugin with your changes.

Solved! Thank you both so much..
Turned out to be settings on my server (I never (know to) play around with those settings).

With the helpful link from this thread, I turned on the fopen setting and curl..

And I now have my tag clouds back :) :)

Does anyone have a copy of this plugin? I don’t know why mine is missing a chunk of code at the bottom so the whole thing is broken; would love to have it back.

Found the page and plugin file :) (updated this article info accordingly); still hitting errors though..

Hi Alicson,

the plugin hasn’t been updated for ages (more than 10 years) so I guess some actions will need to be taken. What is the problem you are having?

Thank you again Fran for this plugin. Was so good. The error I'm getting is Warning: usort() expects parameter 1 to be array, null given while parsing form #lastfmtagcloud on page playlists Does that look fixable? It may be the problem is on the last.fm side, which would be really unfortunate :-/ I miss having my last.fm tag clouds.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

Would you care to write a comment?

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern