Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disbable all comments in activity stream

  • @discdemo

    Participant

    Since I cannot moderate activity stream comments, I’m wondering if I can disable the comments option under the activity that shows up in the stream. I already have the comments disabled for groups/blogs, but users can still comment in the stream. I’d like to remove it.

     

    Any ideas? thanks.

    jz

Viewing 4 replies - 1 through 4 (of 4 total)
  • @naijaping

    Participant

    @discdemo, if you are using child theme or buddypress default theme you can simply use css to hide it.

    something like: .activity-list div.activity-meta a.acomment-reply {display:none;}

    @henrywright-1

    Member

    As an alternative to @naijaping’s CSS solution I have been toying with the idea of using a blank post-form.php and removing the comments link from activity entries. But, I hate the idea of that approach as the post-form.php template will be still be called each time. There must be a cleaner solution?

    @shanebp

    Moderator

    Wouldn’t it be easier to just remove the comment form from
    theme/activity/entry.php ?

    @henrywright-1

    Member

    Got it! a much cleaner solution. This goes in functions.php:

    add_filter(‘bp_activity_can_comment’,’__return_false’);

    Credit goes to @mercime

    https://buddypress.org/support/topic/resolved-remove-comment-under-activity-feed/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disbable all comments in activity stream’ is closed to new replies.
Skip to toolbar