Log in

View Full Version : Post Elements ??


Maffeu
07-17-2004, 05:08 AM
Hiya - i'm new to owning a forum :rolleyes:

I've been in forums that have had varios post elements. Such as a car site had :

Join Date: Nov 2003
Location: Plymouth - Devon
Drives: Ecotec SRi (M) & Rebuilding (J) GSi
Posts: 2,829
Age: 21

Wheras my version will only has options for :

Join Date: Jul 2004
Age: 21
Posts: 99

So how are these extra things shown, I take it they are taken from a user profile and the user wont have to fill in the same forms 2wice ??

Any ideas ?

Ta in advance

Matt

EDIT: Just put some details in my user profile here and its showing up in post...

I cant do it some :(

assassingod
07-17-2004, 07:18 AM
To get profile fields to show up you have to add some code to the postbit template (or postbit_legacy if you're using it)

You need to add:

<if condition="$post['fieldx']"><div>Field name: $post[fieldx]</div></if>

In the appropriate place and you have to replace x with the profile field ID

Maffeu
07-17-2004, 08:40 AM
Yeah got it

Thanks sooooooooo much !!