vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=174324

Last.fm Widget in MEMBERINFO Template
by Mother_Dee
27 Mar 2008 15:16

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

  • 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):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Demo

pvalderh 28 May 2008 03:07

Thanks for this :)

Nosferatu 25 Jun 2008 14:54

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


All times are GMT. The time now is 04:55.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.