Log in

View Full Version : real name in ucp & postbit


KURTZ
04-16-2008, 11:25 AM
i'm looking for an article that allows me to put a custom field into the user profile and postbit, someone can help me?

Dismounted
04-16-2008, 11:46 AM
Use the variable: $post[fieldX] for postbit, and $userinfo[fieldX] for profiles. Where X is the field number.

nighthalk
04-16-2008, 11:51 AM
Add the field/fields you would like to the profile and then just add this in the post bit.
If you want one field for the name then add this code.

<if condition="$post['fieldx']">
Real Name: $post[fieldx]
</if>

$post['fieldx'] = the field you made


If you want a field for the first name and a field for the last name then do the following.

<if condition="$post['fieldx']">
Real Name: $post[fieldx] $post[fieldx2]
</if>


$post['fieldx'] = first name
$post[fieldx2] = Last name

vbulletin will tell you the field numbers in the profile field manager

KURTZ
04-16-2008, 01:18 PM
thx guys :)