get_avatar example
This topic contains 18 replies, has 4 voices, and was last updated by Alex Rollin 7 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 15, 2018 at 6:53 pm #1601
I’m trying to implement userswp in the themese default author template.
I’ve managed to get everything working as intended apart from the avatar.
I noticed you have a filter ‘get_avatar’ which I’m assuming will return the users avatar, but I can’t seem to get it to work.
Can you show an example of how it should be used?
Thanks for your help.
Lux
February 16, 2018 at 5:35 am #1602Hi Luxint,
Can you please explain your issue in details about what exactly you want? Also, provide us the admin details in private reply so that we can have a look on your site and resolve your query.
Regards,
PatrikFebruary 16, 2018 at 8:52 am #1609I just want to recreate this page http://recash.wpsoul.net/author/u8tgk/
I’ve managed to pull everything I need from your plugin apart from the avatar.
I’d like to have the avatar in the same place as the example, with the edit icon.
Hope that makes sense.
Lux
February 16, 2018 at 9:42 am #1612Hi Lux,
I am not sure exactly what you mean, can you please explain more?
If you can provide wp-admin details in a private reply (only staff can see) then we can look further.Thanks,
Stiofan
February 16, 2018 at 6:31 pm #1628This reply has been marked as private.February 16, 2018 at 6:33 pm #1629This reply has been marked as private.February 16, 2018 at 6:35 pm #1631You should be able to just use the standard wp get_avatar function, i think there was a small bug that was preventing it from replacing all the time, it should be fixed in the next release.
Thanks,
Stiofan
February 16, 2018 at 6:49 pm #1632That’s exactly what my first post was addressing. I’m not sure how to use the get_avatar function and am asking for an example. Do you have an example of how to call it and how to use it?
Lux
February 16, 2018 at 6:56 pm #1633There are examples here: https://codex.wordpress.org/Function_Reference/get_avatar
Stiofan
February 16, 2018 at 7:02 pm #1634Does that wp get_avatar interact with your plugin? I’m using your plugin to avoid using the standard wordpress profile. That’s the whole point of using your plugin.
How can the user upload an avatar using your plugin if the upload icon that normally appears on the avatar is not there?
Lux
February 16, 2018 at 7:11 pm #1635Yes our pluign filters that function but as i said sometimes it was not working, we have already fixed it but the fix is not released yet.
Just use that function and it will work how you expect.
Stiofan
February 16, 2018 at 7:16 pm #1636I used the wp get_avatar and it displays the avatar but there’s no way to change it. As I said before, the ‘edit image’ icon that normally shows on the image is not there now. How is the user supposed to change their avatar if they’re not able to access the backend.
Take a look at the profile of the user I set up for you and you’ll see what I mean.
That’s the whole point of me using the plugin. I don’t want the user to access the backend.
Lux
February 16, 2018 at 7:20 pm #1637This reply has been marked as private.February 16, 2018 at 7:50 pm #1639Would it not make more sense for you to include editing of the avatar on the actual ‘edit profile’ page? That way the whole editing of the profile would be on one page which seems more logical and would allow developers to customize the display of the profile.
Lux
February 17, 2018 at 8:28 pm #1644Do you have any update on this? Users still can’t change their avatar at the moment so I’m unable to progress until I get this resolved.
Thanks for your help.
Lux
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket