Custom Fields
Re-Envisioned
Support MB User Profile How to edit Email and Password

  • Creator
    Topic
  • #12967
    Resolved Purdue Alumni Association
    Participant

    I am trying to create a custom user profile/my account page. I’d like to include name, email, and password. I’ve figured out how to show and edit name, but I can’t figure out how to show the email and password fields.

    Per the documentation, I’ve included the id “rwmb-user-info” in my shortcode id list but nothing is showing:

    [mb_user_profile_info id="my-account,rwmb-user-info" submit_button="Submit" confirmation="Your information has been successfully updated." label_submit="Update"]

    The id of “my-account” is a custom field set with first_name and last_name I’ve tried adding fields with id’s of user_email and email but they aren’t populating with the user email.

    How do I include password? How do I include email?

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Author
    Replies
  • #13127

    Any word on this? This issue is holding back the deployment of a feature on our website.

    #13133
    Anh Tran
    Keymaster

    Hi Purdue, this is a bug in our AIO plugin. Are you using it?

    To fix this, please use the MB User Profile extension separately at the moment. We’ll fix the AIO soon.

    #13135

    That worked! But how do I allow users to change their email as well?

    #13235
    pza
    Participant

    I’m also wondering if the user may edit their Email Address using the MB User Profile plugin?

    I tried putting an “email” field in the “default-fields” group but it doesn’t update their profile.

    #13300
    Anh Tran
    Keymaster

    Hi guys,

    To edit user email, simply create a meta box (or a new field in an existing meta box) with id user_email. And then include the meta box into the shortcode. Here is the code I used to test.

    #13309
    pza
    Participant

    Thanks. Using user_email seems to work for updating the address in the profile.

    But on the frontend, it is not pre-filled with the user’s default email address until the user updates it using the mb_user_profile_info form.

    Can I make it auto-populate the user_email field with their account email address by default?

    Also in the backend “Edit users” page, the profile fields appear twice. If I change the (WordPress standard) email field, but not the MB field, they become out of sync. Is this expected, or should there be only 1 of each field?

    #13325
    Anh Tran
    Keymaster

    Yes, it’s possible to auto-fill the current user email. See the updated script.

    Regarding edit user profile in the back end, this technique is meant for use for editing user profile in the front end only.

    #13347

    Thanks! This is very helpful to know.

    #13732
    Infolu
    Participant

    Hello, I am looking at the script that allows to change the email of the account, originally in wordpress when changing an email in the back end, the user receives in the email a link to confirm this change, already in the script this does not happen. Is this behavior correct?

    how can I make the user at least need to confirm the password before changing the same email in facebook settings?

    #13746
    Anh Tran
    Keymaster

    Hi Infolu, you just need to include the meta box with ID rwmb-user-info to the list of meta boxes in the shortcode, like this:

    [mb_user_profile_info id="your-meta-box-id,rwmb-user-info"]

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.