|
@@ -171,7 +171,26 @@ function template_registration_form()
|
|
|
<input type="text" name="openid_identifier" id="openid_url" size="30" tabindex="', $context['tabindex']++, '" value="', isset($context['openid']) ? $context['openid'] : '', '" class="input_text openid_login" />
|
|
|
</dd>
|
|
|
</dl>';
|
|
|
+ }
|
|
|
+
|
|
|
+ // If there is any field marked as required, show it here!
|
|
|
+ if (!empty($context['custom_fields_required']) && !empty($context['custom_fields']))
|
|
|
+ {
|
|
|
+ echo '
|
|
|
+
|
|
|
+ <dl class="register_form">';
|
|
|
|
|
|
+ foreach ($context['custom_fields'] as $field)
|
|
|
+ if ($field['show_reg'] > 1)
|
|
|
+ echo '
|
|
|
+ <dt>
|
|
|
+ <strong', !empty($field['is_error']) ? ' style="color: red;"' : '', '>', $field['name'], ':</strong>
|
|
|
+ <span class="smalltext">', $field['desc'], '</span>
|
|
|
+ </dt>
|
|
|
+ <dd>', $field['input_html'], '</dd>';
|
|
|
+
|
|
|
+ echo '
|
|
|
+ </dl>';
|
|
|
}
|
|
|
|
|
|
echo '
|
|
@@ -277,12 +296,15 @@ function template_registration_form()
|
|
|
if (!empty($context['custom_fields']))
|
|
|
{
|
|
|
foreach ($context['custom_fields'] as $field)
|
|
|
- echo '
|
|
|
+ {
|
|
|
+ if ($field['show_reg'] < 2)
|
|
|
+ echo '
|
|
|
<dt>
|
|
|
<strong', !empty($field['is_error']) ? ' style="color: red;"' : '', '>', $field['name'], ':</strong>
|
|
|
<span class="smalltext">', $field['desc'], '</span>
|
|
|
</dt>
|
|
|
<dd>', $field['input_html'], '</dd>';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// If we have either of these, close the list like a proper gent.
|