Birthday on Registration

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29353
Joined: Sat Aug 16, 2003 7:36 am

Birthday on Registration

Post by Extensions Robot »

Modification name: Birthday on Registration
Author: DavidIQ
Modification description: Require birthday during registration
Modification version: 1.0.2
Tested on phpBB version: 3.0.12

Download file: Birthday_on_registration.zip
File size: 35.63 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Sep 19, 2022 7:33 pm, edited 14 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28935
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Birthday on Registration

Post by Paul »

Modification validated/released

Notes:
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Birthday on Registration

Post by DavidIQ »

Cool...my first "official" MOD released into the MODDB for phpBB3 :ugeek:

Nothing out of the ordinary with this one...just adding the Birthday fields to the registration form.

Verified working as is on 3.0.6
Last edited by DavidIQ on Tue Dec 01, 2009 7:46 pm, edited 1 time in total.
Reason: Update version info
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
DianaRae
Registered User
Posts: 163
Joined: Fri Mar 22, 2002 9:45 pm

Re: Birthday on Registration

Post by DianaRae »

Thank you for this mod. :)

It's hard for people to enter their birthday in their profiles. This will make it happen.

I have one request. What do I need to change in the code so it doesn't require the year at sign up? Younger people really don't care. Older folks do.

Thanks for your help.
Diana Rae
~I was blonde in another life..that explains a LOT of things~
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Re: Birthday on Registration

Post by DavidIQ »

Well...it's a little unconventional but you can try this in the instructions:

In includes/ucp/ucp_register.php

Find:

Code: Select all

				'lang'				=> array('match', false, '#^[a-z_\-]{2,}$#i'),
Add after:

Code: Select all

				'bday_day'				=> array('num', false),
				'bday_month'			=> array('num', false),
You'll need to remove this line added by the mod:

Code: Select all

				'user_birthday' 	=> array('date', false),
Let me know if it works as I have not tested this...
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Rex
Registered User
Posts: 82
Joined: Wed Oct 29, 2008 7:28 pm

Re: Birthday on Registration

Post by Rex »

We installed this mod, edited the files. However, the birthday is not being asked at registration. What might we be doing wrong?
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Re: Birthday on Registration

Post by DavidIQ »

You've edited the template you're actually using and refreshed the template in ACP?
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Rex
Registered User
Posts: 82
Joined: Wed Oct 29, 2008 7:28 pm

Re: Birthday on Registration

Post by Rex »

Yes, I have edited the template that we're using. How do I refresh the template?
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Re: Birthday on Registration

Post by DavidIQ »

ACP -> Styles -> Templates -> Refresh (for the style you're using)

If it still doesn't work then provided you've done all of the edits correctly you might have the birthday feature disabled in which case the fields won't show on registration.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Rex
Registered User
Posts: 82
Joined: Wed Oct 29, 2008 7:28 pm

Re: Birthday on Registration

Post by Rex »

Ok, I will try refreshing. Thank you, David. :D

If the birthday field is not enabled how would I enable it?
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Re: Birthday on Registration

Post by DavidIQ »

That would be ACP -> Board features -> Allow Birthdays

But if you can already see birthdays elsewhere on the board then most likely it's already enabled.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Rex
Registered User
Posts: 82
Joined: Wed Oct 29, 2008 7:28 pm

Re: Birthday on Registration

Post by Rex »

Well here is my problem. I added all of the code as instructed. However, the field is not showing up on the registration page and now when a user tries to register, they cannot because they get an error that says the birthday info is missing but there is not field to enter the birthday. What did I do wrong?
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Re: Birthday on Registration

Post by DavidIQ »

Post a link to your forum so I can further investigate.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
ACE8018
Registered User
Posts: 11
Joined: Sat Jan 10, 2009 8:04 pm

Re: Birthday on Registration

Post by ACE8018 »

when my guests try to register i get "The entered birthday is not a valid date."

i added a 01/05/92

how do i fix?
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Re: Birthday on Registration

Post by DavidIQ »

Link to your board please.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

Return to “[3.0.x] MOD Database Releases”