SMF Development > Fixed or Bogus Bugs

2.1 Beta3 Memberlist custom profile fields

(1/1)

kat★:
Hello,

If a member has a custom field with icons filled out and they appear on the memberlist, the icon is there as it should be, however, if the custom field is left empty, the memberlist still shows everything in the "Enclosed Within Text" section of said custom field but the {INPUT} part.

How do I go around making it so that if the {INPUT} is left blank, the following string leaves the column empty?

--- Code: --- // Show custom fields marked to be shown here
if (!empty($context['custom_profile_fields']['columns']))
{
foreach ($context['custom_profile_fields']['columns'] as $key => $column)
echo '
<td class="centertext">', $member['options'][$key], '</td>';
}
--- End code ---

Kind regards, kat

Gwenwyfar:
Tracked on #4579

Gwenwyfar:
Fixed on #4580

Navigation

[0] Message Index

Go to full version