• Resolved LavishDhand

    (@lavishdhand)


    Hi!

    I have been using x-profile field date selector to register member’s date of birth which did solve the purpose to some extend however looks very unusual.

    The selection box spans from the year 1902 to 2037 [ I might have got some time travelers registered to my site! ;-)]

    So, if I now use ‘Buddypress Xprofile Custom Fields Type’ for date of birth, will I be using a new field?
    Can I somehow use the same field OR at least merge the data?

    I have over 4,000 members, if I use a new field now and delete the old field, how will I show the DOBs of the members who have supplied their DOBs by now?

    Any solution / suggestion for me?

    Thank you for the help 🙂

    https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Miguel López

    (@atallos)

    First, I recommend you make a backup before trying this. If you can test your site locally before it will be better.

    Anyway, I’ve tested some use cases similar to what you have.

    • If a user has a future birthdate (22 June 2036) when you change to birthdate field, the future birthdate will be the same when displayed but when the user is going to edit the field, the year will be blank because my birthdate field does not have future years. The user will be forced to select a valid year to save the profile form.
    • If a user has a valid birthdate (a past date). It will display the date with no errors.
    • If you select the option to display the age instead of the birthdate, and the user has a future date, you will see negative ages…
    Thread Starter LavishDhand

    (@lavishdhand)

    Hi!

    At my site, there are total 30 fields divided into 5 groups. Birthday (date selector at the moment) is in base group and is the 3rd field from the top.

    When I switch to custom field type, I can notice 2 problems.

    1 – DOB Field goes blank
    2 – All fields after DOB field disappear

    Please see screen shots – http://imgur.com/a/IEwrY

    Thank you

    Plugin Author Miguel López

    (@atallos)

    Can you activate WP_DEBUG in your wp-config.php? There is probably a php error here.

    Thread Starter LavishDhand

    (@lavishdhand)

    Hi!

    I changed

    define('WP_DEBUG', false); to define('WP_DEBUG', true);

    There is no error message still. I have also tried clearing cache.

    Thread Starter LavishDhand

    (@lavishdhand)

    The problem seems to have resolved as soon as I updated BuddyPress to the latest version.

    There is however a new problem now. The profile field is not showing in the registration form. It is fine and showing with in member’s profile, even available for update there but not in registration form.

    This field is in Base Group

    It starts showing again in registration form if I change back to ‘Date Selector’.

    There is no error message anywhere.

    Plugin Author Miguel López

    (@atallos)

    If you are using a custom theme, maybe this theme is missing a hook to display my fields. Read the FAQ for more info.

    Thread Starter LavishDhand

    (@lavishdhand)

    Resolved. Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Date Selector to Custom Field (DOB)’ is closed to new replies.