Skip to:
Content
Pages
Categories
Search
Top
Bottom

Gravatar Settings?

  • Is there a Gravatar Setting in the BP core functions that governs the rating of images allowed? I’d like to adjust the rating. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • N/M I found it in the bp-core-avatars.php line 245. I just added &r=x to the URL being built.


    Roger Coathup
    Participant

    @rogercoathup

    @lunakm: rather than modifying the core code, which will need changing every time BP is upgraded, you might be better trying to do it as a filter.

    I suspect the filter you’d want to work with is bp_core_fetch_avatar_url. Try hooking a function onto this (in your bp-custom.php file) that appends the &r=x to the url.

    It might be worth raising it as an enhancement request for future BP releases, to give more control over the parameters that can be passed to Gravatar.

    Cheers, Roger

    Thank you Roger, what would be nice is if BP used WordPress’ setting for Gravatar rating. It uses it for the default image…


    r-a-y
    Keymaster

    @r-a-y

    Definitely add this as an enhancement ticket on Trac:
    https://trac.buddypress.org/newticket

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gravatar Settings?’ is closed to new replies.
Skip to toolbar