Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BuddyPress and Multi-Site issues

How to separate activity for each site:

– similiar change to bp-core.php as above

– change in bp-activity.php function bp_activity_setup_globals()

$bp->activity->table_name_user_activity = $wpdb->base_prefix . BP_ROOT_BLOG . '_' . 'bp_activity_user_activity';

$bp->activity->table_name_user_activity_cached = $wpdb->base_prefix . BP_ROOT_BLOG . '_' . 'bp_activity_user_activity_cached';

$bp->activity->table_name_sitewide = $wpdb->base_prefix . BP_ROOT_BLOG . '_' . 'bp_activity_sitewide';

-i don’t know why, but there was also necessary to comment this lines in bp-activity-classes.php function save() (what, as i suppose, may cause some problems):

//if ( !$this->item_id || !$this->user_id || $this->is_private || !$this->component_name )

//return false;

Skip to toolbar