Avatars Not Working With Subdomain
-
Let me first say this is not a multisite. This is a separate install in a subdomain used for development and testing.
How do I get the avatars working? It keeps looking for them in the main domain.
`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);`
I tried the above with no luck.
- The topic ‘Avatars Not Working With Subdomain’ is closed to new replies.