Skip to:
Content
Pages
Categories
Search
Top
Bottom

Customizing BuddyPress Avatars – BROKEN??


  • coolhunt
    Participant

    @coolhunt

    Hey Guys,

    I’ve implemented the steps outlined here:

    Customizing BuddyPress Avatars

    Heres what I have:

    define ( 'BP_AVATAR_DEFAULT', $img_url );
    define ( 'BP_AVATAR_DEFAULT_THUMB', $img_url );
    define ( 'BP_AVATAR_DEFAULT', 'https://velohive.com/wp-content/uploads/2017/06/VeloHive-Default-User-Avatar-150px-x-150px-17Teeth-EVO.png' );
    define ( 'BP_AVATAR_DEFAULT_THUMB', 'https://velohive.com/wp-content/uploads/2017/06/VeloHive-Default-User-Avatar-125px-x-125px-17Teeth-EVO-THUMBNAIL.png' );

    I’ve tried many iterations of this code in bp-customs and tried it in the functions.. but noting seems to work.

    Im using the twenty-seventeen theme 1.2

Viewing 1 replies (of 1 total)

  • coolhunt
    Participant

    @coolhunt

    This worked!

    adding
    add_filter('bp_core_fetch_avatar_no_grav', '__return_true');

    this is what my bp-custom looks like now to make it work:

    define('BP_DEFAULT_COMPONENT', 'profile' );
    
    define ( 'BP_AVATAR_THUMB_WIDTH', 125 );
    define ( 'BP_AVATAR_THUMB_HEIGHT', 125 );
    define ( 'BP_AVATAR_FULL_WIDTH', 150 );
    define ( 'BP_AVATAR_FULL_HEIGHT', 150 );
    
    add_filter('bp_core_fetch_avatar_no_grav', '__return_true');
    
    define ( 'BP_AVATAR_DEFAULT', 'https://veloXXXXXXXhive.com/wp-content/uploads/2017/06/VeloHive-Default-User-Avatar-150px-x-150px-17Teeth-EVO.png' );
    define ( 'BP_AVATAR_DEFAULT_THUMB', 'https://veloXXXXXXhive.com/wp-content/uploads/2017/06/VeloHive-Default-User-Avatar-125px-x-125px-17Teeth-EVO-THUMBNAIL.png' );

    Someone should probably update that codex doc

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar