Need help? Check out our Support site, then


last.fm chart

  1. How do i install this in my blog?.Do i just add it into the html of the blog?.

    any help appreciated

    Yours truly
    Adam

  2. What does the code look like? If it's got an Embed or a Form tag, it's not going to work here.

  3. <a href="http://www.last.fm/user/adman32003/?chartstyle=basic10"><img src="http://imagegen.last.fm/basic10/oartists/adman32003.gif" border="0" alt="adman32003's Profile Page" /></a>

    that tis the code :)

    EDIT:aargh the forum butchered it >:(

  4. Put spaces between each < and everything that comes after it, also before each < or > . That should make it readable.

    It doesn't happen to have Javascript in it, does it? Cuz that will get it blown up. It will not work here for security reasons.

  5. Stuff fixed. Easiest way to add in code here in the forums is to do it between backticks. That's the mark right above the tab key on the PC keyboard. Says it on every page. :)

    If that's all there is to it, it could be either added in into a Text Widget or under Add a Link within the Blogroll.

    Hope this helps,
    -drmike

  6. It works great with a Text Widget, thanks!

    For those using the "White as Milk" theme, I've created a last.fm chart style named "WhiteAsMusic" which fits in quite nicely.
    You can see it at http://www.last.fm/tools/charts/WhiteAsMusic/?subtab=yours&data=recenttracks or at my blog.

  7. Well, it looks like that last.fm-style doesn't fit too well if you're browsing the net with Mozilla/Firefox/Seamonkey. Looks good on Konqueror though. How does it look like on Internet Explorer or Opera?

  8. Looks like crud actually in IE 6.0. It's too wide and forces the entire sidebar down to the bottom.

  9. Thanks for the sad reply. :(

    I think it should work if one use a style without track titles, but with artists only. Well, if the artists' names aren't too long. It does work in IE7.

  10. Gotta admit that I'm used to it. I had some dictionary widgets on my own WPMU site that I could never fit in since the code forces a min. width.

    Some coders out there don't realize that dynamic contect means being dynamic in usage as well.

  11. You are right, the width of the sidebar is hardcoded in the css file.

    I changed the last.fm-style, it now has a restricted width of 170px. It may happen that some information is cropped now, but it fits in the White-as-Milk theme.
    The new style is called WaM2. So if anyone out there does find it useful, go ahead and use it in your blog.

  12. Well, whoever says you can't add Last.fm because of Java, or HTML, or any other widget is just not knowing what he or she is talking about, and it does not matter if it is a blogger or the owner of the damn WordPress. I have been developing websites for 10 years, and if the staff here is not competent enough to allow java AND still protect THEIR butt, well guess what it is not my business.

    Do like me, got to Blogger. I spent 1 hour figuring out everything I can't do here, and it took me 1 minute to add Last.fm widget with all the java it contains on Blogger.

    Bottom line, the problem is not Last.fm, it is not you, it is not me, it is not java, it is WordPress!

  13. We strip javascript for security reasons.
    We know precisely what we are doing and you are not aware of the architecture differences between Blogger and us.

    Now please stop spamming threads with the same stuff.

  14. How do you dare! I do not spam, I inform people who seem tired because of not being able to use widgets that work everywhere else. As I said on Last.fm:

    Well, my point is based on all the people complaining about not being able to add many widgets on WP, with the staff or whoever answered those people claiming we can't add this or that because of java, html or whatever else. I just feel it is none of our business, if a widget is on the market and is offered to be added on blogs, it should work. If it does not somewhere, it is the fault of the staff. A widget should work everywhere or nowhere. I got the last.fm widget working on Blogger in a second, so any blog where it does not work is a sign of the incompetence of the staff that operate or develops it.

  15. Just because Blogger do something does not mean we should.

  16. It is not blogger who does something and you not, it is you who do not and eveyone else does. You think Blogger is the only blog to allow last.fm to work? so, last.fm made a plugin FOR blogger if I follow your point? NO, go see the widget and maybe you will get it.

  17. why are you being such an a**hole? You have already said you aren't happy here. Please leave.

  18. Superbe... I will not answer that one, you are insulting yourself in public.

  19. If anyone is having a problem with the Last.FM chart sizes, you can even use it with an RSS widget. You'll need to put the RSS URL into an RSS widget and then put it up in your sidebar and it will look like the links in your theme do. It won't be that attractive but it will not mess up the sidebar.

  20. ishmeet: thanks for the tip! I will try it and post about it on the blog we decided to create out of those conversation around the forum, it will be about change ideas in respect to WP and will be available starting tomorrow:
    http://letschange.wordpress.com/

  21. Just one point: if you are not nice with wordpress, go to blogger or whatever else, and be happy. Maybe, before, google around about the differences between java and javascript, couse it seems to me you are making some confusion, despite your 10 years experience in web site development.

    This said, I am trying to include the code generated here: http://www.last.fm/widgets/
    but every times in the text widget make some changes to the html I paste into it.
    Any idea? I think that the problem is that there is some javascript call in the code, but maybe not...

  22. If you're using the one for "wordpress", it has flash in it. That's stripped just like javascript and iframes.

    <style type="text/css">table.lfmWidget5523160ac672422a51d617548311bacf td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidget5523160ac672422a51d617548311bacf tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/en/header/radio/regular_red.png) no-repeat 0 0 !important;}table.lfmWidget5523160ac672422a51d617548311bacf tr.lfmEmbed object {float:left;}table.lfmWidget5523160ac672422a51d617548311bacf tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/red_np.png) no-repeat 0px 0 !important;;}table.lfmWidget5523160ac672422a51d617548311bacf tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/red_np.png) no-repeat -85px 0 !important;}table.lfmWidget5523160ac672422a51d617548311bacf tr.lfmFoot td.lfmPopup a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/red_np.png) no-repeat -159px 0 !important;}</style>
    <table class="lfmWidget5523160ac672422a51d617548311bacf" cellpadding="0" cellspacing="0" border="0" style="width:184px;"><tr class="lfmHead"><td><a title="Music like Lonestar" href="http://www.last.fm/listen/artist/Lonestar/similarartists" target="_blank" style="display:block;overflow:hidden;height:20px;width:184px;background:url(http://cdn.last.fm/widgets/images/en/header/radio/regular_red.png) no-repeat 0 -20px;text-decoration:none;border:0;"></a></td></tr><tr class="lfmEmbed"><td><object type="application/x-shockwave-flash" data="http://cdn.last.fm/widgets/radio/19.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="184" height="140" > <param name="movie" value="http://cdn.last.fm/widgets/radio/19.swf" /> <param name="flashvars" value="lfmMode=radio&radioURL=artist%2FLonestar%2Fsimilarartists&title=Music+like+Lonestar&theme=red&autostart=&lang=en&widget_id=5523160ac672422a51d617548311bacf" /> <param name="bgcolor" value="d01f3c" /> <param name="quality" value="high" /> <param name="allowScriptAccess" value="always" /> <param name="allowNetworking" value="all" /> </object></td></tr><tr class="lfmFoot"><td style="background:url(http://cdn.last.fm/widgets/images/footer_bg/red.png) repeat-x 0 0;text-align:right;"><table cellspacing="0" cellpadding="0" border="0" style="width:184px;"><tr><td class="lfmConfig"><a href="http://www.last.fm/widgets/?url=artist%2FLonestar%2Fsimilarartists&colour=red&size=regular&autostart=&from=code&widget=radio" title="Get your own widget" target="_blank" style="display:block;overflow:hidden;width:85px;height:20px;float:right;background:url(http://cdn.last.fm/widgets/images/en/footer/red_np.png) no-repeat 0px -20px;text-decoration:none;border:0;"></a></td><td class="lfmView" style="width:74px;"><a href="http://www.last.fm/" title="Visit Last.fm" target="_blank" style="display:block;overflow:hidden;width:74px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/red_np.png) no-repeat -85px -20px;text-decoration:none;border:0;"></a></td><td class="lfmPopup"style="width:25px;"><a href="http://www.last.fm/widgets/popup/?url=artist%2FLonestar%2Fsimilarartists&colour=red&size=regular&autostart=&from=code&widget=radio&resize=1" title="Load this radio in a pop up" target="_blank" style="display:block;overflow:hidden;width:25px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/red_np.png) no-repeat -159px -20px;text-decoration:none;border:0;" onclick="window.open(this.href + '&resize=0','lfm_popup','height=240,width=234,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>
  23. @ildella
    It won't work in the text widget. Been try it. It just disappear. AFAIK, there's some javascript call in the code :)

  24. No javascript in it (I just did a search of the code in a text editor to confirm) but it does contain *flash*. And that's what is being stripped out.

  25. Fair enough. I am sure wordpress developers will allow us to embed last.fm widgets in our blogs very soon, it is a very relevant web app, they cannot miss it for too long :)

    In the meantime, I could try other ways to share music taste with my readers.

    Keep up the good work!

  26. I'm hoping they will include it soon too. :)

  27. I actually sent a feedback to last.fm forum about this widget, so far no answer yet. I'm hoping it will be added as well.

    On the contrary, I think http://www.myflashfetish.com/ also has a nice widget, I'm using it but I only put a direct link to the player. Try it.

Topic Closed

This topic has been closed to new replies.

About this Topic