AJAX Report Comments
v 2.0.3
If you are installing this plugin over version 1, you will need to deactivate and reactivate it prior to using it.
AJAX Report Comments is a powerful add-on for any WordPress blog, particularly larger blogs with a higher volume of user comments. It provides blog visitors the ability to report an inappropriate comment to the blog’s moderator with a single click using AJAX and email. You can even enable a ‘comment’ box so your users can say why they are flagging the comment.
Through the WordPress Admin you can modify many aspects of the plugin including the text of the “Report Comment” link, setting a threshold for the number of reports before hiding the comment on the front end, the “Thank you” message for enabled email notifications, the email address to send the inappropriate comment to and the layout and content of the generated email itself. You can even modify the HTML surrounding the “Report Comment” link to suit your needs.
After a comment is reported, any site moderator / administrator can log into the WordPress admin and moderated the comments. Once a comment is approved, users can no longer report it. A comment can additionally be edited or deleted from the plugin’s moderation panel. You can even view a report per comment which includes the original posting author as well as all users who have flagged the comment. If you’ve enabled the email notify feature, the email address you specify will receive a message including the text of the reported comment and a link to view the comment on the site.
Installation:
- Download and unzip the above file
- Upload the entire report-comments directory to your plugins directory
- Activate the plugin from the WordPress admin panel
- Configure the options under the admin panel: Options – AJAX Report Comments
Change Log:
v2.0.3
- Fixing syntax error in report-comments.php
- Fixed a layout issue where the footer appeared on top of the list of comments in some cases.
- Resolved issue where multiple reports for the same comment from the same computer were not blocked.
- Fixed an issue where the wrong IP address was displayed on the moderation screen under Commenter’s IP
v2.0.2
- Fixing syntax error in report-comments.php
v2.0.1
- Fixing conflict with ‘Role Scoper’ plugin where pluggable.php was not required on plugin forward facing pages.
v2.0
- Reported comments are available in a moderation system inside WP for site admins / moderators.
- Added dashboard integration for moderation panel.
- Moved plugin to own widget navigation.
- Once a flagged comment is approved by a site administrator / moderator, it cannot be flagged again by front end users.
- Can view a report on a single comment to see how many times it has been reported as well as details of original comment poster and users who flagged the comment.
- Admins can set a threshold value where if a comment is reported more times then the number specified, it automatically hides from the site’s front end.
- Enable / Disable reported comment reason box where users can give a reason for reporting a comment.
- Enable / Disable email moderator function.
Leave a Reply
I created a jQuery version of this plugin over at the Wordpress Support forums: http://wordpress.org/support/topic/366513
Report this comment
@Travis – nice! We’ll check it out. If it all looks good, do you mind if we bundle some of it into our plugin?
Report this comment
Hi, how can i manually insert report comment link into a page?
can this work with the buddypress plugin?
Report this comment
@Andrew – right now there is no support to manually add a link on to a given page. We haven’t tested with buddypress, so currently we can’t guarantee it will work.
Report this comment
And one ip can report unlimited number of comments like i just did on ur blog and its easy to spam them with scripts
so add a captcha option ( make it optional )
add a option so admin can limit number of reports to one ip address, like a field to submits numbers (3,5,10,15 like this )
hope it helps and thanks again
Report this comment
@SoundsFunny – good suggestions. We’ll add them to our feature build list.
Report this comment
well it sounds funny when someone reports editors comments and staff comments, please add a feature to put some users in safe list or add staff in exception list or something like that lol
take care, thanks for great plugin, just hoping its secure from shell hacks,xss hacks or other vulnerabilities
Report this comment
I changed your plugin to place the javascript in wp_footer. One suggestion would be to add a couple do_action’s and apply_filter’s so unappeasable folk like me can mod it from functions.php instead of changing your plugin core
Report this comment
@Travis – I’ve added your suggestions to our feature request list. Thanks!
Report this comment
Although now it works, I found a bug (minor one, but still) in it. In “Moderation” panel, under “Commenter’s IP”, it shows actual REPORTER’S IP.
Also, “Moderation” panel looks quite unergonomically right now. With bigger comments, it breaks display and gets mixed up with Admin Panel’s footer. Maybe it would be a good idea to make it a two column page (FIRST column: date added, commenter’s ip, status and report info, and in the SECOND: the comment itself). It also would be very nice to be able to somehow integrate moderation with comment moderation apnel — be able to mark comments as spam, quick edit them and such. AJAX-powered report viewing would be a nice addition too.
Anyway, it’s a great update adding lot’s of great functions I’ve been waiting for for a looong time
Keep up the great work
Report this comment
@klon – fixed the comments’s ip bug and fixed the display. We’ll work on integrating your other suggestions into a future release.
Report this comment
Hello,
I’ve installed 2.0 today, and it broke my WP install. After upgrading from 1.0 to 2.0 (plugin was active, and I didn’t know about the need to first deactivate it, upgrade and only then activate again), I got “You don’t have sufficient privileges to upgrade plugins”, and after trying to return to main admin Dashboard — “You don’t have sufficient privileges to access this page”. I had to deactivate all the plugins through MySQL query, and only then WP admin panel returned to normal. Situation repeated after activating the plugin again.
Report this comment
@klon – what version of WP are you using?
Report this comment
2.9.2
Report this comment
I’ve just checked it on my other site (WP 2.9.2 too) — and it works. I have never installed AJAX Report Comments nor other comment reporting plugin on the other site — basically, there were almost no plugins used on that one.
So my guess is that root of the problem are either leftovers from 1.0 version of the plugin (either from previous version, or because of not performind the deactivate-upgrade-activate routine), or a conflict with some other plugins.
I’ve also tried dropping wp_comments_reported and wp_comments_moderated tables, but to no avail.
Report this comment
Sorry to flood you with those status update, but you might find that info useful (if not, please let me know):
removing all the rc_* options from wp_options didn’t help either.
Report this comment
@Klon – do you have access to any error logs for your server?
Report this comment
Found the issue. Just uploaded v2.0.2 to wordpress.org. Once it appears, download and let me know if you still see the same problem.
Report this comment
Now it works. Thanks, man
What was the issue, exactly?
And no, it didn’t show any sign of this in error logs.
Report this comment
@klon – syntax error in one of the php files.
Report this comment
Hi Tod, new version conflicts with Role Scoper plugin, and this is the message it is giving.
Role Scoper cannot operate because another plugin or theme has already declared the function “set_current_user” or forced early execution of “pluggable.php”. All posts, pages and links are currently hidden. Please remove the offending plugin, or deactivate Role Scoper to revert to blog-wide Wordpress roles.
I really need Role Scoper to manage the many roles on my blog. Anyway I could work around this?
Report this comment
@Boni – testing a fix right now – will post an update when it is ready.
Report this comment
A fix has been made. Download v2.0.2 from WordPress and you should be all set.
Report this comment
Hi Todd,
Thanks for the quick fix It is now working and man, this is truly a great plugin and very awesome indeed and I am dying to deploy it on my production site. However, I noticed the issue I raised in my post sometime back is still not resolved. All comments are still being thrown into moderation. What could be happening?
Report this comment
@boni – can you email me a screen shot of your settings > discussion screen? I want to see if I can replicate this issue. Also, what other comments / moderation / user management plugins do you have installed?
Report this comment
Todd, Just send you the screen shots to this e-mail wordpress-cms AT tierra-innovation DOT com
Report this comment
@Boni – thanks. It’s hard to tell right off where the issue may be. The plugin itself doesn’t add anything to your comment, so it is unlikely that would cause the issue. It is possible that it could conflict with another one of the plugins, but without having all of them locally to test with, it would be difficult to dissect. Just to clarify, when the plugin is active, your comments go into a moderation queue versus appearing directly on the site?
Report this comment
Yes, Todd that is correct. I will try it on a new wordpress installation without any plugins and give you feedback
Report this comment
UPDATE. Works well on a fresh installation. I think I have to test all my 31 plugins installed, one at a time and see which one is causing problems. I will give you feedback.
Thanks for your wonderful work
Report this comment
@Todd, I have found the cause of the problem. It is the wordpress’s Comment Moderation option under settings->Discussion. You have a box after the line Hold a comment in the queue if it contains ... I had to have a digit zero (0) to make the plugin work as I wanted. Another thing is I made sure my text area fields for both black list and words to moderate were clear or empty. So I effected this change and everything works now.
However, I think it would be good to have a list of common bad words and let them not get to the site at all. Now in my current configuration, I let all sorts of words get to the site and rely on people to report them. I think it would be great to have a have some sort of first line of defence of common black listed words and if that is breached, then one can rely on the readers reporting through your plugin.
Thanks for your great work.
Boni
Report this comment
Had same issue and changing 1 to 0 in disscussion page fixed this. Also adding www. to blacklisted words made all url’s become moderated again. Not perfect but problem resolved for now.
Report this comment
Would it be possible in 2.0+ to let admins decide for themselves where to insert the link instead of automatically inserting it after comment_text.
Report this comment
@Jean-Paul Horn – that’s a good question. I can think of a couple ways we could do this. I’ll add it to our feature list and post a note when we’ve integrated it.
Report this comment
Never mind. I figured it out…..
/Daniel
Report this comment
@Daniel Forslund – if you want to send us the changes, we can add them into the plugin and let you set the language. Seems like you’ve already done the translation, so we can certainly roll it into what we have. Thanks!
Report this comment
I love this feature but no matter what I do I am unable to change the language to Swedish.
I have changed:
add_option(‘rc_linktext’, ‘Anmäl överträdelse av kommentarsregler’);
add_option(‘rc_beforelink’, ”);
add_option(‘rc_afterlink’, ”);
add_option(‘rc_success’, ‘Kommentaren är anmäld. Tack!’);
and
update_option(‘rc_linktext’, ‘Anmäl överträdelse av kommentarsregler’);
update_option(‘rc_beforelink’, ”);
update_option(‘rc_afterlink’, ”);
update_option(‘rc_success’, ‘Kommentaren är anmäld. Tack!’);
What am I missing?
It still shows the english text; Report this comment on the blog and not the swedish; “överträdelse av kommentarsregler’”
/Daniel
Report this comment
I’m trying this out on a MU install of wordpress, and it’s not working at all. Is there something extra I need to do to get it onto the template?
Report this comment
@sundari – what version of WPMU are you currently running? While we haven’t tested the plugin on WPMU, it should work with the latest branch release since it now lives within the single user codebase.
Report this comment
Hi, This is a great plugin and a must for real if you are running a big website with tons of comments from unregistered users. Thanks for the great and awesome work.
I have just one issue: when I deploy the plugin, it sends all comments to moderation and I have to go to moderation and start approving comments and usually from there I can see inappropriate comments.
Reason I want this plugin is because I have a lot of unregistered users that post comments and I want their comments to go straight to the site and if there is any bad comments I want visitors to report them. In the current form, I have to now baby sit the site, which is impossible as the site is active with comments 24/7.
Is there a way I can turn off the feature that makes all comments go to moderation?
Boni
Report this comment
@Boni – there are settings within WordPress to moderate all comments. In the next version release I have been working on, you can open that and rely on your end users to ‘moderate’ the posts for you. They will then go into a queue which you can review / approve / delete. We should have the next version ready in the coming weeks, so stay tuned.
Report this comment
Hi Todd thanks for the response and look forward to your next version.
I think the current version is great too for me and I want to start using it right away. However, the problem I have is that people are able to post comments straight to the website normally without your plugin, but as soon as I enable it, ALL the comments start getting trapped for moderation. When I check wordpress settings in Settings –> Discissions –> Before a comment appears , both check boxes are unmarked, the way I want them, but the comments still go to moderation.
As soon as I disable your plugin, things get back to normal and people can post comments straight to the site. So it looks like the plugin is causing or activating this moderation and I was wondering where else to disable this. The wordpress settings look disabled alright, but it seems those settings are overridden by your plugin.
Boni
Report this comment
@Boni – I’ll take a look and make sure we aren’t activating a hook we shouldn’t be.
Report this comment
@Boni – Also, what version of WP are you using?
Report this comment
Thanks Todd. I am using WordPress 2.9.1
Report this comment
@Boni – we just released v2.0 to WordPress. If you upgrade and enable the plugin, does your issue still appear?
Report this comment
Yes, Todd My issue still appears. It has not been resolved
Report this comment
Hi,
i have the same problem with this plugin. My Wordpress Version is 2.9.2 with Plugin Version 2.0.3. Has anybody an idea how to fix this?
Report this comment
thanks but it doesn’t work for me, on click on the report link, nothing…
why ?
Report this comment
@jm6tm – do you have JavaScript enabled?
Report this comment
Good plugin. I think it should have a capcha or something to prevent users from just pressing each one on each comment.
Report this comment
@Good but – Great idea – we’ll work on adding that in to our next release.
Report this comment
Greate plugin! thanks !
Report this comment
Can I see a demo please?
Report this comment
@Levani – Thanks for your interest! I have activated this plugin on our site. You can now see the “Report this comment” link below each comment on this thread as well as others. Feel free to click the link to try it out. Here is an example of the resulting email you will receive when someone clicks the link:
===============================================
A visitor on your site has reported the following comment:
TITLE: AJAX Report Comments
URL: http://tierra-innovation.com/wordpress-cms/plugins/report-comments/#comment-121
Author: Levani
Date: 2009-12-27 05:38:30
Comment text:
Can I see a demo please?
===============================================
Let us know if you have other questions or need more information.
Report this comment
Thanks for the demo!
I have one question. I have installed this plugin on my test blog and as I see administrators can only check the reported comments through their email, am I right? What about checking the reported comments directly from the admin panel? I think it would be much better to add, for example, one tab in comments page for the reported comments, where admins would be able to delete the comment or reject the report.
Besides I’m agree with Good but, once the user clicks on the report comment link there should be some confirmation message appeared, to prevent junk reports. Also I have seen on many websites that users can specify the reason why they think the comment should be reported. Why not give them one field for it? This would be more useful for admins as well.
Thanks for the great plugin.
Report this comment
@Levani – Adding a full admin interface is coming in our next release. I’ll take your suggestions and compile into our feature request list. Thanks!
Report this comment
@Levani – we just checked in v2.0 to wordpress which provided a full moderation interface within the WP admin. You can disable email notifications if you like and simply use this instead.
Report this comment