Re: How to make a private community?
Instead of modifying all the BP templates, you could try the Registered Users Only 2 plugin:
https://wordpress.org/extend/plugins/registered-users-only-2/
I’ve made a few mods to that plugin to better support BP here:
https://buddypress.org/forums/topic/bp12-plugin-wishlists#post-42114
Use what I suggested above.
Then turn off registration and manually create users. Assign these users a role of contributor or higher.