Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable Gravatar


  • oberstet
    Participant

    @oberstet

    I would like to disable Gravatar completely. I don’t want to hack in PHP code to remove the generated links.

    Reasons:

    a) I have a private blog behind HTTPS and some browser will complain all the time that part of the page loads from non-secure sources (http://gravatar)

    b) It’s a privacy hole. I don’t like to generate pings to Gravatar.

    How can this be done? Thanks …

Viewing 8 replies - 1 through 8 (of 8 total)

  • jivany
    Participant

    @jivany


    oberstet
    Participant

    @oberstet

    thanks for helping … but I knew that one .. did that : hacked the BB PHP, which is of course far from ideal. Less about being able to, but I dont want to, since I need to maintain my hacks if I upgrade.

    So you say there is nothing to “configure away” that misfeature without hacking? Does bb.org have business relations with gravatar.com?


    r-a-y
    Keymaster

    @r-a-y

    This isn’t hard at all.

    Apply a filter to:

    bp_gravatar_url

    Return a url to a default image.

    [EDIT]

    Just noticed that bp_gravatar_url only changes the domain… the params are still added at the end of the URL.

    Might try applying a filter to:

    bp_core_fetch_avatar

    Write a function to see if “gravatar.com” exists in the image URL, if so, return a default image.


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    bbPress and Gravatar are Automattic projects, as is WordPress, BuddyPress and many others. Check the full list at http://automattic.com/.


    jivany
    Participant

    @jivany

    Thinkimg about your Gravatar https issue – I thought that was fixed in a recent version of BP.


    oberstet
    Participant

    @oberstet

    thanks for helping.

    @r-a-y

    i’ve already hacked bp_core_fetch_avatar() as described in https://buddypress.org/forums/topic/how-to-disable-gravatar-completely

    however, a quick grep for gravatar.com over all wp/bb reveals more places. i am a total wwp/bb/php idiot and have no aspirations to become even mildy involved with the codebase. i was looking for a on-place “checkbox solution”.

    @DJPaul

    ah, ok;) it’s ok to have such commerically motivated “defaults” … in the end its a pretty impressing piece of tool and its nice to share anyway. on the other hand, it would be nice to have a big “this is a private site” switch which turns off this, and other things (like the dashboard fetching stuff from outside … i “disabled” that one using a firewall rule;)


    oberstet
    Participant

    @oberstet

    @jivany

    i’m running latest rel. of today .. the issue is there. also: the browser prob. would go away if the inserted stuff would be to https://gravatar.com, but the privacy issue would remain.


    jivany
    Participant

    @jivany

    What if you removed the existing bp_core_fetch_avatar_filter from get_avatar and then created your own copy that passed ‘no_grav’=>true into the bp_core_fetch_avatar function?

    I think this should kill the attempt to use Gravatar to fetch an avatar. I’m assuming that bp_core_fetch_avatar isn’t being called directly anywhere. If you do find anywhere that does, it should probably have a ticket raised against it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to disable Gravatar’ is closed to new replies.
Skip to toolbar