-
Clara started the topic What section do I remove to eliminate "all members" tab from activity page? in the forum BuddyBoss 3.0 10 years, 2 months ago
Hi again!
Ok, so I want to completely eliminate the “All Members” tab from teh “activity” page – to allow members privacy, so that if they selected “friends only” then only friends can see their activity. It seems to me that by simply removing the “all members” tab, it will prevent their activity – such as joining, or becoming friends with someone, from being shown to people who are not their friends.This buddypress/buddyboss site is specifically being set up to all members to be extremely private -so they can restrict everything – except their name in the member directory – to friends only, or make any or all visible to members (we will have s2member set up, so it will be private from the internet at large)
so, I am not clear on where to begin and stop deleting code to get rid of “all members”. I don’t want to delete too much or too little and mess something else up!
~~~~~~~~~~~~~~~~~~~~<div id=”buddypress”>
<?php do_action( ‘bp_before_directory_activity_content’ ); ?>
<?php if ( is_user_logged_in() ) : ?>
<?php bp_get_template_part( ‘activity/post-form’ ); ?>
<?php endif; ?>
<?php do_action( ‘template_notices’ ); ?>
<div id=”subnav” class=”item-list-tabs activity-type-tabs” role=”navigation”>
<?php do_action( ‘bp_before_activity_type_tab_all’ ); ?>
<li class=”selected” id=”activity-all”>” title=”<?php _e( ‘The public activity for everyone on this site.’, ‘buddyboss’ ); ?>”><?php printf( __( ‘All Members <span>%s</span>’, ‘buddyboss’ ), bp_get_total_member_count() ); ?>
<?php if ( is_user_logged_in() ) : ?>
<?php do_action( ‘bp_before_activity_type_tab_friends’ ); ?>
<?php if ( bp_is_active( ‘friends’ ) ) : ?>
<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-friends”>” title=”<?php _e( ‘The activity of my friends only.’, ‘buddyboss’ ); ?>”><?php printf( __( ‘My Friends <span>%s</span>’, ‘buddyboss’ ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?>
<?php endif; ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_groups’ ); ?>
<?php if ( bp_is_active( ‘groups’ ) ) : ?>
<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
<li id=”activity-groups”>” title=”<?php _e( ‘The activity of groups I am a member of.’, ‘buddyboss’ ); ?>”><?php printf( __( ‘My Groups <span>%s</span>’, ‘buddyboss’ ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?>
~~~~~~~~~~~~~~~~~~~~~~
Thanks, again, for the help