
09-22-2011, 07:41 PM
|
 |
|
|
Join Date: Oct 2006
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by blaize
I worked around the new vanity url issue by creating two custom fields, one for numerical id and one for users with vanity urls.
This is the code I used for the postbit template edits. Change fields XX & YY to whatever your custom fields are.
Code:
<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7)">
<if condition="$post['fieldXX']">
<a href="http://www.facebook.com/home.php/#/profile.php?id=$post[fieldXX]&ref=profile">
<img alt="My Facebook" border="0" src="http://yourforums.com/forums/images/misc/facebook.png" border="0"/>
</if></if>
<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7)">
<if condition="$post['fieldYY']">
<a href="http://www.facebook.com/$post[fieldYY]?ref=profile">
<img alt="My Facebook" border="0" src="http://yourforums.com/forums/images/misc/facebook.png" border="0"/>
</if></if>
Use at your own risk.
The first is for the numerical id & the second is used if the facebook profile uses a vanity url.
|
This was very helpful, thank you blaize
|