Home Forums Plugin Support WP User Frontend Pro Avatar Image

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  towhid 3 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #69866

    kiwi
    Participant
    Post count: 99

    How do we stop the plugin from adding ‘-avatar' to the end of any profile image uploaded?

    We need to turn this function off for our CDN to work. Please advise.

    Kiwi

    #69979

    towhid
    Participant
    Post count: 4505

    Hello Kiwi,

    Which is the field you are using for uploading the image?

    Can you please attach a screenshot “-avatar”. It will be better if you upload the inspect element screenshot.

    Thanks

    #70001

    kiwi
    Participant
    Post count: 99

    We are using the Avatar form element to upload the avatar image on a registration form we have setup.

    When a profile image is uploaded the plugin renames the file from ‘abc.jpg' to ‘abc-avatar.jpg' This is how your plugin has been setup so you should know this?

    We need to stop the plugin from renaming the avatar images on upload. Please advise.

    Kiwi

    #70155

    towhid
    Participant
    Post count: 4505

    Hello Kiwi,

    Please navigate to wp-user-frontend-pro/wpuf-functions.php and find this function

    function wpuf_update_avatar( $user_id, $attachment_id ) {

    The image update and upload and the delete operation for profile image are controlled from this function.

    Also, found this line $small_url = $file_path_w_ext . '-avatar' . $ext;.

    This line is performing the “-avatar” string append while on uploading the image.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Avatar Image’ is closed to new replies.