NOM NOM NOM (sam42) wrote in component_help,
NOM NOM NOM
sam42
component_help

  • Mood:
  • Music:

last.fm component

Is it possible to add a last.fm widget, such as the one in my profile, to a component? I just tried and it completely broke my layout, so I took the code back out. I'm wondering if it has to be changed first, or if it's just not possible.

The code for the widget, as given by last.fm and used on my profile, is :

<lj-embed><div height="239" width="184"><style type="text/css">table.lfmWidgetlivejournal_chart_e692fadaac4a6ea2da29f280e6fb7e7b td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetlivejournal_chart_e692fadaac4a6ea2da29f280e6fb7e7b tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/en/header/chart/recenttracks_regular_black.png) no-repeat 0 0 !important;}table.lfmWidgetlivejournal_chart_e692fadaac4a6ea2da29f280e6fb7e7b tr.lfmEmbed object {float:left;}table.lfmWidgetlivejournal_chart_e692fadaac4a6ea2da29f280e6fb7e7b tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat 0px 0 !important;;}table.lfmWidgetlivejournal_chart_e692fadaac4a6ea2da29f280e6fb7e7b tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -85px 0 !important;}table.lfmWidgetlivejournal_chart_e692fadaac4a6ea2da29f280e6fb7e7b tr.lfmFoot td.lfmPopup a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -159px 0 !important;}</style>
<table class="lfmWidgetlivejournal_chart_e692fadaac4a6ea2da29f280e6fb7e7b" cellpadding="0" cellspacing="0" border="0" style="width:184px;"><tr class="lfmHead"><td><a title="beatlefool: Recently Listened Tracks" href="http://www.last.fm/user/beatlefool/" target="_blank" style="display:block;overflow:hidden;height:20px;width:184px;background:url(http://cdn.last.fm/widgets/images/en/header/chart/recenttracks_regular_black.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/chart/friends_6.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="184" height="199" > <param name="movie" value="http://cdn.last.fm/widgets/chart/friends_6.swf" /> <param name="flashvars" value="type=recenttracks&amp;user=beatlefool&amp;theme=black&amp;lang=en&amp;widget_id=livejournal_chart_e692fadaac4a6ea2da29f280e6fb7e7b" /> <param name="bgcolor" value="000000" /> <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/black.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/?colour=black&amp;chartType=recenttracks&amp;user=beatlefool&amp;chartFriends=1&amp;from=code&amp;widget=chart&amp;path=livejournal" 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/black.png) no-repeat 0px -20px;text-decoration:none;border:0;"></a></td><td class="lfmView" style="width:74px;"><a href="http://www.last.fm/user/beatlefool/" title="View beatlefool's profile" target="_blank" style="display:block;overflow:hidden;width:74px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/black.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/?colour=black&amp;chartType=recenttracks&amp;user=beatlefool&amp;chartFriends=1&amp;from=code&amp;widget=chart&amp;path=livejournal&amp;resize=1" title="Load this chart 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/black.png) no-repeat -159px -20px;text-decoration:none;border:0;" onclick="window.open(this.href + '&amp;resize=0','lfm_popup','height=299,width=234,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table></div></lj-embed>


If possible, it would either go in the current free text component, or I would make another; I am still unsure. My theme layer, if needed, is here. Apologies for the mess, and many thanks.
Tags: /topic-layout: widget, status: closed
Subscribe

  • Chemo-Sabe: Help Save Mike!

    I posted a while back about my adventures in cancer treatment. Well, we've hit a snag. It's gone on longer than we had anticipated and we're moving…

  • A reach out for help

    Hello. I'm kunzite1. I helped create this community back in the early days of LiveJournal. I have been absent from the community for…

  • maintainer help?

    hello. it's been forever and a day since i've been here. sorry. :( i know that the tutorial entries are hosed. sorry. :( i'm looking for someone…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 3 comments