MyBB Community Forums

Full Version: Why is this conditional doesn't work????
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Strange thing people for some reason I can't get this pappy to work?

I am trying to show only the content of a certain user fields but it just not happening help is very appreciated.

Template: member_profile_customfields_field
<tr>
<td class="{$bgcolor}" width="40%"><strong>{$customfield['name']}:</strong></td>
<td class="{$bgcolor}" width="60%"><if ($userfields['fid2'] || $userfields['fid3']) then>{$customfieldval}<else>Hidden</if></td>
</tr>
Right now you are checking whether they are filled, not whether they are number x.

Try this instead:
<tr>
<td class="{$bgcolor}" width="40%"><strong>{$customfield['name']}:</strong></td>
<td class="{$bgcolor}" width="60%"><if $customfield['fid'] == 2 || $customfield['fid'] == 3 then>{$customfieldval}<else>Hidden</if></td>
</tr>
Hell I was so close to make it happen I actually though about it. Thanks buddy.