Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved How Can We Get A Buddypress Walled Garden To Work?

Question

Posted · Report post

found this code


function sh_walled_garden()

{

global $bp;


if ( bp_is_register_page() || bp_is_activation_page() )

return;


if( ! bp_is_blog_page() && ! is_user_logged_in() )

bp_core_redirect( $bp->root_domain .\'/\'. BP_REGISTER_SLUG );

}

add_action( \'walled_garden\', \'sh_walled_garden\' );

over here, http://bp-tricks.com/snippets/code/close-down-your-site-for-logged-in-members-only/

didn't seem to work when placed in functions.php.

can you help me "wall up" a buddypress "garden?"

cheers,

dainis

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

Are you adding this code to the end of the functions.php file? Also, this question is more suited for the BuddyPress support forums since the product is their expertise.

Share this post


Link to post
Share on other sites