WP Ajax Edit Comments

  

Ajax Edit Comments now has a new home.

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?

For a demonstration, please check out the videos below:

Demo

Several demo videos can be found here.

Download

Please download the file Ajax Edit Comments.


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.

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, 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).

Screenshots

Comment Editing – Admins

Admin Hovering Over a Comment
A comment the admin’s cursor is hovering over.

An Editable Comment
A comment that can be edited.

An Author Can Be Edited
You can also edit author details

Delete Dialog
You can delete and mark comments as spam from a post.

A deleted comment
A deleted comment. Sorry Mark, you had it coming. :)

Comment Editing – Users

A User’s Perspective When Editing a Comment
User’s can edit their own comments for a time specified by admin.

Admin Panel

Ajax Edit Comments Admin Panel
The Admin panel. Click the image for a larger view.

User’s Panel

Ajax Edit Comments User’s Panel
A user’s panel where other admins can adjust settings. Click the image for a larger view.

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.

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.

If This Plugin Helped You Out…

Please subscribe to our feed and help spread the world about the Reader Appreciation Project.

Bugs/Support/Feature Requests

This plugin is provided as is, but I will try to answer most of your questions in the comments. Please open up a support ticket in the WordPress Support Forums and comment here with a link to the thread.

Several users have had character encoding issues. Ideally all blogs and backends would be in UTF-8. With v1.1.1.0, hopefully all character issues have been resolved, but this may be a little unrealistic. I will try to help people out on a case-by-case basis for non-UTF-8 blogs, but having a character encoding different from UTF-8 seems to cause a lot of issues. If you do install this plugin on a non-UTF-8 blog, make sure to throughly test out the plugin on various characters.

I’ve had reports that this plugin will not work with PHP 4.3.7 or the Konqueror web browser. I am currently not able to test the plugin using that PHP version or the web browser. If anybody has access to test and can offer suggestions as to what might be wrong, it would be much appreciated.

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. Future versions may allow hooks for other plugin authors to tap into, but this plugin is so early in its release that this isn’t a possibility quite yet. For now, those that allow Ajax-type posted comments will only allow the comments to be edited as admin.

Change log

  • v1.1.4.3 Released on 02/08/2008
    • Bug fix: Certain characters were getting stripped out. Notably the “+”character.
    • Bug fix: Some admin couldn’t edit. Permissions were revised.
    • Greek language was added. Thanks Alexander Kanakaris
  • v1.1.4 Released on 01/19/2008
    • Bug fix: Added mb_convert_encoding detection. This should resolve the error messages several have received. Please be sure to test characters thoroughly.
    • Bug fix: Round trip area when adding HTML to comments.
    • Bug fix: Caching issue when saving the comment to the database.
    • Bug fix: Logged in users could see the Edit links.
    • Feature Addition: Admin can de-spam comments in Akismet sub-panel without a form submission.
    • Language Updates: Updated French, German, Italian, Japanese, Polish, Romanian, and Russian files. More to come.
  • v1.1.3 Released on 01/06/2008
    • Added option to disable mb_convert_encoding in the admin panel. This was due to the numerous hosts that do not have this installed. Users should use caution and test various characters.
    • Fixed an DIV tag that was closed improper (Thanks Xeno Philia).
  • v1.1.2.5 Released on 12/15/2007
    • Added page detection for incompatibility issues with the Navigation List plugin.
  • v1.1.2.1 Released on 11/27/2007
    • Added Italian Language file. Thanks Piplos
    • Added Russian Language file. Thanks Sergey.
  • v1.1.2 Released on 11/12/2007
    • Re-wrote char handling. Please be sure to test this plugin thoroughly on various characters if using unique characters on your blog.
    • Added French language file. Thanks Lise.
    • Added Polish language file. Thanks Maclej
  • v1.1.1.4 Released on 10/29/2007
  • v1.1.1.3 Released on 10/20/2007
    • Added updated German and Spanish language files. Thanks iKArus and Adrián
  • v1.1.1.2 Released on 08/18/2007
    • Bug fix. Admin were able to edit, but non-admin couldn’t. This was caused by having WordPress installed in a sub-domain and/or subdirectory and dealt with domain and path issues regarding cookies. Thanks Pelf.
    • Bug fix. Fixed more charset issues. Chinese characters were being interpreted incorrectly in UTF-8. Thanks Johnson.Wang.
  • v1.1.1.0 Released on 08/10/2007
    • Bug fix. Admin were able to edit, but non-admin couldn’t. This was caused by the timer offset in the WordPress admin panel. Thanks Mo.
    • Bug fix. MySQL errors resulted in the comment unable to save. This was caused my blogs and MySQL database not in UTF-8. Thanks Louis.
    • Bug fix. Some characters were being screwed up when saving to the WordPress database. This issue was caused by non-UTF-8 back-ends. Thanks David.
    • Bug fix. The blog would be inoperable in Internet Explorer due to multiple session headings being called. Thanks Matt.
  • v1.1.0.6 Release Updated on 07/22/2007
    • Added German language file (Thanks David).
  • v1.1.0.6 Released on 07/14/2007
    • Admin can now delete security keys stored in custom fields table.
    • A language file is now included that can be translated. Chinese is currently available in the official version (Thanks Nicky).
  • v1.1.0.1 Released on 06/08/2007
    • Complete JavaScript overhaul. Ported over to jQuery.
    • Admin can now disable inline edits.
    • Numerous CSS and plugin bug fixes.
    • Improved security.
    • Numerous admin and user-panel additions.
    • Added timer for non-admin users.
    • Better error handling and error correction.
    • Timeout feature when editing the comment.
    • Edited comments are re-checked for spam if Akismet is installed.
    • Admin can now edit, delete, and mark as spam from a post.
    • And lots more…
    • Thank you to the testers: Ben, Bes, Gene, Helen, Scott, Simonne, and Vivien. If I missed you, please let me know about it.
  • v1.065 Released on 05/23/2007
    • Plugged a hole in a somewhat major security exploit. Please upgrade to this version ASAP. (Thanks Frédéric)
  • v1.061 Released on 04/18/2007
    • Slight bug fix. Turning off comments in the Admin panel turned off comments for Admin on regular posts. This issue has been resolved.
  • v1.06 Released on 04/16/2007
    • Plugin now allows comment editing in the Admin panel. This can be turned off in Users -> Ajax Edit Comments (Thanks Bes).
  • v1.042 Released on 04/14/2007
    • Fixed minor issue with page validation. (Thanks John and Nicky.)
  • v1.041 Released on 04/13/2007
    • Made plugin compatible with WP-Cache (Thanks Patrick)
    • Fixed ampersand issue.
    • Fixed contraction bug. (Thanks Kirk and Luis)
  • v1.021 Released on 04/07/2007
    • Allowed comment editing on pages.
  • v1.02 Released on 04/07/2007
    • Fixed a bug where the plugin wouldn’t work if the blog URL and the install URL weren’t the same. (Thanks Ben).
  • v1.01 Released on 04/06/2007
    • Fixed character encoding bugs. (Thanks Koz)
    • Made an error result when a comment or author is empty. (Thanks Vivien)
  • v1.00 Released on 04/05/2007

Other RA Project Articles



If you like this article, please consider signing up for RA Project Daily Updates via email or directly to the RA Project RSS Feed http://feeds.feedburner.com/RAproject. Thank you!






450 Comments on “WP Ajax Edit Comments” - Add yours!

  1. nice plugin

  2. Nice plug-in. Although the newer versions of wordpress has built-in capability to edit the comments.

  3. Thanks for this new version.
    I cannot update the translation into French. If I use “update from the source”, Poedit “freezes”. I tried with the ajaxEdit-de_DE.po file, but I cannot open it, I have the message “Failed to convert file to unicode”

  4. Thanks for your job, is bautifull. But whether this burdensome load on the page :smile:

  5. testing this stuff … does it work?

  6. Cool plugin, sounds like it would be useful for us bloggers that use WordPress.

  7. Plugin sounds great but it’s been out of development for a while so not sure if it works on current version of wp. But th test here looks promising. Hmm – impressive – great work.

  8. Very useful plugin. Thanks for sharing

  9. imjustcreative You mdwadaight want to look into this plugin: http://tinyurl.com/WPeditcmmts

    11.onion_papa – 22. May, 2010

    http://tinyurl.com/34dpmv
    WP Ajax Edit Comments | The Reader Appreciation

  10. ??? ?????????? ????? ???????!? ???-?? ?? ????? ?? ???????

  11. ???????? ???? ?? ???????, ????? ???? ????? ??????????? ? ??? ?? ??? ???????? ???????? ???

  12. This good quality of information for my site. I use AJAX all the time.

  13. ?????????? ????????, ?? ? ?? ??????????? ?????? ?????????? ??????? ????? ?? ???????????, ??? ????? ????? ??????

  14. WP Ajax Edit Comments | The Reader Appreciation Project http://bit.ly/3VFI6Z wordpress

  15. ??????????? ?????????????? ?????? ??????? ???. ???????????, ????????, ???????, ????????, ?????????, ?????? ? ?????? ??????????? ????????? ??????????? ? ?????????? ??????? ?????????? ???????.

  16. Tetstttttttttttttttt

  17. ? ??????, ??? ?? ?? ?????. ??????? ??????? ???. ?????? ??? ? PM, ?????????.
    ??????? ?? ?????? ? ???? ???????, ??? ?????, ??? ?????…
    ? ????
    ? ?????, ??? ?? ?????????? ??????. ????????? ??? ????????. ?????? ??? ? PM.
    ??? ?????

  18. wow, Cool plugin, sounds like it would be useful for us bloggers that use WordPress.

  19. ? ? ???? ????????? ??????.
    ???????????. ??? ???? ????????? ??????.
    ???? ????? ?????? ?????????? :) , ??? ????? ???????? .
    ??, ??????? ???? ??????!
    ????????? ???????? ???? ??????. ? ?????, ??? ??? ???????? ????.

  20. Wow… Great Plugins. I Like it.

  21. ??? ?? ??? ??????
    ?????? ????????. ???? ?????????, ????? ??????? ? ??????????. ? ????, ??? ?????? ?? ?????? ?????? ? ??????????? ??????.
    ?????? ?????????
    ????????, ??? ???????? ?????
    ????? ???? ??????, ??-?????, ??? ????????. ? ?? ????? ???????? ?? ??? ????.

  22. Is this plugin compatible with the latest version of wp?

Trackbacks/Pingbacks

  1. I sam U » 更新两个插件 - 21. Apr, 2007

    [...] AJAX Edit Comments 2, [...]

  2. Pinsen’s blog » 博客文章 » 新增插件Ajax Edit Comments - 21. Apr, 2007

    [...] 下载链接:http://www.raproject.com/wordpress/wp-ajax-edit-comments/ [...]

  3. 我爱水煮鱼 » Ajax Edit Comments - 21. Apr, 2007

    [...] 插件页面: http://www.raproject.com/wordpress/wp-ajax-edit-comments/ [...]

  4. APAD: Ajax Edit Comments | Wordpress info - 22. Apr, 2007

    [...] http://www.raproject.com/wordpress/wp-ajax-edit-comments/ [...]

  5. Pascal Van Hecke - 30. May, 2007

    WP Ajax Edit Comments (WordPress plugin): "allows users and admins alike to edit comments on .. http://tinyurl.com/34dpmv

  6. allenskd - 01. Jun, 2009

    RT @BesZ WP Ajax Edit Comments | The Reader Appreciation Project http://bit.ly/BvVng (via @tweetmeme)

  7. Delicious Over 50 - 02. Aug, 2009

    WP Ajax Edit Comments | The Reader Appreciation Project http://bit.ly/3VFI6Z wordpress

  8. Luiz Ded - 20. Oct, 2009

    #plungin para #wordpress. http://bit.ly/XdNtK

  9. Robert K. Swartz - 18. Jan, 2010

    RT @BesZ WP Ajax Edit Comments | The Reader Appreciation Project http://bit.ly/BvVng

  10. Taylor McRae - 22. May, 2010

    @imjustcreative You might want to look into this plugin: http://tinyurl.com/WPeditcmmts

  11. onion_papa - 22. May, 2010

    http://tinyurl.com/34dpmv
    WP Ajax Edit Comments | The Reader Appreciation Project(RAPROJECT.COM)

Leave a comment

Please include your real name or nickname, along with your business name if you wish, in the "Name" box above. If you use only keywords in your name, a random name will be assigned to your comment.