Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Last.fm Widget in MEMBERINFO Template Details »»
Last.fm Widget in MEMBERINFO Template
Version: 1.00, by Mother_Dee Mother_Dee is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 03-26-2008 Last Update: Never Installs: 9
Template Edits
 
No support by the author.

I've had a couple of people ask on my forums how I did this, so here it is:

Create a new User Profile Field:
  • Profile Field Type: Single Line Textbox
  • Title: Last.fm
  • Description: Last.fm Username

Write down the Field ID (ie: field20), you'll need it in a few minutes.


Create your Last.fm Widget:

Create your widget at http://www.last.fm/widgets - customize the type and color for your forums, then copy the HTML code.


Edit the MEMBERINFO template:
  • Find the end of your table code, above the footer variable.

(The code below may need to be tweaked a little based on your own style, this is just a guideline)
  • Replace the table closing tag with:
Code:
<!-- Last.fm -->
<if condition="$post['fieldXX']">
<tr>
	<td class="tcat" width="100%" colspan="2">Music</td>
</tr>
<tr valign="top">
	<td class="panelsurround" align="center" colspan="2">
	<div class="panel">
		<div align="$stylevar[center]">
  • Replace 'fieldXX' with your user profile field field number (ie: 'field20')
  • Insert your widget HTML code
  • Find and Replace all instances of your last.fm username used to create the widget with your user profile field id variable (ie: ?url=user%2FHENRY should become ?url=user%2F$post[fieldXX]) - bold is only for looks. ^.^
  • Close the table with the following (tweak code according to style):
Code:
 </div>
          </div>
       </td>
   </tr>
</table>
         <else />
</table>
         </if>
<!-- /End Last.fm -->

Demo

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-28-2008, 01:07 AM
pvalderh pvalderh is offline
 
Join Date: Dec 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this
Reply With Quote
  #3  
Old 06-25-2008, 12:54 PM
Nosferatu Nosferatu is offline
 
Join Date: Feb 2003
Location: Scottieland
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heya, any idea how you do it for the tabbed profiles? I had it before in a previous version but accidently reverted my templates without backup (grrz)

I tried just seeing if I could add it at the bottom but not having much luck, I think this is a brilliant mod, very underated!

http://www.gothicwinter.com/forums/member.php?u=1
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08301 seconds
  • Memory Usage 2,208KB
  • Queries Executed 16 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete