Try this plugin to see if it fits your requirement just understand it makes all BP pages private but line 24 in private-community-for-bp.php can be edited and commented out the components you don’t wish to protect there is an example built in the plugin for sitewide forums to see how to comment certain components out:
https://github.com/bphelp/private_community_for_bp
Thanks for the link. Maybe I did not explain it clearly. I still want full access to bp components for non registered/login users. What I want to do is allow members to have the ability to restrict viewing http links inside the post in activity stream unless they are log in. Is this possible?
Help me!
Error: Warning: Cannot modify header information – headers already sent by (output started at /home/content/36/10763236/html/wp-content/themes/OneCommunity/forums/index.php:12) in /home/content/36/10763236/html/wp-includes/pluggable.php on line 876
Codigo:
function nonreg_visitor_redirect() {
global $bp;
if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) || bp_is_profile_component() ) {
/* enter the component name to be blocked to visitors in the above line */
if(!is_user_logged_in()) { //just a visitor and not logged in
wp_redirect( get_option(‘siteurl’) . ‘/register’ );
}
Solved error?????
@jhulianni
Please provide more info when requesting support. See this sticky topic:
https://buddypress.org/support/topic/when-asking-for-support-2/
Looks more like an issue in your theme from the error you posted.
@jhulianni
Actually it would be more appropriate to start your own topic because hijacking another persons thread is usually frowned upon especially since it has nothing to do with the topic authors support request. Thank you!