PDA

View Full Version : How to add Fields in Member POST profile


colochris
03-01-2009, 08:40 PM
Hello to all,

Ok so I have set up profile fields that can be done during registration, yet how do I add a field in a users actual info box?

Like for an example, where it says Post count, location, status, etc, how do I add another field to that where some sites like a cell phone forum will have one showing what phone a user has.

Thanks so much

Chris

dismas
03-01-2009, 11:14 PM
Edit the postbit or postbit_legacy template. Which you should edit depends on which you use. Find where the number of posts, location, etc is listed within the postbit and then add this:



<div>
Whatever info: $post[fieldX]
</div>


If you want to limit it so that the field will only display if they've filled in their profile, then it would be this:


<div>
<if condition="$post['fieldX']">
Whatever info: $post[fieldX]
</if>
</div>


That second one keeps you from having a bunch of users who simply have blanks in their postbits if they haven't, to use your example, filled out what type of cell phone they have.

Change the X to whatever field you want to display