This topic contains 11 replies, has 4 voices, and was last updated by  Purdue Alumni Association 8 months, 1 week ago.

  • Creator
    Topic
  • #9891
    Resolved
    ingegnimultimediali
    Participant

    #1 bug
    using the mb_user_profile_info shortcode it view an empty register form, without filling fields.

    #2 request
    is it possible to pass an user id to edit a specify user account information by mb_user_profile_info?

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

    Anh Tran
    Keymaster

    Hi,

    #1: Did you include the ID of the meta box?

    #2: Yes, the shortcode mb_user_profile_info has an attribute id for user ID. Please just use it.

    #9960

    ingegnimultimediali
    Participant

    #2 the correct attribute is user_id

    however the meta box is correctly populate, but email and passwords fields are empty.
    If I insert new values for email and password in these empty fields the values are not saved

    #10060

    Anh Tran
    Keymaster

    Hi, is the email/password issue resolved by your code in this topic?

    #10062

    ingegnimultimediali
    Participant

    no, in edit form all fields of meta box are filled, but email and password are empty

    #10078

    Anh Tran
    Keymaster

    Ah, I got it. Email and password are required to manually entered to update profile info. Perhaps only password is required, email should be auto filled. What do you think?

    #10084

    ingegnimultimediali
    Participant

    Email field is empty.
    but if I want only to edit a single meta box field, why I must insert my password?

    https://www.dropbox.com/s/nfvw9ykq5an1jv1/edit.png

    If I insert an email that was already used by other user, no error message was displayed or returned

    #10141

    davidrknowles
    Participant

    How are you guys travelling with this?

    I am at this same junction if its possible to have a password to confirm the submission of changed user details. It would also be handy to append the form first rather than after the authenticated field.

    #10150

    Anh Tran
    Keymaster

    I haven’t done it yet. The current password field is used for updating, which is weird. I’ll remove the email and password first. Maybe adding a password confirm is good idea.

    #10154

    Anh Tran
    Keymaster

    Update: I’ve just released version 1.0.3 which doesn’t show email and password fields for user profile form. If you want to include these fields, you can include a meta box id rwmb-user-info in the shortcode (you can change the position of the form to the bottom by putting this ID as the last one).

    Let me know what you think.

    Anh

    #10166

    davidrknowles
    Participant

    That works perfectly. also just realised you can also pull the other standard user meta in by using their keys (first_name or last_name).

    Is it possible to use a MB helper function to retrieve data fields from the user table, like if one wanted to change s password or email in the user profile?

Viewing 10 replies - 1 through 10 (of 11 total)

You must be logged in to reply to this topic.