|
#1
| ||||
| ||||
| How to add a profile field to the postbit
First create your profile field: Admin CP -> User Profile Fields -> Add New User Profile Field Users can enter their info into the profile field by going to their User CP. To display the information in posts you need to go to your: Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you use) Add this code: Code: <if condition="$post['fieldX']">
$post[fieldX]
</if>
Admin CP -> User Profile Fields -> User Profile Field Manager You may also wish to add a label to the profile field. For example, if the profile field is for the user's location: Code: <if condition="$post['fieldX']">
Location: $post[fieldX]
</if>
Last edited by admin; 13-01-2008 at 09:49 PM. |
| Tags |
| vbulletin articles , vbulletin tutorials |
| Thread Tools | |
| |