Home Forums Plugin Support WP User Frontend Pro User Avatar Problem

This topic is: not resolved

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

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #64727

    Gökhan Aktaş
    Member
    Post count: 50

    The problem mentioned here is still actual.

    If users don't update their avatar from front-end, update profile form do not bring existing avatar. Any solution for this?

    #65189

    towhid
    Participant
    Post count: 4505

    Hello Gökhan,

    If users don't update their avatar from front-end, update profile form do not bring existing avatar and this is usual process. Nobody get updated avatar from front-end if he/she already updated the profile avatar from the frontend post form.

    Thanks

    #65423

    Gökhan Aktaş
    Member
    Post count: 50

    If user logged in or register via a social login/register process, users already have an avatar before they update it. Not to bring existing avatar is not usual, the usual process is bringing the existing avatar. If the front-end edit form do not bring existing username, is it normal to say that this is a usual process?

    #65597

    towhid
    Participant
    Post count: 4505

    Hello Gokhan,

    Can you please send me a screenshot of the process you have described. I did not understand it.

    Maybe I am missing something in the question.

    Thanks.

    #65605

    Gökhan Aktaş
    Member
    Post count: 50

    If user do not change avatar, existing avatar is not visible in edit page.

    This is edit profile page for a user, as you see, existing avatar is not visible:
    1

    This is profile page of same user via “User Listing & Profile” extension of wpuf pro, as you see, avatar is visible.
    2

    #65775

    towhid
    Participant
    Post count: 4505

    Hello Hello Gokhan,

    I have tried to reproduce this issue but failed. It could be a has a chance of theme or plugin conflicts. You can disable all your plugins except User Frontend and switch to a default theme of WordPress like- Twenty Twelve, Twenty Thirteen, Twenty Fourteen and let me know the results.

    Thanks

    #65782

    Gökhan Aktaş
    Member
    Post count: 50

    Hello, I think you tried this with a profile who already updated the avatar. This happens only to users who did not changed their avatar, if they sign up with a social login extension and try to edit their profile info, the result is like pictures above. If users update the avatar once, everything works fine.

    #65839

    Gökhan Aktaş
    Member
    Post count: 50

    I think the problem is in here:
    …wp-user-frontend-pro/class/render-form.php lines 1400…

    It checks ‘user_avatar' meta to get $avatar, if empty, does nothing.
    I made it bring the avatar, but failed to delete it because it tries to delete ‘user_avatar' meta in:
    …wp-user-frontend-pro/wpuf-functions.php line: 533…

    Please fix.

    #65963

    towhid
    Participant
    Post count: 4505

    Hello Gokhan,

    Please let me know what happen when a user do not sign up with a social login extension?

    Thanks

    #65971

    Gökhan Aktaş
    Member
    Post count: 50

    If a user sign up manual, there is no problem, because there is no pre defined avatar. the extension is unable to bring existing avatar if existing avatar is not located in user_avatar meta.

    The extension uses get_user_meta function to bring avatar to form and checks user_avatar meta, so it fails to bring avatar because social login processes can use different metas for avatar.

    I used get_avatar function to bring avatar, it worked, but i don't know how to delete an avatar because delete function also try to delete user_avatar meta, not checks actual avatar.

    #66283

    towhid
    Participant
    Post count: 4505

    Hello Gokhan,

    Please let me know the extension can upload an avatar from the social profile?

    Can I get the plugin? Then it will help me to identify the problem.

    Thanks

    #66288

    Gökhan Aktaş
    Member
    Post count: 50
    #66487

    towhid
    Participant
    Post count: 4505

    Hello Gokhan,

    I have checked the plugin but did not complete totally because it needs a live site. But I can only test it my local server.

    I need to check to your site which will help me to understand the issue. Please send all the necessary information then I can test the issue flawlessly.

    Thanks

    #66539

    Gökhan Aktaş
    Member
    Post count: 50

    I'm running in local too, the plugin do not needs a live site.

    #66703

    towhid
    Participant
    Post count: 4505

    Hello Gokhan,

    It is hard to create a same environment like your by the discussion on the forum. So I was asked for login details.

    Thanks

Viewing 15 posts - 1 through 15 (of 20 total)

The topic ‘User Avatar Problem’ is closed to new replies.