This topic has 5 replies, 2 voices, and was last updated 7 years by Radu.

  • Author
  • #135965
     HDcms
    Participant

    Hello,

    A member of the group A (or B) can respond and comment only in his public group
    In site activity, it was possible that everyone answers or comments.
    I just want to put the site activity as read-only for everyone except a role.

    add_filter(‘bp_activity_can_comment’, ‘bpfr_remove_updates_commenting’);
    function bpfr_remove_updates_commenting($can_comment) {
    $can_comment = false;

    return $can_comment;
    }

    is there code that can prohibit to make a “response” to comment?

    Regards

    #136008
     Radu
    Moderator

    Why you don’t hide via CSS all inputs for reply comm ?

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #136015
     HDcms
    Participant

    Hi,
    Yes of course
    I preferred masked by the code because there was not even a generated code and I find it more universal
    Regards

    #136102
     Radu
    Moderator

    Hi,

    We can provide to you only this CSS solution for PHP solution you should do it yourself or to start a collaboration with a developer for that .

    Check this php snippet that check if the logged user it’s author will load that css to remove the comm for replies in activity : http://pastebin.com/raw/9tvG3stC for other request like these you should to get a developer because those are not theme problems and our support team cannot provide custom support

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #136784
     HDcms
    Participant

    Hello,
    Thank you
    I understand what you said
    Not mandatory (in newer more important than this one)

    I tried again but I could not make it work even not putting:
    #buddypress div.activity-comments form.ac-form {display:none !important; }
    style.css in the child theme or “Styling options” in the administration wordpress

    Regards

    #136815
     Radu
    Moderator

    If you will paste this css instead the old one that i have provided to you it works ?

    COPY CODE
    
    div.activity-comments form.ac-form {display:none !important; }
    

    If not try with this

    COPY CODE
    
    #buddypress div.activity-comments form {display:none !important; }
    

    If not try with this

    COPY CODE
    
    div.activity-comments form {display:none !important; }
    

    If you have cache don’t forgot to empty the cache

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?