Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress avatars across a mutisite network?

  • @jerryskate

    Participant

    Hi! I wonder if thereĀ“s someway to make buddypress profile images and avatars extend over at a network? Im using a multisite with buddy press as a plugin on my main site, and a integrated theme on my second site where all the buddy press stuff is going on. I just installed a widget to display activity from buddypres on my main site, but it won’t display the avatars correctly. You can see for yourself here: http://abovebasics.com/blog/category/sneakers/

    Any thoughts?

    Regards,
    Jerry

Viewing 5 replies - 1 through 5 (of 5 total)
  • @jerryskate

    Participant

    Ok i somehow managed to fix this. Hours of trying to solve this, and i do tight after i post here :p I placed this code in both sites functions.php:

    /* This fixes the MULTIBLOG avatar problem */
    function nfm_bp_avtar_upload_path_correct($path){
        if ( bp_core_is_multisite() ){
         //   $path = ABSPATH . get_blog_option( BP_ROOT_BLOG, 'upload_path' );
    		$path = ABSPATH . 'wp-content/uploads/sites/2/';
        }
        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/sites/2";
        }
        return $url;
    }
    add_filter('bp_core_avatar_url', 'nfm_bp_avatar_upload_url_correct', 1);

    Changed the path to where my sub site stores the avatars.

    @mr-b-2

    Participant

    Nice site.
    Where did you get the skin for the forum, especially the main list, it looks great. Is that default bbPress page within Sweetdate?

    @jerryskate

    Participant

    Hi! Sorry for the late reply. Its the default from start yeah, but i change up a lot of the design on my own.

    @mr-b-2

    Participant

    Thanks – I especially like the speech bubbles on the left of the forum, and the shaded boxes. I will look into sweetdate next time for a social site.

    @mr-b-2

    Participant

    Hello
    I have been thinking more about sweetdate but it does not seem to be responsive on my mobile.
    I wanted to test your site on my mobile, but it seems your community and forum links might be dead. Did you abandon buddypress and / or sweetdate themes?
    Brian.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Buddypress avatars across a mutisite network?’ is closed to new replies.
Skip to toolbar