This topic contains 3 reply and 2 voices, and was last updated by Nayem 4 years, 10 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
December 16, 2014 at 4:10 am 32366
Nayem 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.
December 17, 2014 at 2:10 pm 32427
Nayem Nayem

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 🙂

December 18, 2014 at 1:51 am 32492
Daniel Daniel

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!

December 19, 2014 at 12:09 pm 32595
Nayem Nayem

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 3 Posts - 1 through 3 (of 3 total)