Skip to:
Content
Pages
Categories
Search
Top
Bottom

Gravatar Settings?

  • @lunakm

    Member

    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)
  • @lunakm

    Member

    N/M I found it in the bp-core-avatars.php line 245. I just added &r=x to the URL being built.

    @rogercoathup

    Participant

    @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

    @lunakm

    Member

    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

    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