Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide Comments on Activity page


  • b1gft
    Participant

    @b1gft

    I am using a child theme of twenty twelve theme and I wish to hide the comments appearing on the activity page. If some reader clicks the comments tab, them they can show up.
    I have the latest BP installed.

    site http://www.assortedclassics.com

    Thanks in advance

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

  • Hope
    Participant

    @amalsh

    Hi @b1gft,

    Did you find a way to do this? I need something resembles this.

    Thanks
    Hope


    b1gft
    Participant

    @b1gft

    No, if you come across a solution will you please let me know.


    Hope
    Participant

    @amalsh

    Hi @b1gft,

    I’m also using Custom Community theme. What I wanted is to hide the long list of comments on the activity stream and only show the last comment with a link “show all comments” above it.
    I could do this by doing the following:

    in the “_inc” folder of “Custom Community” theme, open global.js file and change number ‘5’ in the following 2 lines to the number you want (I put 1 to only show the last comment):
    1- if ( jq(this).children(‘ul’).children(‘li’).length < 5 )
    2- if ( i < comment_lis.length – 5 )

    In the previous lines, the latest 5 comments will be shown and a link “show all comments” will appear above comments. Of course this will happen when number of comments is above 5 (change the number to what you want).

    As I saw this (alone) didn’t work with the last custom community update, what I had to do to make it work (beside modifying the number above) is commenting the following style commands:
    .activity-comments .hidden{
    display:none;
    visibility: inherit;
    }
    in the file style.php of the theme folder (Core –> theme-genertaor –> style.php).

    In this way everything will be ok. Hope this might help you in any way.

    Regards
    Hope


    Adonismoet1608
    Participant

    @adonismoet1608

    There is a plugin for this function
    I think It is buddpress extras plugin
    You can disable comments for activity post.
    Im currently not At My pc
    But if It isnt The correct name just reply and ill send You The plugin name

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide Comments on Activity page’ is closed to new replies.
Skip to toolbar