Re: Avatars of member not showing in all blogs
SInce BP 1.2.6 has the same problem, I would like to open my idea, which is based on @liemcc.
As $upload_dir in bp-core-avatars.php seems to be correct, I changed $upload_dir only.
At line 571 or so,
`[ Original ]
$upload_dir = str_replace( get_blog_option( $current_blog->blog_id, ‘home’ ) , get_blog_option( BP_ROOT_BLOG, ‘home’ ), $upload_dir );
[ Changed ]
$upload_dir = get_home_url( BP_ROOT_BLOG, ‘/’ ) . get_blog_option( BP_ROOT_BLOG, ‘upload_path’);`
Note: There are some other way of correction, and I selected the above becuase I do not want to write the direct path like “/wp-content/” in case upload path changes in the future again.
The reason why we have to change the original script is that WP 3.0.1 has changed upload path for the Blog ID 1 from blogs.dir to “wp^content/uploads” unless we change the default upload path, where “BP_ROOT_BLOG” means Blog ID 1.
I hope this will be helpful for everyone and the next-version BP.