This will prevent access to BP pages from non logged in visitors and redirect them to the registration page. Make sure to read the readme.txt for instructions for sitewide forums
https://github.com/bphelp/private_community_for_bp
Neither one seems to be working completely. Only restricts access to forums page.
Just found this topic. And te last function on it seems to be doing the job except for Activity Streams page… it’s still visible.
@mareksgregs The plugin in the I listed above https://github.com/bphelp/private_community_for_bp/archive/master.zip needs to be downloaded as a zip file then you upload it and activate it on your site. It restricts access to BP pages for those who are not logged in and reirects them to the register page. Maybe you need to be more clear as to what your looking to accomplish.
@bphelp I did that. But it didn’t work as I had thought. It only restricted access to Forums and Activity Streams.
Pages like Members ad Groups were still visible to visitors.
Anyway, the function I found in the previously mentioned topic works. So my goal is achieved. Yee. 🙂
Thank you both leading me in the right direction!
@mareksgregs It restricts access to all BP pages. I have tested it but maybe you have some plugin, theme, or custom functions that conflicts with it. On a fresh install it works as it should.