Customers SupportDocumentation




Reply
 
Thread Tools
  #1  
Old 31-07-2007, 06:26 PM
admin's Avatar
vBulletin Skin Zone Staff
 
Join Date: May 2007
Posts: 1,811
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>
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:

Code:
<if condition="$post['fieldX']">
    Location: $post[fieldX]
</if>
The exact placement of this code depends on where you want it to show. If you need any help with this, please feel free to post any queries here.

Last edited by admin; 13-01-2008 at 09:49 PM.
Reply With Quote
Reply

Tags
vbulletin articles , vbulletin tutorials

Thread Tools



All times are GMT. The time now is 02:25 PM.