Just wanted to let you know that I followed this guide to install buddypress in another blog:
https://codex.buddypress.org/legacy/getting-started/install-buddypress-on-a-secondary-blog/
Yeah, as is, from what I recall, it’s partially hardcoded at the moment to be on the main blog.
However, I believe this filter is going to help you out a bit. It should allow you to specify the blog ID to put the menu items on. In your case, you’d want to return 4 to the filter.
$default_check = absint( 1 );
$check_blog_id = absint( apply_filters( 'bp_registration_filter_blog_id', $default_check ) );
Hey!
Thank you for you help.
I changed the value to 4 either for both lines or for one while not changing the other. While the menu appears now in the admin panel, the blog returns ERR_TOO_MANY_REDIRECTS when I activate that only registered and approved users shall see the blog.
[EDIT] Hmm, I am not sure if the problem was there before but when I now active the plugin without any changes and independent from activing the option if buddypress is visible to all visitors, I get the same error as above. Might be the cache/cookies of my browser. Still, I thought it might be worth mentioning.
Okay, it seems to be plugin in general. As soon as I active it, I get the ERR_TOO_MANY_REDIRECTS message.
Hmm. The only time we do any redirects is on the template_redirect hook, and that’s only:
1. If private network is checked.
2. Non logged-in user trying to access area they shouldn’t.
3. Logged-in but moderated user trying to access area they shouldn’t.
One caveat I can see in this would be that we don’t check for if_admin() at all but I’d also need to check if template_redirect fires at all in the admin too.
You can see all the logic for that in bp_registration_deny_access() in http://plugins.svn.wordpress.org/bp-registration-options/tags/4.2.7/includes/core.php.
The question is what/why are so many redirects being triggered.