Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to make a private community?

Sure. Here’s the code:

`function sh_walled_garden()
{
global $bp;

if( bp_is_register_page() || bp_is_activation_page() || is_page(terms-of-service) || is_page(privacy-policy) )
return;

if( ! bp_is_blog_page() && ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .’/’. BP_REGISTER_SLUG );
}
add_action( ‘get_header’, ‘sh_walled_garden’ );`

The activity stream, member directory … the whole nine shows up to not-logged-in users if i add anything to the exclusion line.

Skip to toolbar