Support » Plugin: Avatar Privacy » Recreating avatars possible in bbPress?

  • Resolved Martin Stehle

    (@hinjiriyo)


    Hi, thank you for that helpful plugin. After I activated it I browsed through some pages of my website to see the effect. I set the default avatar to Silhuoette.

    Since I missed the gravatars for older comments I add the filter as described in Zulassen von Avataren für Alt-Kommmentare.

    That works well for the plugin “Testimonials Basic”. But in “bbPress” silhouettes are still there instead of available gravatars. Is there a trick to get back the gravatars?

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author pepe

    (@pputzer)

    @hinjiriyo, I’ve looked at the code and the problem is that bbPress (in my opinion incorrectly) sometimes uses the email address to identify the user in the forum templates (e.g. in the User Details). This makes Avatar Privacy treat it as an anonymous commenter instead of a registered user.

    I have never used bbPress before, so there might be a valid technical reason. In any case, working around it will take some time and there are some other features that have priority. As a workaround, editing the templates to make sure that the get_avatar function is handed a user ID instead of the email address should do the trick.

    • This reply was modified 1 year, 8 months ago by pepe. Reason: example added
    Plugin Author pepe

    (@pputzer)

    I’ve created an issue on GitHub to track progress on this.

    That is great. I keep an eye on it.

    Plugin Author pepe

    (@pputzer)

    The issue is fixed in 1.1.0.

    Will the upgrade come soon? It is still 1.0.7 here.

    Plugin Author pepe

    (@pputzer)

    Yes, I’m just finalizing the translations before releasing it.

    Plugin Author pepe

    (@pputzer)

    1.1.0 is live now.

    Thank you. That upgrade should correct the avatars in bbPress? I still see the silhouettes.

    Plugin Author pepe

    (@pputzer)

    You still have to combine the release with the filter for the default value to get gravatars for people who have changed their profile since the plugin was installed.

    The filter is still in use but there are only silhouettes. Is there any “initializing” step to do?

    Plugin Author pepe

    (@pputzer)

    No. If users have edited their profile while the plugin was installed, a non-default but “false” value might have been set for the “allow gravatar” checkbox. In that case, the default filter won’t do anything, they have to opt-in via the checkbox.

    IF you want to clean the slate completely, you can delete the plugin, which deletes all data (previous opt-ins etc.) and reinstall. Before doing that, please check if you are using a static page caching plugin (the page chache might need invalidation).

    What version of bbPress are you using? I’ve tested it with the latest from the repository (2.5 I believe). Any other plugins that might affect the avatar displaying?

    I am using bbPress version 2.5.14. After deinstallation and reinstallation the silhouttes are displayed again.

    The one further plugin in my website which uses gravatars is “Testimonials Basic”. I do not see any interference.

    Plugin Author pepe

    (@pputzer)

    Is there a sample forum I can look at? What theme are you using? (I tested with Twenty-Seventeen.)

    Did you test with a user that has opted-in in the profile (and that has a gravatar image)? Still no avatar?

    Addendum: You can contact me via https://code.mundschenk.at/ if you don’t want to post a URL in public.

    • This reply was modified 1 year, 8 months ago by pepe.

    I am thinking gravatars are an issue independent of any theme but if it might help: the website uses “Tatva Lite”.

    Here is an example in my support forum. You can see my avatar since I opt-in for gravatar display in my user profile. The other user in the discussion has a gravatar, i can see his gravatar in the backend’s user list page, his profile in my site was created before the installation of Avatar Privacy, and no opt-in. The filter is working. But the silhouette is displayed instead.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Recreating avatars possible in bbPress?’ is closed to new replies.