WP Ajax Edit Comments

WP Ajax Edit Comments (for WP 2.1+) allows users and admins alike to edit comments on a post. Users can edit their own comments for a period specified by the admin, and admins can edit all post comments. What better way to show reader appreciation than letting the readers edit their own typos?

Demonstration Videos and Screenshots

Several demo videos and screenshots can be found here.

Download

Please note that there is an update to Ajax Edit Comments for WordPress 2.5.

Please download the file WP Ajax Edit Comments v1.1.5.1.


For previous versions, please check out the previous versions of Ajax Edit Comments.

If you are using this plugin for the first time or upgrading, please be sure to test out various characters unique to your blog. This is especially for those using non-English languages. This plugin needs to also have mb_convert_encoding enabled. Version 1.13 has an option in the admin panel to disable this, but you still need to test various characters.

Installation

  1. Just unzip and upload the “wp-ajax-edit-comments” folder to your ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Customize the CSS in the ‘wp-content/plugins/wp-ajax-edit-comments/css/editComments.css’ file.

Admin Features

  • Admin and Users Panel Options
  • Can edit all comments inline in posts.
  • Can delete and mark as spam from a post.
  • Can edit inline in the Comments admin panel.
  • Can edit inline in the Akismet Spam admin subpage.
  • Can edit inline in the moderation subpage.
  • Can disable inline editing in posts.
  • Various admin options including.
    • Ability to set comment time.
    • Can enable or disable a countdown timer.
    • Can receive e-mails when a non-admin edits a comment.
    • Can enable edited comments to be checked with Akismet.
    • And more…
  • Various admin user options including.
    • Can turn off comment editing in the Admin panel.
    • Can turn off inline editing.
    • And more…
  • Absolutely no theme or file manipulation needed. Works completely out of the box.

User Features

  • Edit comments inline without page reloads.
  • Users without JavaScript disabled will see a regular comment page.
  • Has a countdown timer to show how long a comment has left to load.

Plugin Features

  • Utilizes the jQuery library.
  • Comment editing times out after 15 seconds.
  • Better error handling.
  • Graceful deletion for compatible themes.
  • A hook for other plugin authors to tap into.
  • Compatible with many plugins, including Akismet, WP Cache, Better Comments Manager, WP Grins, TinyMCEComments, and many more.

Language Features

A lot of effort has gone into translating Ajax Edit Comments into multiple languages. The following languages are available. A big “thank you” goes out to each of the translators who have contributed and/or continue to contribute a translation.

  • Available in Chinese, Danish, English, French, German, Greek, Italian, Japanese, Polish, Romanian, Russian, and Spanish.

The following pages have been created to provide a translation of Ajax Edit Comments:

If you are interested in providing a translation, please contact me (Ronald).

Usage

For admin…

Simply hover over a comment in a post and click. The comment will load, and from there you can edit the comment. If you click “Save” without editing, an error will result. This is normal since the comment hasn’t been changed.

You may also delete a comment or mark as spam from a post as well. If your theme is compatible, a short deletion animation will show showing that the deletion was successful. If your theme isn’t compatible, the deletion will be successful, but no visual clue will be shown. If the deletion or spam marking is unsuccessful, an alert box will display.

You can edit global admin options by using the Options->Ajax Edit Comments panel. If you can configure individual admin options in the Users->Ajax Edit Comments panel.

For non-admin users…

If you are a user, leave a comment. You may edit for a specified amount of time (set by admin). If your comment is in moderation and you decide to edit, your comment will disappear from the page on the next refresh. If the admin has the option enabled, your comment will be re-checked for spam.

Customization

You can adjust the appearance or color of the highlight and user messages by editing the supplied css file called “editComments.css”. This file should be in your 'wp-content/plugins/wp-ajax-edit-comments/css/' directory.

You can also customize other various options by digging through the code, but such changes are not encouraged or supported. Use the admin panels.

Special Thanks

An extra special thanks goes out to Vivien from Inspiration Bit. Without her, this plugin release wouldn’t have been possible. Brett Terpstra from Circle Six Design helped fix a rather major bug as well during testing. Thank you Brett.

Bugs/Support/Feature Requests

This plugin is provided as is, but I will try to answer most of your questions through e-mail.

If you have a bug report, feature request, or support request, please use the RAProject Support Form. You may also join and start a thread at the RA Project Google Group.

Due to the amount of inquiries, I am not able to answer every support request. Support requests with a donation will always be given top priority.

Several users have had character encoding issues. The ideal set-up for this plugin is a UTF-8 backend. Please thoroughly test various characters upon first installing this plugin to make sure everything is okay.

Another thing to note is that if you edit a comment/author details and save without changing anything, an error will result. This is not a bug. This is just WordPress being smart enough to know that nothing has changed when updating the database.

Incompatible Plugins

The following plugins cause issues with WP Ajax Edit Comments

  • The Comment Luv Plugin
  • Any plugin that posts comments via Ajax and doesn’t require a page reload. An example plugin is JQuery Ajax Comments.
  • Any plugin that loads jQuery improperly without queuing it with WordPress.
  • WP PostRatings on ISO-8859-1 blogs. Characters load and save incorrectly.
  • Google Ajax Search

Since the plugin requires JavaScript and the DOM (Document Object Model), Ajax-type posted comments will not be editable until the user makes a refresh. There are several hooks that plugin authors can use to tap into the plugin, however.

Changelog

If you are interested, click here for the changelog.