strangerstudios / basic-user-avatars

Add an avatar upload field on frontend pages and on the Edit Profile screen so users and admins can manage custom profile pictures without Gravatar.
https://wordpress.org/plugins/basic-user-avatars/
39 stars 34 forks source link

Still deveolping this plugin? I have a couple of issues. #42

Closed hamish-strachan closed 3 years ago

hamish-strachan commented 3 years ago

Not sure if it's my set-up or because I'm using Oxygen Builder to build the site, but I have a couple of issues. They are both to do with using the shortcode on a page.

I have included the shortcode in a modal that pops up when a user clicks 'Edit' on their profile page (a front-end page).

1: When a user uploads a new image, the page reloads and the image hasn't changed, but if I reload the page again, it changes. Possibly due to the pgae reloading while the image is still uploading?

2: Once a user has set an avatar, when they try to replace it with a different one, the original image is still shown. Is this a permissions issue?

kimcoleman commented 3 years ago

The avatar not updating until you refresh is related in part to caching in your site and also because the modal avatar upload does not reload the page.

You will need to have the modal also reload the page or redirect back to it in some way for the new avatar to appear immediately for the user.