News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Make space for Custom profile field

Started by Mr. Pedram, March 02, 2013, 05:49:47 PM

Previous topic - Next topic

Mr. Pedram

As you know, there's no space between custom profile fields in profile, i want to make a some space between each fields. (after or before)

// Any custom fields for standard placement?
if (!empty($context['custom_fields']))
{
$shown = false;
foreach ($context['custom_fields'] as $field)
{
if ($field['placement'] != 0 || empty($field['output_html']))
continue;

if (empty($shown))
{
echo '
<dl>';
$shown = true;
}

echo '
<dt>', $field['name'], ':</dt>
<dd>', $field['output_html'], '</dd>';
}

if (!empty($shown))
echo '
</dl>';
}

echo '
<dl class="noborder">';


Im tried to add <br /> after/before output_html, but it didn't right answer!
for eg.

echo '
                                        <br /><br />
<dt>', $field['name'], ':</dt>
<dd>', $field['output_html'], '</dd>';

Thanks
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Arantor

No, it won't, you'll need to add a bottom margin to the dd tag instead.
Holder of controversial views, all of which my own.


Mr. Pedram

Quote from: Arantor on March 02, 2013, 05:51:14 PM
No, it won't, you'll need to add a bottom margin to the dd tag instead.

much appreciated
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Advertisement: