Custom profile field match username

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
Post Reply
mdmd09
Registered User
Posts: 7
Joined: Mon Aug 29, 2016 1:39 am

Custom profile field match username

Post by mdmd09 » Tue Sep 11, 2018 1:11 am

Hello I am trying to get a custom profile field that is setup through the admin panel to match the username at registration just like how the password has confirm password at registration. Here is a picture of my registration page.
2018-09-10.png
I have changed the username to gamertag in the main language code. I have circled the two fields that I am trying to make match. I am not the greatest at php coding and have looked through several files of code and can not seem to find any answer. Thanks in advance.

User avatar
AmigoJack
Registered User
Posts: 5322
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Custom profile field match username

Post by AmigoJack » Mon Sep 17, 2018 8:18 am

I don't understand: if two different fields need to have the same content, then why are two instead of only one needed to begin with?
The worst thing about censorship is ███████████

mdmd09
Registered User
Posts: 7
Joined: Mon Aug 29, 2016 1:39 am

Re: Custom profile field match username

Post by mdmd09 » Tue Sep 18, 2018 2:34 am

I run a xbox gaming community and we use it as a double verification for their xbox live gamer tags. I dont want to offend anyone but people dont always read the rules when they register. People will put a username of abcd when their xbox name is 1234 and we cant keep track of them then. Hope this helps with clarification.

User avatar
david63
Jr. Extension Validator
Posts: 14645
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Custom profile field match username

Post by david63 » Tue Sep 18, 2018 3:38 am

But what is there to stop them putting abcd in both fields?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
AmigoJack
Registered User
Posts: 5322
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Custom profile field match username

Post by AmigoJack » Tue Sep 18, 2018 7:39 am

Sounds more like you want to validate the username a bit more. Validating XBOX IDs is not entirely reliable - what should happen when Microsoft's website isn't available? Allow or disallow registration?
The worst thing about censorship is ███████████

mdmd09
Registered User
Posts: 7
Joined: Mon Aug 29, 2016 1:39 am

Re: Custom profile field match username

Post by mdmd09 » Tue Sep 18, 2018 12:18 pm

david63 wrote:
Tue Sep 18, 2018 3:38 am
But what is there to stop them putting abcd in both fields?
Nothing really.
AmigoJack wrote:
Tue Sep 18, 2018 7:39 am
Sounds more like you want to validate the username a bit more. Validating XBOX IDs is not entirely reliable - what should happen when Microsoft's website isn't available? Allow or disallow registration?
Correct. I really wasnt looking for a way to validate it against Microsoft's site. I just want to validate against the two and put an error up like your username doesn't match your xbox live gamertag.

User avatar
david63
Jr. Extension Validator
Posts: 14645
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Custom profile field match username

Post by david63 » Tue Sep 18, 2018 12:33 pm

Why not change "Username" to "xbox live gamertag" (or something similar) in the language file? Would that perhaps make it easier?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

mdmd09
Registered User
Posts: 7
Joined: Mon Aug 29, 2016 1:39 am

Re: Custom profile field match username

Post by mdmd09 » Tue Sep 18, 2018 2:23 pm

david63 wrote:
Tue Sep 18, 2018 12:33 pm
Why not change "Username" to "xbox live gamertag" (or something similar) in the language file? Would that perhaps make it easier?
I can change the language to that and hope it helps. Is there still a way to validate it as a backup?

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 4 guests

cron