News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Editing Profile Field Options

Started by pepa, November 20, 2017, 06:21:48 AM

Previous topic - Next topic

pepa

#20
Quote from: Sir Osis of Liver on November 21, 2017, 04:06:52 PM
It didn't work because you need to substitute your label 'City/Town' for 'City' in the code I posted.  However, if you want to remove the label from all custom fields in poster info, you don't need the if/else, just this -



// Any custom fields for standard placement?
if (!empty($message['member']['custom_fields']))
{
foreach ($message['member']['custom_fields'] as $custom)
if (empty($custom['placement']) || empty($custom['value']))
echo '
<li class="custom">', $custom['value'], '</li>';
}



Changed from Redsy to Default Theme with Responsive Curve and now I can only get the above code to display the first two custom fields.  Is it possible that one field which is a Select Box won't display, unlikely it all worked in Redsy?

Same thing is happening when I modify the code (slightly) to also display the custom fields above the signature.

Advertisement: