PDA

View Full Version : Additional field in profile


beckyvan
12-31-2007, 11:45 AM
Is there a EASY hack or just simple coding to make a couple addtional fields for a users profile.

See my admins profile:

Donna
Administator

I want to add another field under Adminstrator so members can put "Happy New Year", a real name, basically whatever they want.

How would I do this?

SVTCobraLTD
12-31-2007, 12:00 PM
AdminCP > User Profile Field > Add New User Profile Field

That will give you a code like "$field8", you would then have to edit one of the templates (postbit possibly) and add that field wherever you want it to show up.

SVT

beckyvan
12-31-2007, 12:07 PM
Okay, I found the field7 in post bit legacy, but how to I make it show up under the Primary user title as shown in my post.

Sorry, a newbie!

SVTCobraLTD
12-31-2007, 12:18 PM
AdminCP > Styles & Temp > Style Manager > Edit Template > Postbit Templates > postbit ("postbit legancy" depending on which you are using)

If you want to post it under the user's name find
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>

after that add

<if condition="$post['field7']">$post[field7]</if>

Should be it.

SVT

beckyvan
12-31-2007, 12:35 PM
This code is what my post pit legacy looks like

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['field7']">$post[field7]</if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>


This is my post bit template

<if condition="$post['usertitle']"><div class="smallfont">"$userinfo[field7]"$post[usertitle]</div></if>

<if condition="$post['field7']">$post[field7]</if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]

One of them is wrong. What did I do? :(

--------------- Added 1199112640 at 1199112640 ---------------

I know what I did wrong.

Thank you very much!!!!

SVTCobraLTD
12-31-2007, 12:55 PM
Glad it worked out for you.

SVT