2

Does anyone know if there is a way to include a button (or just a basic link) next to each comment that is used by admins only and when clicked changes the body of the comment to something like "This comment is inappropriate, please read the blahblahblah"? I tried with Flag + Rules but failed to make any changes to the comment body whatsoever. Any ideas?

2
  • 1
    create a comment flag that only admins can see then use jQuery to check if the flag is flag class is there, if it is, then you change the comment body to whatever you like.
    – No Sssweat
    Commented Jul 28, 2016 at 8:07
  • Thanks, that is exactly what I did. I just added two more functionalities - one that returns the comment to the original state when you unflag it and another one that displays the original comment if the logged in user is administrator.
    – barurumm
    Commented Jul 28, 2016 at 9:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.