vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Last.FM Widget In Profile (https://vborg.vbsupport.ru/showthread.php?t=175293)

Nosferatu 06-25-2008 02:21 PM

another edit... wish I could set a default tab and place it in about me?

(check tabs)
http://www.gothicwinter.com/forums/member.php?u=1

I used the english version, created the quilt from last.fm, and replaced the xx with my group.

Code:

<!-- / Last.FM -->

<style type="text/css">table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/en/header/quilt/artist_horizontal_black.png) no-repeat 0 0 !important;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 tr.lfmEmbed object {float:left;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat 0px 0 !important;;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -85px 0 !important;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 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="lfmWidgetquilt_0a3da65fe760e358172c68950156a498" cellpadding="0" cellspacing="0" border="0" style="width:460px;"><tr class="lfmHead"><td><a title="Top artists" href="http://www.last.fm/user/$userinfo[fieldXX]/charts/" target="_blank" style="display:block;overflow:hidden;height:20px;width:460px;background:url(http://cdn.last.fm/widgets/images/en/header/quilt/artist_horizontal_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/quilt/13.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="460" height="225" > <param name="movie" value="http://cdn.last.fm/widgets/quilt/13.swf" /> <param name="flashvars" value="type=user&amp;variable=$userinfo[fieldXX]&amp;file=topartists&amp;bgColor=black&amp;theme=black&amp;lang=en&amp;widget_id=quilt_0a3da65fe760e358172c68950156a498" /> <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:460px;"><tr><td class="lfmConfig"><a href="http://www.last.fm/widgets/?url=user%2F$userinfo[fieldXX]%2Fpersonal&amp;colour=black&amp;quiltType=artist&amp;orient=horizontal&amp;height=large&amp;from=code&amp;widget=quilt" 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/?url=user%2F$userinfo[fieldXX]%2Fpersonal&amp;colour=black&amp;quiltType=artist&amp;orient=horizontal&amp;height=large&amp;from=code&amp;widget=quilt&amp;resize=1" title="Load this quilt 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=325,width=510,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>


pete_brady 06-28-2008 09:58 PM

Quote:

Originally Posted by Nosferatu (Post 1558640)
another edit... wish I could set a default tab and place it in about me?

(check tabs)
http://www.gothicwinter.com/forums/member.php?u=1

I used the english version, created the quilt from last.fm, and replaced the xx with my group.

Code:

<!-- / Last.FM -->

<style type="text/css">table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/en/header/quilt/artist_horizontal_black.png) no-repeat 0 0 !important;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 tr.lfmEmbed object {float:left;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat 0px 0 !important;;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -85px 0 !important;}table.lfmWidgetquilt_0a3da65fe760e358172c68950156a498 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="lfmWidgetquilt_0a3da65fe760e358172c68950156a498" cellpadding="0" cellspacing="0" border="0" style="width:460px;"><tr class="lfmHead"><td><a title="Top artists" href="http://www.last.fm/user/$userinfo[fieldXX]/charts/" target="_blank" style="display:block;overflow:hidden;height:20px;width:460px;background:url(http://cdn.last.fm/widgets/images/en/header/quilt/artist_horizontal_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/quilt/13.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="460" height="225" > <param name="movie" value="http://cdn.last.fm/widgets/quilt/13.swf" /> <param name="flashvars" value="type=user&amp;variable=$userinfo[fieldXX]&amp;file=topartists&amp;bgColor=black&amp;theme=black&amp;lang=en&amp;widget_id=quilt_0a3da65fe760e358172c68950156a498" /> <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:460px;"><tr><td class="lfmConfig"><a href="http://www.last.fm/widgets/?url=user%2F$userinfo[fieldXX]%2Fpersonal&amp;colour=black&amp;quiltType=artist&amp;orient=horizontal&amp;height=large&amp;from=code&amp;widget=quilt" 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/?url=user%2F$userinfo[fieldXX]%2Fpersonal&amp;colour=black&amp;quiltType=artist&amp;orient=horizontal&amp;height=large&amp;from=code&amp;widget=quilt&amp;resize=1" title="Load this quilt 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=325,width=510,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>


ermmm how do you make this appear as a tab?

Nosferatu 06-28-2008 10:36 PM

Quote:


ermmm how do you make this appear as a tab?
instead of


Code:

<div id="sidebar_container">
        <!-- sidebar -->
        $template_hook[profile_right_first]
        $blocks[stats_mini]
        $template_hook[profile_right_mini]
        $blocks[friends_mini]
        $blocks[albums]
        $template_hook[profile_right_album]
        $blocks[groups]
        $blocks[visitors]
        $template_hook[profile_right_last]
        <!-- / sidebar -->
</div>

Further up is:

Code:

        <div id="profile_tabs">
                $template_hook[profile_left_first]
                $blocks[visitor_messaging]
                $blocks[aboutme]
                $blocks[lastfm]
                $blocks[stats]
                $blocks[friends]
                $blocks[infractions]
                $blocks[contactinfo]
                $template_hook[profile_left_last]
        </div>


pete_brady 06-28-2008 11:48 PM

cool thanks

SoFresh 08-04-2008 12:59 AM

how can i get the module in english?

compact123 08-10-2008 06:59 PM

Awesome!

DJ Hutch 08-16-2008 11:49 PM

This was really useful, thanks.

Darksky 09-03-2008 03:41 PM

In case you have Custom Group, user belongin ONLY to this groups will not show the LastFM tabs. I searched a bit and i found this in the "Last.Fm Widget in Profile" plugin of this profile:

Code:

        if (is_member_of($vbulletin->userinfo,1 , 2 , 3 , 4 , 5 , 6, 7))
                                {                    eval('$blocks[lastfm] = "' . fetch_template('memberinfo_block_lastfm') . '";');}

I fixed the issue, adding the Custom Group Userid to the id list, that i wish can view the LastFM Block/Tab.

I'm not a coder and a vbulletin template guru, if there's another and better solution i will gladly use it.

Juggla 09-05-2008 04:44 PM

Any chance this could be placed in postbit_legacy so it shows underneath the user's post count? Seems possible, right?

zombietom 01-13-2010 04:06 PM

Installed! working very good. I added mine as a Tab..works good.

I have attached the English version of the XML file.
Just Import it and replace the field id .

Also check out my Lastfm link in postbit legacy mod ,It works great with this mod.
https://vborg.vbsupport.ru/showthread.php?t=232965


All times are GMT. The time now is 08:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01150 seconds
  • Memory Usage 1,786KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete