Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
Daz's Avatar
Daz : To right I fecking bite
Daz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond repute
offline Joined: Sep 2007 Posts: 455 Thanked: 166
  #1  
Thread Starter Unread 10-14-07
Facebook button in postbit

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:

<div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon
After add:

<!-- 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.
Your members then just put their Facebook ID number in the profile field and it will link to their Facebook page.

Quote
The Following User Says Thank You to Daz For This Useful Post:
Sharif's Avatar
Sharif : Newbie +
Sharif is on a distinguished road
offline Joined: Dec 2007 Posts: 11 Thanked: 1
  #2  
Unread 06-27-08
@Daz

Thanks

Am i add other profile ?? how can i ??
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
postbit, button, facebook
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
Powered by GYSN Underground 2021