Facebook button in postbit
This modification is in the archives.
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] 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 --> 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> 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> 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 |