[buddypress-trac] [BuddyPress] #2574: Uploaded avatars yet again not showing on multi-site blogs

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Feb 21 22:19:10 UTC 2012


#2574: Uploaded avatars yet again not showing on multi-site blogs
------------------------------------+-----------------------
 Reporter:  linusf                  |       Owner:
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  1.5
Component:  Core                    |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  avatar multisite, blog  |
------------------------------------+-----------------------
Changes (by unsalkorkmaz):

 * keywords:  avatar, multisite, blog => avatar multisite, blog
 * status:  closed => reopened
 * resolution:  fixed =>
 * severity:   => normal


Comment:

 not sure why but i still have same problem and this solution worked for me
 @ buddypress 1.5.4 / Wordpress 3.3.1:
 {{{
 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);

 }}}

 can you check it please?
 (problem was avatars were not showing on non-root sites)

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/2574#comment:8>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list