Page 1 of 10

Birthday on Registration

Posted: Thu Oct 30, 2008 10:04 am
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 Extensions Team may not be able to provide support.

-->Modification support<--

Birthday on Registration

Posted: Thu Oct 30, 2008 10:04 am
by Paul
Modification validated/released

Notes:

Birthday on Registration

Posted: Thu Oct 30, 2008 10:04 am
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

Re: Birthday on Registration

Posted: Sat Nov 01, 2008 6:32 pm
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.

Re: Birthday on Registration

Posted: Sat Nov 01, 2008 10:07 pm
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...

Re: Birthday on Registration

Posted: Fri Nov 07, 2008 4:00 pm
by Rex
We installed this mod, edited the files. However, the birthday is not being asked at registration. What might we be doing wrong?

Re: Birthday on Registration

Posted: Fri Nov 07, 2008 4:12 pm
by DavidIQ
You've edited the template you're actually using and refreshed the template in ACP?

Re: Birthday on Registration

Posted: Fri Nov 07, 2008 5:58 pm
by Rex
Yes, I have edited the template that we're using. How do I refresh the template?

Re: Birthday on Registration

Posted: Fri Nov 07, 2008 6:02 pm
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.

Re: Birthday on Registration

Posted: Fri Nov 07, 2008 6:10 pm
by Rex
Ok, I will try refreshing. Thank you, David. :D

If the birthday field is not enabled how would I enable it?

Re: Birthday on Registration

Posted: Fri Nov 07, 2008 6:22 pm
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.

Re: Birthday on Registration

Posted: Sun Nov 09, 2008 8:20 pm
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?

Re: Birthday on Registration

Posted: Sun Nov 09, 2008 11:08 pm
by DavidIQ
Post a link to your forum so I can further investigate.

Re: Birthday on Registration

Posted: Sat Jan 10, 2009 8:17 pm
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?

Re: Birthday on Registration

Posted: Sun Jan 11, 2009 12:27 am
by DavidIQ
Link to your board please.