Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Avatars aren’t shown after the upgrade

@bennadler

Member

Hmmm…Ronia, the link to my site is http://www.realestatemarbles.com.

Feel free to check it out.

My bp-custom file is placed in wp-content/plugins.

Let me post the entire code just for you…other issues could be you .htaccess file. Did you copy in the Multisite codes? It could also be an issue in wp-config.php…so many possible issues.

Take a look at this code again.

function nfm_bp_avtar_upload_path_correct($path){
if ( bp_core_is_multisite() ){
$path = ABSPATH . get_blog_option( BP_ROOT_BLOG, 'upload_path' );
}
return $path;
}
add_filter('bp_core_avatar_upload_path', 'nfm_bp_avtar_upload_path_correct', 1);

function nfm_bp_avatar_upload_url_correct($url){
if ( bp_core_is_multisite() ){
$url = get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . "/wp-content/uploads/";
}
return $url;
}
add_filter('bp_core_avatar_url', 'nfm_bp_avatar_upload_url_correct', 1);

You may need to adjust the $url = get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . "/wp-content/uploads/"; } to show your full address instead of ‘siteurl.’ So use http://www.example.com/wp-content/uploads/ instead. That may fix your issues…if not, I would suggest contacting Automattic and Buddypress support and see what they have to say.

Skip to toolbar