Back to vBulletin 3.7 Add-ons

Link to your LastFM Profile in Postbit Legacy
Mod Version: 1.00, by zombietom

This modification is in the archives.
vB Version: 3.7.x Rating: (1 vote - 5.00 average) Installs: 5
Released: 13 Jan 2010 Last Update: Never Downloads: 21
Not Supported Template Edits Re-usable Code  

I have a gaming website and with xbox 360 adding LastFm as a feature I figured it'd be nice to let my users link to their LastFM Profiles.
So I created this code.
This should work on any version of VB (maybe not 4.0)

Create a new profile Field (remember the field id number)
Directions:
1. In adminCP go to user profile fields
2. Click on add new profile field
3. add The following
Title - LastFM
Description -Add in your LastFM user name to create a link to your LastFM profile.
Default Value -leave blank
Max length of allowed user input - set to at least 15 or whatever you want
Field Length- Set to at least 15 or whatever you want
Profile Field Type -Single-Line Text Box
Field Required - yes or no ..up to you..i set mine to no
Field Editable by User - YES
Private Field - NO
Field Searchable on Members List - Yes or No ..up to you
Show on Members List -yes or no ..up to you
Regular Expression - Left mine blank
Which page displays this option - select "edit your details" from the menu
Finish - Click save and remember you fieldID number

Adding the following Code in your postbit legacy.

How to get to your postbit legacy:
Go to your forum's admin panel >Style & Templates>Style manager>pick Your style and click the expand button on the right>highlight postbit templets and click the expand/collapse button> select postbit legacy and click the edit button> ....

Look for this code:

look for(about in the middle):

PHP Code:
<if condition="$post[icqicon] OR $post[aimicon] OR $post[msnicon] OR $post[yahooicon] OR $post[skypeicon]"><div class="postbit_icons">$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon

Add this Code at the end after [skypeicon] and before </div>

PHP Code:
<if condition="$post[fieldXX]"><a target="_blank" href="http://www.last.fm/user/$post[fieldXX]"><img src="http://www.yoursite/images/misc/LastFm2.png" alt="My LastFM Profile" border="0"></a>
</if> 
click save. Done.

Be sure to change the XX in the above code to you Field Id number that you just created. Then go to your forum usercp panel and click on edit Details, add in your LastFM profile name, click save. Done.

You can add this code about anywhere you want the LastFm link to show up.

I have included 2 different images for the icon, feel free to adjust the size to whatever you need, just make sure the image link is linking to whever images your using .

Click Installed.

This code is Reusable as long as you give me credit for it.

Thanks
Zombietom

Download

This modification is archived, downloads are still allowed.

File Type: %1$s lastFM.zip (27.3 KB, 22 downloads)

Screenshots

Click image for larger version
Name:	lastfmimage.jpg
Views:	75
Size:	75.3 KB
ID:	109912  

Similar Mods

Show Thread Enhancements Showing Custom Profile Fields On Postbit And Postbit Legacy vBulletin 3.6 Template Modifications
Link for Photopost in Postbit Legacy vBulletin 3.5 Template Modifications
Mini Mods Your Orkut Profile link in your postbit legacy vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024