PDA

View Full Version : Userfield ?


LieuR
07-27-2009, 04:48 PM
Hi,

I want to ad userfield that will show up when a user have made any post, for example

My name (username)
Junior Member (usergroup)

Join Date: Jul 2009
Posts: 2
My userfield (right under posts)

I created a new userfield and people now have a few options to choose between, but it dosent show up under Posts

How do i do so it shows right under Posts ?

Thanks

James Birkett
07-27-2009, 05:52 PM
You need to add it to the template.
Look for the posts, add under it:
<if condition="$post['field5']">$post[field5]</if>
That should work fine, giving it's your first custom field. If it isn't - replace 5 with the field number in Admin CP

Lynne
07-27-2009, 06:28 PM
Search for "profile" in "articles" "titles only" and you should find an article telling you how to add the profile field to the postbit.

LieuR
07-27-2009, 07:37 PM
Tyvm both off you :)

--------------- Added 1248806574 at 1248806574 ---------------

Would this be okey for a usefield ?

<if condition="$post[fieldx]"><div class="smallfont">Label for text: $post[fieldx]</div></if>

Its working fine when people watch in posts but is it good to use ?