Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.2   Updated Sunday, February 22nd, 2009 at 4:16pm

Report Comments Plugin for WordPress

This plugin provides a way for visitors to report inappropriate comments on a WordPress powered site. It does this by automatically adding a link to each comment, which (after asking for confirmation) notifies the administrator by email. There are several options available, including customization of the text, the email message generated (you can choose to include the post title, url, date, author, etc..), and more. Now supports Recaptcha image verification.

Download

  If you have found this page useful, please consider donating. Thanks!

Installation

  • Download and unzip the above file
  • Upload the entire dd-report-comments directory to your plugins directory
  • Activate the plugin from the WordPress admin panel
  • Configure the options under the admin panel: Options – DDReport

Usage

Once activiated, links are added to the comments automatically. The only option you must change is your email address. Other options are available as well, and are explained below.

Change Log

  • 02-22-09 Version 1.2 – Now uses a popup window to report comments. Recaptcha image verification support added, and a few other options. See updated options list below.
  • 06-20-07 Version 1.1 – Added an optional textarea so the personal reporting the comment can include a message.
  • 06-16-07 Version 1.0 – First release.

Options

Link Display Options

Link text – The text shown for the link.

Code before/after link – This allows you to add code around the link for formatting. The default option wraps the link in p tags aligned to the right.

Open in new window – If checked, the confirmation pages will open in a new window.

Email Options

Email address – Where the notifications are sent.

Email subject & message – These options are used to generate the email. You can use the pre-defined tags for this:

%COMMENT_ID% – The ID number of the comment
%COMMENT_URL% – The URL of the comment
%POST_ID% – The ID of the post
%POST_URL% – The URL of the post
%POST_TITLE% – The title of the post
%COMMENT_AUTHOR% – The author of the comment
%COMMENT_DATE% – The date of the comment
%COMMENT_TEXT% – The comment text
%VISITOR_COMMENT% – Optional message from the person reporting this comment

Recaptcha Options

If you do not want to use image verification, leave these options blank.

Otherwise, enter your Recaptcha public and private key (for your domain). If you do not have a Recaptcha account, you can sign up for free at http://recaptcha.net/whyrecaptcha.html

Confirmation Page Options

Confirmation text – The text shown on the confirmation page.

Confirmation button – The text shown on the confirmation button.

Success message – The text shown to the user after the notification has been sent.

Validation error message – If using the Recaptcha image verification option, this is the message that will be shown if the code is not entered properly.

Popup width – The width of the popup window.

Popup height – The height of the popup window.

Troubleshooting

Some servers are configured to only allow PHP to send mail to an email address on the server itself. If you do not receive email sent from this script, try using an email address on the same domain.

Get IP and hostname of form submitters

Open up report.php, and look for this line:

mail($addr, $subject, $msg, 'From: ' . get_option('admin_email'));

Before it, add this:

$msg .= "\n\n" . 'IP: ' . $_SERVER['REMOTE_ADDR'] . "\n" . 'HOST: ' . 
gethostbyaddr($_SERVER['REMOTE_ADDR']) . "\n\n";

And the IP address and hostname of the person who submitted your form will be at the bottom of the email message.

  1. All let it go, force is useless, might as well live each day happily, you say, Oh, Oh, little ostrich mentality.
    Handbags

  2. Do not know how it is, this year has been such a flattening out, remains in the doldrums. Difficult by the ah. Want to give up a little, well, work really is not a simple activity. Handbags

  3. Thank you for the information, keep up the good work!

  4. very good

    thanks for you share.

  5. Are you a sports fanatic? Do you want any sports spirit.

  6. corrispondono alla moda perfetta per piccoli dettagli della transazione con un design semplice …

  7. Marlboro itself has sponsored the world’s top crowd pullers such as the Formula One. It is a product of Philip Morris International and popular for the Marlboro man advertisements.

  8. especially during the winter time. Mostly, they are worn by surfers on beaches of the west coast of the United States, Australia, and New Zealand.

  9. Ad oggi uno dei marchi più grandi del mondo della moda, pelletteria Gucci è avviato, che sfruttano quando Gucci è stata fondata nel 1921, un prodotto importante. Per celebrare il 90 ° anniversario di Gucci deliberatamente emessi chiamato “gucci 2011“, serie di nuovi modelli di lusso per uomo e donna. Questi sono in edizione limitata: l’utilità di queste Gucci Borse a mano di bambù o di coccodrillo, grande arco colori dal marrone scuro, rosso ciliegia al verde scuro. Gucci (Gucci) 2011 e le tendenze autunno inverno Baoxie semplici ed eleganti nella forma e nel design, con un tono seppia low-key di lusso.Economico Scarpe Gucci Accessori da uomo tendenza, corrispondono alla moda perfetta per piccoli dettagli della transazione con un design semplice …

  10. good .for you.so much

  11. You made some good points there. I did a search on the topic and found most people will a

  12. ay Ban Sunglasses are innovative and creative in their designs. Since 2003, Ray Ba

  13. Are you a sports fanatic? Do you want any sports spirit.

  14. I wouldnt have ever noticed you if I never tried look and research. Superb and excellent and aim delighted I saw it. Now I know what I need to do. Thanks ever so much.

  15. site:www.replicadesigner-handbags.com

  16. good for you

  17. Thanks for the article, I’ll think about what you mentioned in it. It’ an interesting point of view.

  18. mjcgf thanks admin for sharing this cool thing with us.

  19. thanks i was searching for this plugin

  20. Great Site, your plugins are very useful and save me a tonne of time.trets

  21. Thank you so very much for taking the time to share…very useful, indeed!xvx

  22. Thanks for a nice share you have given to us with such an large collection of information dffxxd

  23. Thanks a lot for the nice gestures. As usual very helpful.

  24. I visited this page first time and found it Very Good Job of acknowledgment and a marvelous source of info………Thanks Admin!

  25. The installation should be more easier to process so as to reduce the time taken.

  26. ur plugin is not inserted abuse comment data in database.can u pls help wat is the issue even its not showing any error.

  27. Thanks for this plugin, decrease junk comment on my blog.

  28. 94
    Inna

    I want to be a part of this mags. I have idea to make a good design and to make a good layout for this mags. We need to make other people to feel interesting by see our mags cover, then they will buy it ??? ?? ?????? ?????????, ????? ? ???? ??? ??????

  29. Great set of resources – I think this is the biggest oversight people make
    daycare

  30. I want to thank you for the efforts you write in this post. I hope the same best work from you in the future. Thanks for sharing us a great information that is actually helpful. Good day! bachelor of science in fire science

  31. I want to be a part of this mags. I have idea to make a good design and to make a good layout for this mags. We need to make other people to feel interesting by see our mags cover, then they will buy it criminal justice bachelors degree

  32. 90
    sun

    please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks. medical informatics

  33. 89
    sun

    I got my hair cut today. It was not just an ordinary hair cut, I decided to give my hair to locks of love.I am going through problems myself and wanted to help out other people. Many people should do this, it only takes ten inches of your hair. It goes out to people who do not have hair for different reasons. I am really glad I did what I did cause I feel so much better knowing that I can help someone out, cause I might need someone to help me out you can never know. masters of health administration

  34. Love the plugin but im getting a error where when you submit the reported link it doesnt show on the moderation or anything. how do i fix this?

  35. please read through the comments because most common issues have already been discussed many times. Thanks.
    masters in information technology

  36. 86
    Person_guyz

    I really appreciate what you have done. It’s great. This sounds like a great plugin. thanks for sharing
    Cheapest Domain

  37. read through the comments because most common issues have already been discussed many times. Thanks.
    sustainable business mba

  38. I really appreciate what you have done. It’s great. This sounds like a great plugin. thanks for sharing
    coaching masters

  39. please read through the comments because most common issues have already been discussed many times. Thanks.master of healthcare administration

  40. 81
    Person

    Excellent read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that:

    Click here to discover how to get more views on Youtube

  41. 80
    Person

    I really appreciate what you have done. It’s great. This sounds like a great plugin. thanks for sharing
    ejaculation trainer

  42. 79
    Person

    I spent last 4 hours reading your content and must say: awseome site !
    Business Intelligence

  43. Thanks so much! Great plugin.
    mp4 to dvd, itunes to dvd

  44. 77
    person_guyz

    Excellent read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that:

    bsn online

  45. 76
    person_guyz

    Excellent read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that:

    rn to bsn

  46. 75
    person_guyz

    Great looking plugin, but I’m getting an error. When I click the link to report a comment, a new window pops up with an “Oops this link appears to be broken.”health informatics

  47. 74
    person_guyz

    Well, actually, works up until the user clicks “Report Comment”, then it fails again.
    online art education degrees

  48. 73
    person_guyz

    Great looking plugin, but I’m getting an error. When I click the link to report a comment, a new window pops up with an “Oops this link appears to be broken.”

  49. 72
    niceperson_90

    If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.
    art masters

  50. 71
    James

    Still works flawlessly on 3.04 thanks!!!

  51. 70
    person_guyz

    Great looking plugin, but I’m getting an error. When I click the link to report a comment, a new window pops up with an “Oops this link appears to be broken.”online engineering masters degrees

  52. I really appreciate what you have done. It’s great. This sounds like a great plugin. thanks for sharing

  53. 68
    Scott Allerdice

    There must be an option for allowing such character to be used while commenting. software development

  54. Great plugin! Like I always say, “Code is Poetry”. Kudos!

  55. Well, actually, works up until the user clicks “Report Comment”, then it fails again.

  56. Update: It works as long as I enable the captcha.

  57. Great looking plugin, but I’m getting an error. When I click the link to report a comment, a new window pops up with an “Oops this link appears to be broken.”

    Any ideas?

  58. Thanks for the plugin, i am going to give it a try.

  59. Hi,
    Thank u for the great work!
    If there is someone who like me had problem with this plugin, by an internal error server, just remove all the <?php with <? and everything will be fine!
    In the truth, I changed also the firt ‘required’ replacing it by the normal html/page tags, I think there was same error on my php configuration file server side.
    Thank u again.

    A.F.

  60. Thanks for the Plugin!
    Nasheed

  61. I’m using report comments plugin. its great!

  62. We find this plugin very useful and have recommended it to other Hyperlocal news Website, as well as Journalism schools.

    We’ve been told recently that it’s not working for people (possible since we upgraded to 3.0.1). I’ve just tried to use it on Chrome and the submit button doesn’t work.

    I see from the comments that the thought is that this plugin might not be supported any more.

    Are you planning an update?

    Thanks in advance.

    Simon

  63. Because all comments here looks like spam i asume this plugin isnt working ;-)

  64. Some servers are configured to only allow PHP to send mail to an email address on the server itself. If you do not receive email sent from this script, try using an email address on the same domain.

  65. Will this plugin work with WP 3.01 ?

  66. Very interesting, will visit again

  67. Just the information I was looking for, thank you

  68. Excellent post, thanks.

  69. Thank you for the information, keep up the good work

  70. Great Blog! Will visit again

  71. We supply all kinds of moncler boots,moncler bags,moncler coats,moncler jackets,moncler T-shirt,moncler vest and so on.We have got a good reputation pf our products with top quality and good price.We sincerely look forward to futher cooperation with you for mutual benefits.We are sure that you will find working with us is a pleasant, time-saving and profitable experience. Please feel free to contact us if you have any questions.Our website is http://www.newlyapparel.com.

  72. What teacher did you admire the most in high school?

  73. well said guys.

  74. This plugin isn’t very useful )))

  75. Hi and thanks for the useful plugin!

    Since your plugin didn’t have I18N-translation, I took the privileges to make the necessary changes so people can easily translate this plugin to their languages. You can download the altered plugin from here:
    http://batman.jamk.fi/~sivju/dd-report-comments-i18n.zip

    I included all the original files, the altered php file, POT-file and a Finnish translation which I made for own use.

  76. I am unable to receive email–but no errors are returned. My server is Win 2008, my email address is same domain. I have WP-Mail-SMTP plugin because my server apparently does not support mail(). Is this why your plugin doesn’t work for me? Is there any way to reconfigure? Or is there another problem/solution?

    Thanks,
    Matthew

  77. I have a simple request for this great plugin. Can you make it so that users have to be logged in to report a comment? This is to help prevent spam and instead of getting the ip i would get the username…please email me at my site email provided asap. Thanks for your time.

  78. 43
    Kruben Chung

    Great plugin and I like it, installed it it on my WP 2.8.4, looked great and worked wonders, but had to deactivate it because it places ALL comments onto moderation and now I have to baby-seat my site. I get tons of comments and putting everything under moderation is no option at all. Same problem as Ben in comment #41

    Does any know how to disable this feature? Great plugin otherwise.

  79. 42
    neologan

    i second the use of thickbox, if you can get it working :)

    would also like to know how i can turn off auto placement so i can do it myself, and what the code would be.

    thanks.

  80. We’ve found all of the comments have been placed in the pending folder following adding this plugin. Has anyone else found that? How do we stop it?

  81. very nice sites thanks

  82. This plugin has been tested, and works, with the latest release of WordPress – 2.8

    I will certainly keep your suggestions in mind for future releases.

  83. 38
    Jean-Paul Horn

    Is it possible to remodel the popup into a Thickbox modal dialog (since it’s already loaded with WordPress)? Tried this myself, but couldn’t find the exaxt code :-(

  84. Very exceptional pieces of information. Very nice webpage though. I applaud

  85. 36
    sota

    is there any way to change font of the link (Report comment)
    thank you,

  86. 35
    Craig

    Great plugin, I can’t believe no one else had ever done this before!

    Could you please let me know if it is possible to disable the automatic insertion of the code – as I would like to call the plugin myself after wrapping it nicely in a styled div at the very bottome of each comment. Yes, I use a custom comments loop :-D

    Thanks!

  87. 34
    Roar

    Oh my god, thank you so much. With some posts getting 400 comments, it will be good if people can report fights.

  88. What a great plugin and exaccly what i’ve been looking for. One question though. Any idea how i’d put a wrapper around it so a comment can only be reported once? I have 50,000 odd readers & it would be worse than spambots if they all took objection to a comment at the same time.

  89. Mike R: I just added instructions on how to do so at the bottom of the page. Enjoy!

  90. 31
    Mike R

    Hey guys,

    I have been using this for a couple of months now and it does what it says on the tin. What I could *really* do with is having the IP address of the person reporting the comment included in the report.

    Is there an easy way I could add a line to the code to get it to do this? I’m no coder but can edit if someone can give me the code and the place :)

  91. Hi there!

    How can i move the “Report link” to another position in the comments. Now the link is in the bottom/end of the comment text but i want it to appear in the end of the line whit the author and time for the post. Look on this post on my page http://www.larm-soderhamn.se/?p=2874 . The report link is now in the end and is named (Anmäl denna kommentar).

    Regards Daniel S

  92. Version 1.2 Released

    When a link to report a comment has been clicked, the form now opens in a popup window. Support for Recaptcha image verification has been added as well (if you choose to use it). This helps prevent spam bots from trying to submit the form.

    For those of you unfamiliar with Recaptcha, all you have to do is sign up for a free account for your website (info is above, and in the plugins options page).

    Other options have been added to specify the error message shown when the code is not entered properly, and to define the width and height of the popup window.

    This plugin has been tested in the latest release of WordPress (2.7.1)

  93. Does this plugin work with WP 2.7?

  94. Hi
    I need something like this. I need a post reporter. or a link under codes (CODES) for reporting dead links.

    Thank you anyway…

  95. I had the same problem as Martin, it worked great in FireFox but in IE7 I clicked the link to report a comment and it gave me a page not found error. I love the functionality but if it doesn’t work with IE that’s a big problem.

  96. 25
    jackburton

    great plugin! i’m using it extensively on one of my sites. the problem is, i’m now getting SPAM REPORTS! yes, that’s right, from spam bots using the link to spam me. is there any way to prevent this? like include a captcha-like addition in any upgrades so only a human being can use it? thanks, and again, great plugin!

  97. 24
    Andrew

    Can we have this updated for 2.5? Its such a cool idea!

  98. 23
    Martin

    It doesnt work with IE someone know why? … Te (Report Comment) apears but if u press it the page has an error….

  99. 22
    Martin

    Hi, this is a great plugin im traing to use it on WP MU . Is it posible to chanche the Email address for each blog en WP . i.e. Send the mail to a diferent modarator for each blog.

  100. Needs “captcha” added bad. Any chance you guide me through adding captcha to the plugin?

    Great plugin just the same.

  101. I modified your code with a simple spam avoidance field. Adding in a captcha or something similar to what I did (you can see it at profootballtalk.com) will significantly decrease emails to admins on popular sites.

  102. Nice plugin that i’ve adapted to suit my site, is there any way of incorporating the page with my blog template? It looks a little out of place at the moment.

    (I know i could drop the form into a hacked version of my template but am looking a straightforward solution.)

  103. thanks man, but how to do this for posts??

  104. Hi friend,

    I really appreciate what you have done. It’s great. Can you please code the plugin which do the same thing so that visitor can report a post on my site which is not working.

    I am waiting for ur reply.

    Thanks a lot for your support.

    Regards,
    GP.

  105. 16
    Alex

    Does anyone know if this works with WP 2.5?

  106. 15
    Leland

    Sorry if this is a stupid question: would it be hard to convert this into a “Report Post” plugin? Useful for blogs that allow registered users to post.

  107. …If it was set up that way, anytime search engine robots followed the link, etc.. it would trigger emails.

    Why not just add rel=”nofollow” to the links?

  108. Hi, could the plugin be set up to send the IP address of the person who reports the post in the email to the blog admin. This would assist in dealing with those who wish to abuse the facility of reporting posts.

  109. Dave: If it was set up that way, anytime search engine robots followed the link, etc.. it would trigger emails.

  110. 11
    Dave

    I would much prefer if this link just fired of a generic email and then displayed a success message. I hate the way it take you to a big ugly empty page that it completely outside of the normal blog interface. This needs to somehow stay within the blog interface. Please not that new windows are not good usability… and even if you do use the new window option… a user could have their browser configured to open all new windows in a tab… which makes for an even worse user experience.

  111. I am having trouble using this plugin. I keep getting an error message when i try to update the options page in admin. Here is the error:

    
    Fatal error: Cannot redeclare ddrc_add_option_pages() (previously declared in D:\xxxx\xxxx\mydomain.com\wp-content\plugins\dd-report-comments\dd-report-comments.php:38) in D:\xxxx\xxxx\mydomain.com\wp-content\plugins\dd-report-comments\dd-report-comments.php on line 37

  112. Nice plugin, but I suggest to put the Report link in the meta line near the comment author’s name. Also, you may want to use icon instead of the Report word, which is irritating when repeated in hundreds of comments.
    The plugin also breaks rss feed on one of my blogs. The plugin error is shown on the top of the feed:

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/vhosts/DOMAIN/public_html/BLOG/wp-content/plugins/dd-report-comments/dd-report-comments.php:1) in /var/www/vhosts/DOMAIN/public_html/BLOG/wp-includes/feed-rss2.php on line 2

  113. Awesome! Thanks but i wanna change the place of (report comment). How can i edit it and i wanna open window in javascript. is it hard to change?

  114. Hm, actually I’ve started to get some spam sent in through the report form. Is it possible to maybe have a captcha or some sort of spam protection on it enabled?

  115. Just wanted to say that this is an awesome plugin and I’ve installed it on my blog now. Thanks a bunch!

  116. Very good plugin. I am using it at my website. But the textarea is becoming a good place for spammers. I am getting some 15 emails per day, that don’t have any legitimate complaints but only spam.

    Would be good to add a function to not accept reports with URLs in the textarea.

  117. 4
    Camner

    This sounds like a great plugin. Unfortunately it appears to be incompatible with another plugin I use, WP AJAX Edit Comments. There are other comment editors, so I may look about.

  118. Version 1.1 has been released. It adds a textarea so the person reporting the comment can add an optional message.

    NOTE – if you are upgrading from 1.0, be sure to load the default options (using the button on the options page), because a few of the default option values have changed.

  119. Johan: Support for other character sets is something I plan to look into (for several of my scripts/plugins), but at the moment they are not fully supported.

    Your idea to allow the user to add a comment to the report is very good though – I will add that in with the next release.

  120. 1
    Johan

    Great plugin! Two observations: 1. My blog is in swedish and Ã¥, ä and ö does not show, instead I get wieard letters like: “Är det fler än jag” in the report-mail. 2. Is it posible to let the user that reports a comment get the choise to write a word or two about the reson for reporting?

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.