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.
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.
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.
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.