Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Single sitewide avatar per user?


Greg
Participant

@rebootnow

Quick update on how I made this work. Added the following filters in bp-custom.php.

I would still like to know if BP is expected to look for different avatars depending on the blog that is currently active.



/* Set sitewide avatar path for all blogs */
function _core_avatar_upload_path( $path )
{
return ABSPATH . ‘wp-content/blogs.dir/1/files’;
}
add_filter(‘bp_core_avatar_upload_path’, ‘_core_avatar_upload_path’ );

function _core_avatar_url( $url )
{
return ‘http://’ . get_current_site()->domain . ‘/files’;
}
add_filter(‘bp_core_avatar_url’, ‘_core_avatar_url’ );

Skip to toolbar