If you haven't already, create a new profile field in your:
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:
Where fieldX is the field indentifier of the profile field as shown in your:
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:
The exact placement of this code depends on where you want it to show up.
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['[color=red]fieldX[/color]']"> $post[[color=red]fieldX[/color]] </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['[color=red]fieldX[/color]']"> Location: $post[[color=red]fieldX[/color]] </if>
Comment