Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Searching for the answer for hiding Site-Wide Activity

@leighgregg

Participant

Okay, so I think I have a working resolve. Using buddyboss theme, I have removed the below code.

<li id="activity-all"><a>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'buddyboss-mobile' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddyboss-mobile' ), bp_get_total_member_count() ); ?></a></li>

and selected

<li class="selected" id="activity-mentions"><a>" title="<?php esc_attr_e( 'Activity that I have been mentioned in.', 'buddyboss-mobile' ); ?>"><?php _e( 'Mentions', 'buddyboss-mobile' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><span><?php printf( _nx( '%s new', '%s new', bp_get_total_mention_count_for_user( bp_loggedin_user_id() ), 'Number of new activity mentions', 'buddyboss-mobile' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></span></strong><?php endif; ?></a></li>

the main feature being class=”selected” at the beginning to auto select this tab. So even if the user has no friends, then this Tab will still be available, making the All Members updates not viewable.

lets see how this goes…..

Skip to toolbar