Reply To: Activity Streams in Page and Groups
Hi @rayela, since your original question never got answered I thought I’d give you an answer:
As you discovered, you can disable all activity feeds for your entire site by unchecking the “activities” component on the BuddyPress settings Components tab, but as you mentioned this results in a blank home page which isn’t good.
Unfortunately, you cannot fix this without writing code because there are no easy options to do this with BuddyPress (I feel your pain, I quit programming for a reason).
You will need to create a functions.php or bp-custom.php as mentioned above to add custom code to. This function will redirect it so that the forum tab is the “home page” for your group and remove the “home” tab so that it’s no longer visible:
function redirect_group_home() {
global $bp;
$path = clean_url( $_SERVER['REQUEST_URI'] );
$path = apply_filters( 'bp_uri', $path );
if (bp_is_group_home() && strpos( $path, $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug'] ) === false ) {
if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == 'public') {
bp_core_redirect( $path . 'forum/' );
}
}
$bp->bp_options_nav[$bp->groups->current_group->slug]['home'] = false;
}
add_action('bp_init', 'redirect_group_home');
I’m not sure if you’re still active here but I felt after your amiable responses you deserved a real answer.