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?
-
1create 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 SssweatCommented 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.– barurummCommented Jul 28, 2016 at 9:26
Add a comment
|