Re: How to make a private community?
Ok, here I am.
For making buddypress a private commmunity, do the following:
-Create a new page in the admin interface.
-Make the page not to show in navigation with one of these: (http://www.kimwoodbridge.com/how-to-exclude-pages-from-the-wordpress-navigation-bar/ ) (https://wordpress.org/extend/plugins/exclude-pages/)
-Fill the page with HTML (as you wish). If you want Widgets, you can follow this: http://wpmu.org/how-to-widgetize-a-page-post-header-or-any-other-template-in-wordpress/
-Now, use this in the top of ALL PAGES NOT TO SHOW TO GUESTS: (https://buddypress.org/forums/topic/securing-components-from-non-logged-in-users/page/2)
if (!is_user_logged_in() ){
bp_core_redirect( $bp->root_domain.’/register’ );
}
AND REDIRECT THEM TO THE PAGE YOU CREATED BEFORE.
AND THAT’S IT!