|
@@ -183,11 +183,7 @@ function template_registration_form()
|
|
|
<strong', !empty($field['is_error']) ? ' style="color: red;"' : '', '>', $field['name'], ':</strong>
|
|
|
<span class="smalltext">', $field['desc'], '</span>
|
|
|
</dt>
|
|
|
- <dd>', preg_replace_callback('~<(input|select|textarea) ~', create_function('$matches', '
|
|
|
- global $context;
|
|
|
- return \'<\' . $matches[1] . \' tabindex="\' . $context[\'tabindex\']++ . \'"\';
|
|
|
- ')
|
|
|
- , $field['input_html']), '</dd>';
|
|
|
+ <dd>', str_replace('name="', 'tabindex="' . $context['tabindex']++ .'" name="', $field['input_html']), '</dd>';
|
|
|
|
|
|
echo '
|
|
|
</dl>';
|
|
@@ -562,6 +558,17 @@ function template_admin_register()
|
|
|
</dd>';
|
|
|
}
|
|
|
|
|
|
+ // If there is any field marked as required, show it here!
|
|
|
+ if (!empty($context['custom_fields_required']) && !empty($context['custom_fields']))
|
|
|
+ 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>', str_replace('name="', 'tabindex="' . $context['tabindex']++ .'" name="', $field['input_html']), '</dd>';
|
|
|
+
|
|
|
echo '
|
|
|
<dt>
|
|
|
<strong><label for="emailPassword_check">', $txt['admin_register_email_detail'], ':</label></strong>
|