MyBB Community Forums

Full Version: Show profile fields in posts only if filled out.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have user profile fields in posts by editing the postbit_author_user template.

I was wondering if there is a way to make them only show if they are filled out?

This is the code:
[php]<center>{$lang->postbit_posts}<span style="color: #2a85ff;">{$post['postnum']}</span></br>
{$lang->postbit_joined}<span style="color: #6d1dff;"> {$post['userregdate']}</span>
 <br />Gender:<span style="color: #ff7d17;">{$post['fid3']}</br></span>
Location:<span style="color: #ff2dc7;">{$post['fid4']}</br></span>
Category:<span style="color: #0000ff;"> {$post['fid5']}</span>

	
	{$post['replink']}{$post['warninglevel']}</center>
Anyone?