-
Author
-
September 13, 2016 at 16:49 #135965HDcmsParticipant
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
September 13, 2016 at 20:04 #136008RaduModeratorWhy 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 solutionSeptember 13, 2016 at 20:34 #136015HDcmsParticipantHi,
Yes of course
I preferred masked by the code because there was not even a generated code and I find it more universal
RegardsSeptember 14, 2016 at 17:14 #136102RaduModeratorHi,
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 solutionSeptember 21, 2016 at 18:04 #136784HDcmsParticipantHello,
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 wordpressRegards
September 21, 2016 at 19:05 #136815RaduModeratorIf you will paste this css instead the old one that i have provided to you it works ?
COPY CODEdiv.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 CODEdiv.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 -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.