Forum Replies Created
-
AuthorPosts
-
deniscgnMember
This does the trick
deniscgnMemberHey Khaled,
I think I got it 🙂/* Date range registration */ function user_meta_field_config_populate_options( $field, $fieldID, $formName ){ if( $fieldID != 'Select_Field_ID' ) // Put your desired field id here return $field; $end = ( int ) date( 'Y' ) - 18; $start = $end - 80; $years1 = range( $start, $end ); $years2 = range( $start, $end ); $years1[] = ''; $years2[] = 'Jahr'; $field['options'] = array_combine( $years1, $years2 ); return $field; } add_filter( 'user_meta_field_config', 'user_meta_field_config_populate_options', 10, 3 );
deniscgnMemberHey Kahled!
This works perfect thanks so much.
One little thing…how can I make the first thing to be YEAR ?
Like in the normal drop down fields I created…
=Monat,01=Januar,02=Februar,…etc etc..
=Year,….
Cheers and thanks,
DenisdeniscgnMemberNo one can help me???
Disappointing!
deniscgnMemberIs there anyone who can help me??????
January 13, 2015 at 8:12 pm in reply to: Email->Username, Nickname->Publicname & Dates to Birthday #6671deniscgnMemberclose
deniscgnMemberClose
deniscgnMemberClose 🙂
deniscgnMemberUser Meta Pro 1.1.7rc1 fixed this!
deniscgnMemberCan anyone help here please?
I need a date range at least 18 years old and then 80 years.
How can I realize this with the Dropdown?
Cheers,
DenisdeniscgnMemberThanks Khaled!
deniscgnMember/* User Meta Pro Day, Month, Year To Birthday */ function dayMonthYearToBirthday( $userData ){ $userData[ 'user_birthday' ] = $_POST[ 'user_year' ].'-'.$_POST[ 'user_month' ].'-'.$_POST[ 'user_day' ]; return $userData; } add_filter( 'user_meta_pre_user_register', 'dayMonthYearToBirthday' );
- This reply was modified 9 years, 11 months ago by deniscgn.
deniscgnMemberHi Khaled,
this is near the way I need it.
Will this work somehow?ja=Ja\, ich habe die<a href="#">AGB</a> gelesen und verstanden.
Cheers,
DenisdeniscgnMemberHey Khaled,
maybe I am wrong, but am I right that I need 2 passwordfields.
One for reistration. And then I want to have a password change page. So I have to create a new password field so I can use the enter current password.
Same will be with the username. One for register and then in the profile a not to change able field.
Am I right?
Then I have a problem to differ all these fields. It would be nice to have a discription for the fields, that is not shown in the frontend.
Best,
Denis -
AuthorPosts