Double e-mail box in registration form

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
User avatar
tojag
Registered User
Posts: 422
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Double e-mail box in registration form

Post by tojag »

In my opinion this was a very good concept because people only once do the registration. It is not so difficult to enter the e-mail address twice than writing to admin "where is my activation e-mail?!"
It would be great for the admin to have the option to enable a single or double email address field :)
Regards
User avatar
tojag
Registered User
Posts: 422
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Double e-mail box in registration form

Post by tojag »

Mick wrote: Mon Aug 21, 2017 8:06 pm You could ask them.
I have an answer from the administrator of this forum atnel.... he bought this solution and does not know how it works. :(
User avatar
AmigoJack
Registered User
Posts: 6126
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Double e-mail box in registration form

Post by AmigoJack »

At least not in JavaScript.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
User avatar
RMcGirr83
Former Team Member
Posts: 22067
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Double e-mail box in registration form

Post by RMcGirr83 »

AmigoJack wrote: Tue Aug 22, 2017 7:04 am How times change - back with 3.0 and before the registration always had a email address confirmation textbox, and some people ranted about how antiquated that concept was.
That is a 3.0 forum which would explain why the email verification is there.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
tojag
Registered User
Posts: 422
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Double e-mail box in registration form

Post by tojag »

Maybe it is 3.0. So, I need solution for doing something like this.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3911
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Double e-mail box in registration form

Post by Kailey »

You want it for just the registration screen? I might be able to make an extension (depends on events).
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3911
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Double e-mail box in registration form

Post by Kailey »

kasimi wrote: Sat Aug 19, 2017 3:58 pm For modern browsers you can use flexbox to reorder elements.
So, I got this to work except for tabindex (couldn't get the js to work). I tried setting tabindex to 3 but the registration screen still tabs to the confirm e-mail on tabindex 2. Any thoughts?

Edit: only works in Firefox - not IE, Chrome or Opera


Edit 2: I got the js to work (and it works in all browsers), but the registration screen now looks like the attached screenshot. Any idea how to "fix" it?

register.png
You do not have the required permissions to view the files attached to this post.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
AmigoJack
Registered User
Posts: 6126
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Double e-mail box in registration form

Post by AmigoJack »

kinerity wrote: Tue Aug 22, 2017 9:29 pmAny idea how to "fix" it?
JS just gives you everything to create and reorder HTML elements, so I have no clue where your problem is to just add another DL with its DD and DT. However, since JS alone cannot add a localized caption of all installed board languages I won't even think about approaching it that way.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
User avatar
Steve
Registered User
Posts: 1522
Joined: Tue Apr 07, 2009 7:48 pm
Name: Steven Clark

Re: Double e-mail box in registration form

Post by Steve »

Hacked Jquery not very bueatiful but gives you a start:

Code: Select all

$(function() {
	var $form = $('#register');
	var new_dt = $('<dt><label for="email_confirm">'+ emailConfirmData.lConfirmEmail + '</label></dt><dd><input type="email" name="email_confirm" id="email_confirm" size="25" maxlength="100" value="' + emailConfirmData.confirmEmail + '" class="inputbox autowidth" title="' + emailConfirmData.lConfirmEmail + '" autocomplete="off" /></dd>');
	$form.find('input[type=email][id=email]').parents('dd').after(new_dt);
});
overall_footer_after.html:

Code: Select all

<script type="text/javascript">
	var emailConfirmData = {
		lConfirmEmail: '{LA_CONFIRM_EMAIL_ADDRESS}',//adds your lang variable to jquery
		confirmEmail: '{CONFIRM_EMAIL_ADDRESS}',//adds your template variable to jquery
	};
</script>
language:

Code: Select all

	'CONFIRM_EMAIL_ADDRESS'		=> 'Email Address Confirm:',
template assign var:

Code: Select all

'CONFIRM_EMAIL_ADDRESS'				=> $data['confirm_email_address'],
@ The Chief Medical Officers guideline for men is that: You are safest not to drink regularly more than 14 units per week.
- I drank that today++ :lol: 🍺
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3911
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Double e-mail box in registration form

Post by Kailey »

Yup, got the extension working. Thanks!
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
tojag
Registered User
Posts: 422
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: Double e-mail box in registration form

Post by tojag »

Are You planning to share this?
:)
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3911
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Double e-mail box in registration form

Post by Kailey »

tojag wrote: Thu Aug 31, 2017 11:23 am Are You planning to share this?
:)
Eventually, looking into other options as well.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3911
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Double e-mail box in registration form

Post by Kailey »

Try this on for size. https://www.project-w.org/confirmemail.zip

You can see it in action here: https://dev.project-w.org
Last edited by Kailey on Sun Sep 03, 2017 8:06 pm, edited 1 time in total.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
RMcGirr83
Former Team Member
Posts: 22067
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Double e-mail box in registration form

Post by RMcGirr83 »

Code: Select all

if ($submit && !sizeof($error))
why not just add the error into the other error strings if there are any? Why wait for all other errors to clear first?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3911
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Double e-mail box in registration form

Post by Kailey »

So just this?

Code: Select all

if ($submit)
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders

Return to “phpBB Custom Coding”