Skip to:
Content
Pages
Categories
Search
Top
Bottom

DOB Problem on Registration form.

  • @raminjan

    Participant

    Okay guys I got a picture of my problem with my registration form uploaded on imagestack can someone please take a look it seems like something is wrong like the date for DOB it goes up to 2037 which is ridiculous I mean you can’t have non-existed person to sign up can some one please help me fix this?

    http://img827.imageshack.us/img827/4782/formproblem.jpg

    thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @rogercoathup

    Participant

    The date picker profile field on BuddyPress doesn’t allow you to specify a range (from wp-admin).

    2037 is a PHP upper date limit.

    You would have to write some PHP code to modify your registration templates to support this.

    @raminjan

    Participant

    Well NO your not being helpfull I am sorry to say this but last time I asked a question not to you but to the community, but you came on and said hire a developer. I am a student and trying to learn php and so on and I don’t have money to buy some services and also What do you mean you got to write some code and modify your registration template I Dont understand if you dont like to help me that’s fine you don’t have to but please don’t block my post as others may wish to help me and if you are trying to help me don’t leave me in the water with no training on how to swim. because i felt like I am left in middle of nowhere. so if your offended I am sorry but if you want to support me maybe you should explain a little bit in more details which I would appreciated. thanks.

    @djpaul

    Keymaster

    This is really not easy to change. The options for the date field are generated deep inside the bp_get_the_profile_field_options() function, right near the bottom of it:

    `for ( $i = 2037; $i > 1901; $i– )`

    I would suggest you use the ‘bp_get_the_profile_field_datebox’ filter and manually strip out the OPTION fields that you don’t want.

    @raminjan

    Participant

    thanks bro I am right now on my server FTP and I went to this file inside bp folder called Edit bp-xprofile-functions.php and I see this code right here:
    if ( ‘datebox’ == $field_type ) {
    $field_value = bp_format_time( $field_value, true );
    } else {
    $content = $field_value;
    $field_value = str_replace( ‘]]>’, ‘]]>’, $content );
    }

    so is there a way i can add a filter on this and since I am a newbie can you for the sake of learning tell me how can I add my filter on this please? thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘DOB Problem on Registration form.’ is closed to new replies.
Skip to toolbar