• Resolved rcwdm

    (@rcwgsy)


    Hi,

    We have a custom image field (avatar) in the user profile. While we can upload and image and it replaces the gravatar image within the backend, it doesn’t pull through correctly (dynamically) on the front end, the gravatar shows instead. Or if the user doesn’t have a gravatar it shows the standard blank avatar image.

    Any known bugs that would cause this?

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @rcwgsy

    Where on the front-end isn’t it working? I checked here and it shows the correct image on the admin bar.

    Cheers, Jory

    Thread Starter rcwdm

    (@rcwgsy)

    When using it dynamically in a post or page.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @rcwgsy

    What do you mean with using it dynamically?
    If you call the avatar field in a Pods template or simply use get_avatar() within your PHP templates this should work fine.
    Please give me more info about your installation and templates so I can try to reproduce your issue.

    Cheers, Jory

    Thread Starter rcwdm

    (@rcwgsy)

    Add image to post/page with elementor.

    Select the user profile picture as a dynamic source.

    Profile image will either be the gravatar or standard image.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @rcwgsy,

    Check, I’d have to take a look at how Elementor fetches the avatar.

    Cheers, Jory

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @rcwgsy

    I think I’ve found the compatibility issue.
    We overwrite the default get_avatar() functionality from WordPress but not the avatar data handlers like get_avatar_url() which Elementor uses.

    I’ve already create a patch that should fix this issue.
    If you are able, could you test this patch and let me know if it works for you as well?

    Code changes: https://github.com/pods-framework/pods/pull/5772/
    Download: https://github.com/pods-framework/pods/archive/feature/5771-get-avatar-data.zip

    Cheers, Jory

    Thread Starter rcwdm

    (@rcwgsy)

    Hi,

    Okay, that’s great thank you.

    Where am I installing this?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @rcwgsy

    It’s a full plugin download, you can overwrite your current Pods installation.

    Cheers, Jory

    Thread Starter rcwdm

    (@rcwgsy)

    Got this error on doing so.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @rcwgsy
    You’ll have to disable your regular Pods version or overwrite it. You cannot run both at the same time.
    Cheers, Jory

    Thread Starter rcwdm

    (@rcwgsy)

    Okay, I’ve done that but I am getting a blank area now. Nothing is showing where the image should be.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @rcwgsy

    Check, found the issue. If you download it again it should be fixed!

    Cheers, Jory

    Thread Starter rcwdm

    (@rcwgsy)

    Nope, afraid not. It doesn’t show up in the user editor now either.

    Plugin Author Jory Hogeveen

    (@keraweb)

    What do you mean with user editor?
    I changed it so that when you are editing the user “Profile picture” field (WordPress core) it shows the original Gravatar since you have the Pods field to actually edit your Avatar.
    It should show up correctly in other locations.

    Thread Starter rcwdm

    (@rcwgsy)

    Previously when you uploaded an image to the PODs avatar field it replaced the image (backend only) where the gravatar or a standard avatar would show.

    It would not pull correctly dynamically or at all on the front end. Gravatar or the standard avatar would show up instead.

    Now the PODs image avatar field shows up in the backend user profile editor, but it doesn’t replace the ‘avatar’ image in the backend. And it certainly doesn’t show up when you select ‘user profile’ from the dynamic fields on the front end.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Profile avatar not working’ is closed to new replies.