Edit agreement birth age

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
juniorcleff
Registered User
Posts: 11
Joined: Fri Sep 19, 2008 5:31 pm

Edit agreement birth age

Post by juniorcleff » Wed Sep 24, 2008 7:52 pm

I've looked and looked, but none of the direction in the knowledge base are accurate. I know it has to be an easy fix, but it's not even in the ucp.php
Last edited by Marshalrusty on Thu Sep 25, 2008 4:31 am, edited 1 time in total.
Reason: Topic icon changed

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50916
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Edit agreement birth age

Post by stevemaury » Wed Sep 24, 2008 10:12 pm

includes/ucp/ucp_register.php:

Code: Select all

 if ($coppa === false && $config['coppa_enable'])
         {
            $now = getdate();
            $coppa_birthday = $user->format_date(mktime($now['hours'] + $user->data['user_dst'], $now['minutes'], $now['seconds'], $now['mon'], $now['mday'] - 1, $now['year'] - 13), $user->lang['DATE_FORMAT']);
            unset($now);
Change "- 13" to whatever you wish. You do realize that if you are not in the US, you can just turn COPPA off in the ACP and no birthdate questions will be asked at registration?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

juniorcleff
Registered User
Posts: 11
Joined: Fri Sep 19, 2008 5:31 pm

Re: Edit agreement birth age

Post by juniorcleff » Wed Sep 24, 2008 11:01 pm

Thanks!

Locked

Return to “[3.0.x] Support Forum”