Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to hide activity stream comments for long list comments


  • Hope
    Participant

    @amalsh

    Hi dears,

    Anybody knows how to collapse & expand the comments list in the activity stream? Before the latest buddypress update, I just modified the global.js file in my theme and specified to show only the last 2 comments in the list, this stopped working with the last buddypress update!

    Anybody knows how to do this? showing the whole list of comments is really annoying on the activity stream!

    Thanks in advance
    Hope

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

  • wiste
    Participant

    @wiste

    I’ve got no advice the actual problem as I’ve only been banging my head against BuddyPress for about a week, but did you check to see that the update didn’t overwrite your changes? My understanding is that you need to use a child theme for file changes so that updates don’t overwrite them.


    Hope
    Participant

    @amalsh

    Thanks @wiste for your quick reply! Actually I’m using a child theme of “Custom Community” theme for the reason you mentioned (to not lose my changes on each update)! but still don’t know why hiding comments is not working now!

    Any idea? Did anybody had this issue before?

    Thanks
    Hope


    wiste
    Participant

    @wiste

    The last update of Custom Community seems to have a lot of problems. Unfortunately, that’s about as far as my knowledge of it extends. I’ve ended up just renaming and moving the activity tab.


    Hope
    Participant

    @amalsh

    Hi @wiste, what do you mean in “renaming and moving the activity tab”?

    Thanks
    Hope


    wiste
    Participant

    @wiste

    I made it so that the “home” tab was named the “activity” tab, moved it over, and made the “forum” tab the first tab that users see when viewing a group. That way at least the first thing they see isn’t the activity feed for the group which is very overwhelming.

    You can do this for each group individually using the BuddPress Group Extras plugin, but you’d have to do it one group at a time. Instead, I added some code to my functions.php in my child theme to do the same thing, but for all groups.

    Below are the two functions I created. The first renames the activity tab and moves it over, the second forces the “forum” tab to be the first tab a user sees when visiting the group (unless the group has no forum in which case it still defaults to the activity tab).

    //function to reorder and rename group tabs in buddypress
    function whff_setup_nav() 
    {
    
    global $bp;
    
      if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) 
      {
         $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['position'] = 110;
    	 
    	 $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['name'] = 'Activity';
    	 
    }
    
    } 
    add_action( 'bp_setup_nav', 'whff_setup_nav', 100000 );
    
    //function to redirect group home pages to the forum tab instead of the activity tab
    function redirect_group_home() {
      global $bp;
      $path = clean_url( $_SERVER['REQUEST_URI'] );
      $path = apply_filters( 'bp_uri', $path );
      if (bp_is_group_home() && strpos( $path, $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug'] ) === false && bp_is_active('forums') ) {
        if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == 'public') {
          bp_core_redirect( $path . 'forum/' );
        }
      }
      
    }
    
    add_action('bp_init', 'redirect_group_home');
    

    wiste
    Participant

    @wiste

    If you want to see what it looks like you can check out a group page on my website:

    http://www.makeloops.com/groups/amigurumi-designers/forum/


    Globetrotter12
    Participant

    @globetrotter12

    Hi! I must admit that I love buddypress. But the activity page has not been well thought for the common usage. I agree that being able to collapse comments easily would be a huge step forward for the plugin. It should actually be in the options. Another option that is a MUST is the possibility of making updates the default, not everything.
    Without those, Buddypress is not going anywhere. With those buddypress would be a revolution.
    I have looked for info everywhere and nothing worked for me. I really love the plugin, you guys are awesome but please consider those two elements as usability necessities. It’s not just details.
    I am running with everything updated wordpress, buddypress everything. Please help, anyone, peers?


    Hope
    Participant

    @amalsh

    Thanks @wiste for your reply! Nice website but as for the issue, what you did doesn’t solve it &or even hide it. Maybe it’s fine to do this when you have a small number of users but for a large community, this doesn’t help a lot specially that the activity stream is the most used part in the whole network.. Thank you again.

    Yes @globetrotter12, you’re right. It has to be in the plugin options, it’s a very important issue.

    If anybody found a solution, plz share.

    Thanks
    Hope


    wiste
    Participant

    @wiste

    I didn’t take it away because it’s still useful, and with the filter options the general “noise” is much less. If you have a forum, it’s not the most used part of the network, the people who will be using my network are more focused on the forum. By making the forums the first thing they see and not the activity feed, it makes it so the activity feed is an extra feature and not the main focus of the group.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to hide activity stream comments for long list comments’ is closed to new replies.
Skip to toolbar