What aboutRMcGirr83 wrote: Fri Aug 18, 2017 2:17 pm Unfortunately there don't seem to be any events in the template file where one can place the confirm email in a correct location.
ucp_register_credentials_after
You could use jquery after() to assign a new attribute until phpbb adds an event in that template.RMcGirr83 wrote: Fri Aug 18, 2017 2:17 pm Unfortunately there don't seem to be any events in the template file where one can place the confirm email in a correct location.
https://github.com/phpbb/phpbb/blob/mas ... ml#L34-L37
Would be a bit out of place in another location I would think and not look good.
Code: Select all
$(function() {
var $form = $('#register');
var email_confirm = $('<input/>').attr({
type: 'email',
size: 25,
maxlength: 100,
id: 'email_confirm',
name: 'email_confirm',
class: 'inputbox autowidth',
});
$form.find('input[type=email][name=email]').after(email_confirm);
});
ucp_register_credentials_before
to add the email confirmation field:
Code: Select all
<dl class="email_confirm_container">
<dt><label for="email_confirm">{L_EMAIL_ADDRESS_CONFIRM}{L_COLON}</label></dt>
<dd><input type="email" tabindex="2" name="email_confirm" id="email_confirm" size="25" maxlength="100" value="{EMAIL}" class="inputbox autowidth" title="{L_EMAIL_ADDRESS_CONFIRM}" autocomplete="off" /></dd>
</dl>
Code: Select all
#register .fields2 {
display: flex;
flex-direction: column;
}
#register .fields2 .email_confirm_container + dl {
order: 1;
}
#register .fields2 .email_confirm_container + dl + dl {
order: 2;
}
#register .fields2 .email_confirm_container {
order: 3;
}
#register .fields2 * {
order: 4;
}