last.fm chart
-
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… -
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> -
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.
-
@alexcobain
Please take note of this from the FAQs http://faq.wordpress.com/2006/10/23/can-i-add-flash-video-embed-other-media/
http://faq.wordpress.com/2007/03/04/my-code-has-gone-from-my-widget/
Also from the forum searchbox https://en.forums.wordpress.com/search.php?q=lastfm
HTH :){waving to katm}
-
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!
-
-
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.
- The topic ‘last.fm chart’ is closed to new replies.