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
- Latest Release (For WordPress 2.0 through 2.8+)
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.



Jump to Comments