Plugin: BuddyPress Groupblog

Join this plugin group to follow comments, support topics and reviews.

Other Notes

Other Notes

Known Issues:

  • In order for Group Avatars to show on blogs please adjust the bp-core-avatars.php file. I realize this is a nono, but I don’t see another way. Patches and ideas are welcome. For know adjust the last two functions for plugins/buddypress/bp-core/bp-core-avatars.php to the following:
/**
 * bp_core_avatar_upload_path()
 *
 * Returns the absolute upload path for the WP installation
 *
 * @global object $current_blog Current blog information
 * @uses wp_upload_dir To get upload directory info
 * @return string Absolute path to WP upload directory
 */
function bp_core_avatar_upload_path() {
    global $current_blog;

    // Get upload directory information from current site
    $upload_dir = wp_upload_dir();

    // If multisite, and current blog does not match root blog, make adjustments
    if ( bp_core_is_multisite() && BP_ROOT_BLOG != $current_blog->blog_id )
        $upload_dir['basedir'] = WP_CONTENT_DIR . '/uploads/';

    return apply_filters( 'bp_core_avatar_upload_path', $upload_dir['basedir'] );
}

/**
 * bp_core_avatar_url()
 *
 * Returns the raw base URL for root site upload location
 *
 * @global object $current_blog Current blog information
 * @uses wp_upload_dir To get upload directory info
 * @return string Full URL to current upload location
 */
function bp_core_avatar_url() {
    global $current_blog;

    // Get upload directory information from current site
    $upload_dir = wp_upload_dir();

    // If multisite, and current blog does not match root blog, make adjustments
    if ( bp_core_is_multisite() && BP_ROOT_BLOG != $current_blog->blog_id )
        $upload_dir['baseurl'] = WP_CONTENT_URL . '/uploads';

    return apply_filters( 'bp_core_avatar_url', $upload_dir['baseurl'] );
}