tommyturnage
06-22-2015, 09:00 PM
This is a mod that I saw from 3.6.8
I really liked it, but the codes were a little off for vbulletin 4.2.
So here are the updated codes
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:
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>
After Add:
<vb: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>
</vb:if>
3. Button Upload
Upload the attached image to your: /images/misc folder!
4. Enjoy!
I really liked it, but the codes were a little off for vbulletin 4.2.
So here are the updated codes
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:
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>
After Add:
<vb: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>
</vb:if>
3. Button Upload
Upload the attached image to your: /images/misc folder!
4. Enjoy!