Confused - MB User Avatar Frontend Upload

Support MB User Avatar Confused - MB User Avatar Frontend UploadResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31757
    SashSash
    Participant

    Hi there,

    Following problem:
    I would like an avatar upload field in the WP Admin User Profile and in the Frontend User Account. That should of course be the same field.

    First I created an "Image Advanced" field, but then noticed that I cannot load the avatar with the user rwmb_meta in the Oxygen Builder (3.9 beta 2) and that this does not replace the WP standard avatar.

    I then installed your MB User Avatar plug-in, which works in WP Admin, but offers no possibility to upload it on the Frontend. Unfortunately, apart from an old article from 2020, I have neither found a documentation nor a solution.

    I would like to have an image User upload field (Subscriber and all other roles) in the WP backend as well as in the front and connected to the standard WordPress avatar.

    How exactly do I have to proceed now in order to realize this.

    Thank you for your quick feedback.

    Cheers Sash

    Addendum: I would also like to have a different title than the current one for the MB User Avatar Plugin - "Custom user Avatar" in the WB User Profile.

    #31773
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can follow this article to create a single_image field and update the image to the user avatar.
    https://metabox.io/create-custom-avatar/

    Then you can add the meta box ID to the frontend shortcode to allow users to update their avatar on the frontend. Read more on this documentation https://docs.metabox.io/extensions/mb-user-profile/#edit-profile-form

    #35662
    YasmineYasmine
    Participant

    Is there any way to do with Image Upload instead? It is nicer for the user to just select, and not have to use WP's media upload.. Or is there a way to make single_upload function without going using the WP media ?

    #35667
    Long NguyenLong Nguyen
    Moderator

    Hi Yasmine,

    You can follow this topic to use the field image_upload to upload the user avatar.
    https://support.metabox.io/topic/how-to-add-font-end-image-replace-for-avator/

    Just change a little bit of code to get the image URL https://docs.metabox.io/fields/image-upload/#template-usage

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