Log in

View Full Version : Add Profile Field to Postbit


forum4
04-30-2009, 01:33 AM
Is it possible to show an added profile field in the postbit under location or posts? I've added the user profile field with radio buttons and would like to show it with the other member info.

Cryo
04-30-2009, 01:36 AM
Yes. Go to your postbit template and add the following code where you want it to be displayed...


<if condition="$post[fieldXX]">
$post[fieldXX]
</if>


Replace "XX" with the field number. If you'd like you can put stuff before or after the field (ie. Age: $post[fieldXX]).

forum4
04-30-2009, 02:29 AM
OK, I see. What if it's a radio button option? For some reason, field5 isn't working. I did the same as field2 (location) right above it, but nothing.

Sorry....My bad. I was trying to edit the postbit template instead of the postbitlegacy template....ugh.

I'll get the hang of this one day :D

Thank you so much! It works great.

Lynne
04-30-2009, 02:45 AM
This is pretty general, but you didn't give details on your radio button, so...
<if condition="$post[field5] == 'whatever'">
do something if it is set to whatever
<else />
else do something else
</if>

forum4
04-30-2009, 03:13 AM
Thank you so much. I'm adding moods by hand and it works....Hurray!

It's a bit of work, but more fun than installing a mod :D

jluerken
10-12-2009, 11:08 AM
I want to include this in my board.
I created a new profile field with two radiobuttons.
The user can select option1, option2 or both.
How can I manage to show all options the users selected in the postbit?

Lynne
10-12-2009, 03:10 PM
You cannot select both options when using radio buttons.