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.
Locked
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17050
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: Birthday on Registration

Post by DavidIQ » Tue Dec 01, 2009 7:45 pm

Artack wrote:works with 3.0.6, thanks for mod David)
Thanks for verifying that :D
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.

SethAthon
Registered User
Posts: 15
Joined: Fri Jul 24, 2009 1:20 pm

Re: Birthday on Registration

Post by SethAthon » Fri Dec 04, 2009 3:47 pm

HI DavidIQ,

First of all, thanks for your mod. Installed on 3.0.5 and worked great :)

I've read the 10 pages of this topic, and i've found that my request (the one that'll come in a few words :mrgreen: ) has already been asked by others, however I'm not quite sure of the answer.

How can I do for already registered users to be asked to fill the birthday field?

I know that this will be a bit off-topic, but has I'm not really confident with php, do you think that this piece of code can do the trick ? (inserted in index.php)

Code: Select all

    //Begin: Redirect to UCP to fill cpf data
    if ($user->data['is_registered'] && !$user->data['is_bot'])
    {
       $user->get_profile_fields($user->data['user_id']);
       $user_fields = $user->profile_fields;

       $sql = 'SELECT field_name
          FROM ' . PROFILE_FIELDS_TABLE . '
          WHERE field_active = 1
             AND field_required = 1
             AND field_show_profile = 1';         
       $result = $db->sql_query($sql);

       while ($row = $db->sql_fetchrow($result))
       {
          $pf_name[] = 'pf_' . $row['field_name'];
          
        }
       $db->sql_freeresult($result);
       for ($i = 0, $j = sizeof($pf_name); $i < $j; $i++)
       {
          if (!isset($user_fields[$pf_name[$i]]))
          {
             //Redirect code to UCP
             $message = "Please update your profile data<br />You'll be redirected to UCP shortly";
             meta_refresh(3, append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=profile'));           
             trigger_error($message, E_USER_WARNING);
          }
       } 
    }     
    //End: Redirect to UCP to fill cpf data   

vonhazey
Registered User
Posts: 89
Joined: Wed Dec 02, 2009 2:43 pm

Re: Birthday on Registration

Post by vonhazey » Thu Dec 10, 2009 2:50 pm

Hi nice little mod for the reg page installed with no problems along with Location on Registration, thanks.
Image

ricjonhay
Registered User
Posts: 247
Joined: Tue Feb 16, 2010 6:08 pm

Re: Birthday on Registration

Post by ricjonhay » Mon Mar 01, 2010 2:40 pm

Installed today and working great on 3.0.7, many thanks for a great mod DavidIQ.

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

Re: Birthday on Registration

Post by DavidIQ » Mon Mar 01, 2010 3:03 pm

Thanks for verifying it works on 3.0.7 :D
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.

Neubivljiv
Registered User
Posts: 76
Joined: Mon Jan 11, 2010 11:05 pm

Re: Birthday on Registration

Post by Neubivljiv » Thu Apr 22, 2010 5:48 am

Also works on 3.0.6.

But now when user first time click to register he got warrning about too short username, password, email etc. cause he still didnt input anything. I know its not big deal...but still a bit annoying.

Thanks for thins mod.

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

Re: Birthday on Registration

Post by DavidIQ » Thu Apr 22, 2010 1:33 pm

And what does that have to do with this MOD? :?
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.

Neubivljiv
Registered User
Posts: 76
Joined: Mon Jan 11, 2010 11:05 pm

Re: Birthday on Registration

Post by Neubivljiv » Fri Apr 23, 2010 6:32 am

DavidIQ wrote:And what does that have to do with this MOD? :?
IDN, but when I installed the mod then it happened. It is not happened before.

sotiris25s
Registered User
Posts: 154
Joined: Wed Apr 02, 2008 11:04 pm

Re: Birthday on Registration

Post by sotiris25s » Fri Apr 23, 2010 5:46 pm

Hello, i have this mod working on my board 3.0.6 but i want something to be changed if you can help me.

How can i make my board available only for ages 18+ . is there any way to modify the mod in order when users register with a year under 18 they will get an error message? Is there a way to do that?

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

Re: Birthday on Registration

Post by DavidIQ » Fri Apr 23, 2010 5:59 pm

Not easily, no. You'd have to capture the submitted birthdate, convert it to an actual date, and then check for the age of the person. There might be functions for this already since phpBB itself displays ages so you might not have to make too many modifications to get that working.
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
Marc
Development Team Leader
Development Team Leader
Posts: 5402
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: Birthday on Registration

Post by Marc » Sun Nov 17, 2013 10:43 pm

MOD Updated to version 1.0.2
See first post for Download Link

Locked

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