Home Forums Plugin Support WP User Frontend Pro Avatar issues

This topic is: not resolved

Tagged: ,

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

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

    Daniel
    Member
    Post count: 4

    Hello,

    A couple of things that are not working so well:

    • If you upload an image with the same name as the one last uploaded (eg: “image.jpg”, old upload; “image.jpg”, new upload), neither the new file nor the old file work.
    • If a user uploads an image with the same name of another user (eg: user A uploads “image.jpg”; user B uploads “image.jpg”), the file is overwritten, making it the same image for both users (eg: A's upload is replaced by B's upload, both users end up with the same avatar).

    A solution could be to give uploads uniqueness by including a timestamp and username in the filename (ie: 20141215164905-userb-avatar.jpg). Perhaps an “avatar” subfolder could also be a good idea, to separate them from general media.
    There should also be an option to select the crop dimensions.
    I could solve this by editing the plugin functions, but it would be lost on updates. Suggestions?

    Thanks in advance.

    #32427

    Nayem
    Moderator
    Post count: 6480

    Hello Daniel,

    With the WordPress environment image should be replaced when same user upload two file with same name. May be something went wrong there.

    If you want to customize then child theme will be safe option for you. You can customize thorough child theme because it is perfect for overriding and also it would not be lost on updates.

    Thank you 🙂

    #32492

    Daniel
    Member
    Post count: 4

    Hello, Nayem,
    Thanks for your reply.

    Is this a legitimate issue or is it just me?:

    User A uploads “image.jpg”, user B uploads “image.jpg”; A's upload is replaced by B's upload, both users end up with the same avatar.

    I was attempting to achieve this unsuccessfully.

    If you want to customize then child theme will be safe option for you. You can customize thorough child theme because it is perfect for overriding and also it would not be lost on updates.

    I tried copying the function and modified it in the theme functions, but it doesn't work. Maybe I'm not doing it correctly… ?
    I have edited the plugin functions for now as I need this working. The avatar uploads include the attachment ID in the file name and the resize crop was changed with no problem.

    There's also a funny thing going on:
    The Default Avatar options in the Discussion Settings show my own avatar; but it's just in the layout, selecting each option does work accordingly.

    Thanks again!

    #32595

    Nayem
    Moderator
    Post count: 6480

    Hello Daniel,

    In the previous reply of mine i showed you the right way for customization. You have to make a child theme then make your customization in this child theme. But i can not help you to do customization. Because we do not provide support for customization. But if you want then you can hire a developer to customize to your site.

    Hope you will understand me. Thank you 🙂

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

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