To have this be called without having to edit templates manually, I replaced in your xml install file the following:-
with
Code:
$template_hook[profile_right_album]
...and also, the code you provided wasn't in English, so for those of us who have only English users, you'll want to use the following in the template "memberinfo_block_lastfm" remembering to replace all 8 instances of $userinfo[fieldXX] with the field number you generated when creating a new custom field:-
Code:
<!-- Last.FM -->
<if condition="$userinfo[fieldXX]">
<div id="youtube" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('lastfm')"><img id="collapseimg_lastfm" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
<a name="albums"></a>
<span class="block_name">Last.FM</span>
</h4>
<div class="block_content" id="collapseobj_lastfm" style="">
<div class="alt2 block_row block_footer"><style type="text/css">table.lfmWidgetchart_590a5768c2b9458dbbab9df2457e9051 td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetchart_590a5768c2b9458dbbab9df2457e9051 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.lfmWidgetchart_590a5768c2b9458dbbab9df2457e9051 tr.lfmEmbed object {float:center;}table.lfmWidgetchart_590a5768c2b9458dbbab9df2457e9051 tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat 0px 0 !important;;}table.lfmWidgetchart_590a5768c2b9458dbbab9df2457e9051 tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -85px 0 !important;}table.lfmWidgetchart_590a5768c2b9458dbbab9df2457e9051 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="lfmWidgetchart_590a5768c2b9458dbbab9df2457e9051" cellpadding="0" cellspacing="0" border="0" style="width:184px;" align="center"><tr class="lfmHead"><td><a title="$userinfo[fieldXX]: Recently Listened Tracks" href="http://www.last.fm/user/$userinfo[fieldXX]/" 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&user=$userinfo[fieldXX]&theme=black&lang=en&widget_id=chart_590a5768c2b9458dbbab9df2457e9051" /> <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&chartType=recenttracks&user=$userinfo[fieldXX]&chartFriends=1&from=code&widget=chart" 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/$userinfo[fieldXX]/" title="View $userinfo[fieldXX]'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&chartType=recenttracks&user=$userinfo[fieldXX]&chartFriends=1&from=code&widget=chart&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 + '&resize=0','lfm_popup','height=299,width=234,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>
</div>
</div>
</div>
</if>
<!-- / Last.FM -->