Back to vBulletin 3.6 Template Modifications

Facebook button in postbit
Mod Version: 1.00, by SLY LS1

This modification is in the archives.
vB Version: 3.6.8 Rating: (2 votes - 5.00 average) Installs: 28
Released: 14 Oct 2007 Last Update: Never Downloads: 7
Not Supported Template Edits Additional Files  

I couldn't find this anywhere else so I made my own using Bratz-Designs Myspace mod as a start.

1. Make a profile field

In Admin CP go to - User Profile Fields - Add New User Profile Field
Profile field type = Single-line text box
Title: Facebook Profile
Description: Type your Facebook ID number
You can leave the rest to default

**Note down the number of the field! Example: field16. You need to replace the fieldX in the next code with the number!**

2. Template changes - In postbit_lecacy & Postbit

Find:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After add:
Code:
<!-- Facebook display start -->
<if condition="$post[fieldX]"><a href="http://www.facebook.com/profile.php?id=$post[fieldX]" alt="View my Facebook" target="_blank">
<img src="images/misc/im_facebook.gif" border="0"></a>
</if><!-- Facebook display end -->
3. Button Upload

Upload the attached image to your: /images/misc folder!

4. Add link in members profile "Contact Info: section

Edit template - "memberinfo"

Find:
Code:
<if condition="$show['homepage']">
				<tr>
					<td>
						$vbphrase[home_page]:<br />
						<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
					</td>
				</tr>
				</if>
Above add:
Code:
<if condition="$userinfo[fieldX]">
				<tr>
					<td>
						Facebook Profile:<br />
						<a href="http://www.facebook.com/profile.php?id=$userinfo[fieldX]" target="_blank">Check out my Facebook page</a>
					</td>
				</tr>
				</if>
Dont forget to change the X to your field number.

Download

No files for download.

Screenshots

Similar Mods

Mini Mods MySpace & FaceBook buttons in member profile and postbit vBulletin 3.6 Template Modifications
PM button in postbit vBulletin 3.6 Template Modifications
PM Button in postbit vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024