BuddyPress Groupblog extends the group functionality by enabling the group to have a single blog associated with it.
Known Issues:
/**
* 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'] );
}
Requires: WP 3.0 / BP 1.2 or higher
Compatible up to: WP 3.6 / BP 1.7.1
Last Updated: 2013-5-17
Downloads: 30,062
3 of 6 support threads in the last two months have been resolved.
Got something to say? Need help?