Skip to:
Content
Pages
Categories
Search
Top
Bottom

Searching for the answer for hiding Site-Wide Activity


  • full moon
    Participant

    @leighgregg

    Hello,

    So I can remove the All Members Tab, Select Friends Tab as the first selected, and I have searched and searched, but I am unable to prevent the site-wide activity content appearing before the friends tab is selected, this is due to if a user does not have any Friends.

    So, To remove this filter is my requirement, but I seem to be not able to do this. I am a newbie to coding, and am fudging my way through.

    Their doesn’t seem to be a definitive answer anywhere. I have tried something I thought worked before, but it has the same results to randomly showing this stream. So I am trying again.

    All help appreciated.

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)

  • danbp
    Participant

    @danbp

    The activity tab cannot be removed actually, but you can hide it using CSS display:none;.

    Read also this tread:

    Profile menu visibility


    full moon
    Participant

    @leighgregg

    Hello,

    I think you have got me wrong on this one. I want the filters, follow, groups, friends ect. But i need to stop the filter – all members. So a user will only see information regarding their friends, followers, groups ect ect.

    Does this make sense?

    Thanks for your help


    full moon
    Participant

    @leighgregg

    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…..


    full moon
    Participant

    @leighgregg

    Oops. Nope thats not right. The search goes on.


    danbp
    Participant

    @danbp

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Searching for the answer for hiding Site-Wide Activity’ is closed to new replies.
Skip to toolbar