MyBB Community Forums

Full Version: Custom Profile Fields
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

I've added some custom profile fields in the administration panel and added them into the post bit individually. However, if the profile field is not filled in it still displays in the post bit.

For example

Motto: customfielddata

I would only like it to show the above if the field is filled in.
can you explain more
or add a screeshot
first you need the PHP in Templates plugin... after activating the plugin, use a if conditional to display the profile fields...

<if !empty($post['fidX']) then>
Field Title: {$post['fidX']}

replace X with the value of your custom profile fields...
Thank you very much.