get_avatar example

This topic contains 18 replies, has 4 voices, and was last updated by  Alex Rollin 6 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #1601

    luxint
    Free User
    Post count: 11

    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

    #1602

    Patrik
    Moderator
    Post count: 1971

    Hi 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,
    Patrik

    #1609

    luxint
    Free User
    Post count: 11

    I 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

    #1612

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #1628

    luxint
    Free User
    Post count: 11
    This reply has been marked as private.
    #1629

    luxint
    Free User
    Post count: 11
    This reply has been marked as private.
    #1631

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You 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

    #1632

    luxint
    Free User
    Post count: 11

    That’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

    #1633

    Stiofan O’Connor
    Site Admin
    Post count: 22956
    #1634

    luxint
    Free User
    Post count: 11

    Does 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

    #1635

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes 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

    #1636

    luxint
    Free User
    Post count: 11

    I 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

    #1637

    luxint
    Free User
    Post count: 11
    This reply has been marked as private.
    #1639

    luxint
    Free User
    Post count: 11

    Would 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

    #1644

    luxint
    Free User
    Post count: 11

    Do 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

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket