Home » WordPress » Blog article: Ajax Edit Comments 2.2 Released

Ajax Edit Comments 2.2 Released

By Ronald Huereca on Oct 4, 2008.

Ajax Edit Comments Plugin has been taken over by Ajay D’Souza. You can visit the new Ajax Edit Comment Plugin page for updates and download.

Today marks the first major release in some time for Ajax Edit Comments.

Here are some of the changes in 2.2.

  • Feature: De-link comment option for admins.
  • Feature: Ability to move comment-editing interface above or below the comment.
  • Feature/Bug Fix: Edited comments are checked against comment blacklist.
  • Feature/Bug Fix: Anonymous users can no longer edit comments that are marked as moderated.
  • Misc: JavaScript should leave less of a footprint.
  • Misc: Comment Editor is completely stand-alone. Hopefully this will resolve some conflicts.
  • Misc: Updated jQuery script to 1.2.6. *crossing fingers*

Please head over to WordPress Extend and download your own copy.

If you have any issues with the new version, please leave a comment below.

 

Random Posts

60 Comments »

  1. What’s the new De-Link option ? What does it do ? TIA.

    Comment by Matt — October 5, 2008 @ 1:30 pm

  2. @Matt,

    Say for example that a user leaves a meaningful comment, but as part of their URL leaves a questionable link. You can click “De-link” and remove the URL while still keeping the comment.

    Comment by Ronald Huereca — October 5, 2008 @ 2:38 pm

  3. @Matt,

    Here’s a better explanation from the user that requested the feature:
    http://wordpress.org/support/topic/202616?replies=3

    Comment by Ronald Huereca — October 5, 2008 @ 2:40 pm

  4. Ah it removes the author URL then, thanks a lot for the explanation Ronald.

    Comment by Matt — October 6, 2008 @ 12:52 am

  5. Ajax Edit Comments 2.2 has a problem. Users can not edit your own message. I tried to solve the problem, but do not go. How can I solve this problem? Thanks!

    Comment by cristi — October 6, 2008 @ 7:36 am

  6. When logged in as admin, edit works fine, but de-link, moderate, spam and delete point me to a url such as (http://localhost:8888/wp-content/plugins/wp-ajax-edit-comments/php/AjaxEditComments.php?action=unapprovecomment&p=272&c=35&_wpnonce=1d47df7cf7) and nothing further happens.

    Oh yeah, this is when viewing the blog and not from within the admin panel.

    Comment by Tyler — October 6, 2008 @ 12:40 pm

  7. (BUG REPORT DELETED.) Nevermind — I think the error I’m noticing relates to another plugin. Feel free to delete this comment.

    Anyway — thank you for YOUR great plugin!

    Alex

    Comment by Alex W. — October 7, 2008 @ 2:52 am

  8. Hey man, thanks for releasing a new version and continuing to improve upon the previous one. Really digging the de-link feature and the various other improvements. Gave you a write up on Performancing.com :)

    Comment by Jeffro2pt0 — October 8, 2008 @ 6:10 am

  9. After I upgeade to the new Version Editing from Frontside of Blog isn’t working anymore. The Buttons for Editing are not there.

    It seems so as the Plugin is not working after update. I have to downgrade to the old Version.

    Comment by Puh — October 10, 2008 @ 7:17 pm

  10. There is an error in 2.2 – uses this-> in php/comment-editor.php rather than the bolded code.
    Only causes a problem if you’re over-riding the css

    else
    {
    echo ‘<link rel=”stylesheet” href=”‘.get_bloginfo(‘template_directory’).$WPrapAjaxEditComments->adminOptions['editor_style_url'].’” type=”text/css” media=”screen” />’;
    }

    Comment by lprent — October 10, 2008 @ 7:38 pm

  11. Hi Ronald —

    Great plug in!! Since last rev. 2.2.1.0 I am having problems with the Ajax editor loading when I am attempting to edit from my website. I am admin. Editor works fine in Admin Panel. If I compare the url’s between the one in the comment and the one in the admin panel they point to the same file and pass identical information into the comment-editor.php.

    I wonder where I can download a copy of the previous version that was working fine. I might be able to pin point the problem by comparing the code that was changed in a File Comparison editor. I am running Firefox 3.0.3 — wondering if anyone else is having an issue that sounds similar. Previous rev worked fine. Tried different theme. No dice.

    Feel free to leave a test comment at my site to check… here is a link with a number of comments…

    http://zardozz.com/zz/2008/04/how-to-completely-uninstall-and-remove-all-traces-of-itunes.html

    ZZ

    Comment by Z.Z. Bachman — October 10, 2008 @ 9:28 pm

  12. For those willing to test, I just put out a new test version: http://downloads.wordpress.org/plugin/wp-ajax-edit-comments.2.2.2.0.zip

    It should resolve the issue that lprent mentioned as well as some others.

    @Z.Z.,

    You can find older versions here: http://wordpress.org/extend/plugins/wp-ajax-edit-comments/download/

    Any insight is much appreciated. This might help you with diff changes: http://plugins.trac.wordpress.org/browser/wp-ajax-edit-comments/trunk

    Comment by Ronald Huereca — October 11, 2008 @ 1:25 am

  13. I’m having issues editing comments with Safari on another site, I’ll test whether I can here.

    I can here, so I guess the problem is specific to the site .

    Comment by Anita — October 11, 2008 @ 12:20 pm

  14. Cool. I’ll run it through the test box later.

    I’m a bit puzzled with Anita’s problem. It seems to be something to do with her Safari and my system. But it works on my safari.. I’ll have to have a play later (good excuse to upgrade my Mac)

    The only changes I made were to override the css to reduce out some of the screen clutter and to give my avid talkers more room for their rather long comments. Political sites…

    Comment by lprent — October 11, 2008 @ 4:42 pm

  15. Thanks for your advice Ron. I found I needed to go back to ver. 2.1.2.0 in order to get the Ajax calls to load the editor in the Comments area. Also I noticed this comment Updated jQuery script to 1.2.6. crossing fingers :)

    I see that in the js folder you have 2 js files. jquery123.js and jquery.js When I open the jquery.js this appears to be ver. 1.2.6 I suppect the issue I am having is realted to the java script files. I noticed that you have BOTH the jquery123 and the 1.2.6 files in revs. newerer revisions.

    Question — are the newer plugins making calls to BOTH these jsquery files? I am up and running with no problems at all using 2.1.2.0 thanks to your kind assistance. Perhaps the info above may be a clue for you. I also checked to see if it was theme related by changing teams. Its not — definitly seems to be javascript related. Could a rename the files and fool the php code to read the jquery123 instead of the 1.2.6 to rule this out? I should have added that both the themes I tried already had Ajax based commenting. (not comment editing). Wonder if there could be a conflict with the jquery file and other plugins that are loading ??? Worst case I will stick with the present version but hate to lose out on all your new features !

    Comment by Z.Z. Bachman — October 11, 2008 @ 4:46 pm

  16. Going to try this out! :smile:

    Comment by zhrance — October 17, 2008 @ 8:29 am

  17. Just discovered today that when I try to de-link someone from the backend of WordPress or if I try to do other comment management features, I am taken to a blank page and nothing is done. Weird.

    Comment by Jeffro2pt0 — October 17, 2008 @ 9:13 am

  18. “Just discovered today that when I try to de-link someone from the backend of WordPress or if I try to do other comment management features, I am taken to a blank page and nothing is done. Weird.”

    Same here… I had to revert back to version prior to the delink addition and the jquery change. See above. I can’t pin point the problem yet. Running FF3.3 and latest WP. Lots of plugins to try to rule out.

    Comment by Z.Z. Bachman — October 17, 2008 @ 8:27 pm

  19. Guys/Gals,

    I’m having a heck of a time duplicating this error. If any of you are having the de-link or similar issues, I will need an author account on your blog to troubleshoot. Please let me know if you’re interested and I’ll send you an e-mail.

    Comment by Ronald Huereca — October 19, 2008 @ 9:13 pm

  20. I really was the lucky one this time. :wink:
    Thanks again for fixing it for me…
    Works really perfectly!

    Comment by v3rona — October 25, 2008 @ 2:32 pm

  21. @All,

    Version 2.2.5 should have resolved the JS issues. V3rona up above was very helpful in allowing me to find a fix.

    Version 2.2.6 fixes a bug with the timer that I conveniently introduced while trying to fix the other JS issues.

    Any more issues I can fix? :)

    Comment by Ronald Huereca — October 27, 2008 @ 7:45 pm

  22. Thanks for the update Ronald !

    Comment by Matt — October 28, 2008 @ 5:08 am

  23. Hi, for some reason AJAX comments doesn’t work/show for my blog.

    Here’s my website: http://aizen.the-aria.org/blog/?p=40#comment-80

    Do I need certain comment classes/IDs for this to work?

    Comment by Shinsou — October 29, 2008 @ 7:51 pm

  24. Seems to be a very useful plugin. Yes I really would like to use it, but first I wonder, if my HTML and CSS stay valid with the plugin, because otherwise I can save the installation. Appreciate your answer. :wink:

    Comment by helmeloh — November 1, 2008 @ 11:04 pm

  25. Hello Ronald,

    the plugin (2.2.6) still does not seem to work with normal users, only with the admin. Could this be a timezone related issue maybe? I am at a loss.

    Check out at http://www.dreisechzig.net/wp

    Thanks, Boris

    Comment by Boris Schneider-Johne — November 4, 2008 @ 10:17 am

  26. Ahhh! Found the problem. Apparently users can NOT edit their comments if they are in the moderation queue. Once I moderated the comment it becomes editable.
    That certainly is a change of behaviour against earlier versions. Was that intentional or is that caused by architectural changes of the plugin?

    Thanks for checking out and “Grüße aus Deutschland”,

    Boris

    Comment by Boris Schneider-Johne — November 4, 2008 @ 10:27 am

  27. I’m also having the issue, that editing is only possible from the backend. At the frontend there are no buttons or anything else. Version is 2.2.6.0 :sad:

    Going to try some older versions now!

    Comment by KRiZZi — November 11, 2008 @ 5:18 pm

  28. Finished testing. 2.1.2.0 is doing good job. 2.2.0.0 and any later version does not show any buttons at the frontend. What went wrong? :???:

    Comment by KRiZZi — November 11, 2008 @ 6:14 pm

  29. I find the new changes frustrating, and I am having problems with the buttons too. I think that I am going to stick to 2.1.2.0. Not yet a fan, but maybe I just have to get used to it . . . maybe I just don’t like change!

    Comment by Olaf Neuigkeit — November 13, 2008 @ 7:54 am

  30. Hi Roland,

    I seem to run into a problem with AEC and the excellent wpTouch plugin for iPhone users. These two generally won’t work together, possibly because of a jQuery conflict (although I don’t think that’s the problem) or possibly because the needed javascript for the AEC editor is too large for the iPhone (Mobile Safari) too handle. I was wondering how I could conditionally unload AEC for iPhone users? I am fairly familiar with removing actions and filters and I think this is the way to go (since wpTouch has its own functions.php), but I was wondering if there’s a smarter way or if you could look into getting both plugins to work together?

    Thanks for your excellent plugin and all of your hard work.

    Comment by Jean-Paul Horn — November 24, 2008 @ 7:14 pm

  31. I got major problems with Ajax Edit Comments and jQuery / lightbox.
    Lightbox uses prototype via the $ variable…so Ajax does with the jquery variable.

    I guess thats the reason:
    http://docs.jquery.com/Using_jQuery_with_Other_Libraries

    I already changed comment-editor.js and the wp-ajax-edit-comments.js – but wont work.

    Could you fix this conflict?

    Comment by Hisky — November 29, 2008 @ 12:35 pm

  32. [...] Ajax Edit Comments ist generell ein super Wordpress Plugin, mit welchem man es den Usern / Besuchern erlauben kann, dass diese Ihre Kommentare noch einige Zeit lang bearbeiten bzw. verändern können. [...]

    Pingback by jQuery Konflikt mit Lightbox / Thickbox dank prototype.js — November 30, 2008 @ 10:02 am

  33. Hello Friend ,
    First of all a lot of thanks to you.. For this very nice plugin it is just so amazing works like charm.. :smile:
    However I`m having just one problem. The timer is not displaying in my theme. I used the default theme of wordpress and it is working perfect over there. So I know this ,that the problem is not wid ur plugin and it is with my theme. So is there any help or code you could provide me to put into my theme`s comment section.
    I am using one-theme theme.
    Thanks a lot in advance :cool:

    Comment by Jai — November 30, 2008 @ 10:20 pm

  34. @Ronald
    I solved the $ bug – see here:
    http://www.hisky.de/2008/11/30/jquery-konflikt-mit-lightbox-thickbox-dank-prototypejs/

    And i got the same problem with the missing countdown ;)

    Comment by Hisky — December 1, 2008 @ 11:38 am

  35. Thanks Hisky! I think you zeroed in on the conflict problem alright! I was able to translate your page from German to English using Google Translator tool and was able to follow it pretty good. I downloaded the three files and will see if that does not help me out as well. I am still running 2.1.2.0 in order to keep using the plugin. (see previous posts of mine). I have been unsuccessful but your post may provide me a lead. I have a number of plugins running .js that could be having the same problem you had with lightbox. In fact the theme I am using had a lightbox option. Older theme Web 2.0 1.5.0 by Neil Merton that is a few years old and had Ajax Comments feature that runs ok with Ajax Edit 2.1.2.0 but not the revs that contained the changes to the new js queries.

    Thank you for your research… !!! I will let you know if I can figure this one out or not with all the .js calls I have in the plugins I have loaded. Worst case I will keep running the older rev. and test newer revisions as they come out to see if they will work with my theme because I really like this plugin !!! (or will have to a lot of work to set up a new theme !! :)

    ZZ

    Comment by Z.Z. Bachman — December 1, 2008 @ 8:24 pm

  36. Good evening!

    Just tell me if you got any problems. I invested 8 hours to find this bug / problem. Should be no problem to translate my instructions into english ;)

    If AEC runs in your ADMIN but not outside its a jquery.js conflict. (thats how the status was in my blog before finding a solution)

    Comment by Hisky — December 2, 2008 @ 2:40 pm

  37. Hello all,
    Friends I am using this plugin as well. But then I used php speedy to compress,gzip and add future expire header to my javascripts on my website.Which really helped me increase my website speed.
    But since then this plugin has not been working.
    There is a option to ignore certain scripts in php speedy but I do not know which scripts I should ignore so that the plugin works.
    Right now when I click on a edit option , instead of popping up of comment box to edit .It takes me to another page . From there I can only edit but not save or go back to the website.
    Here is the image of box , that takes you to the next page when u click edit.
    http://img124.imageshack.us/my.php?image=editcommentboxkj9.gif
    Thx to all :D

    @Hisky : Friend I would really appreciate if you could pls convert that to english.And tell us a simple procedure to follow :D . I too have a problem the timer doesn`t show up. Would be great greate help on your part.
    Thanx to ya :)

    Comment by Jai — December 2, 2008 @ 10:47 pm

  38. Jai…

    Try this if you need a translation right away http://translate.google.com/translate_t?hl=en

    Just enter in Hinsk’s page url and select German to whatever language you want to convert it to. Google Translate tool… I used it the other day and you will get very good translation for an automated tool! It should help if you need the translation right away.

    ZZ

    Comment by Z.Z. Bachman — December 3, 2008 @ 10:22 am

  39. @Jai
    Maybe you should view my page through an translator. I got a sniff and headache.
    Download my three files and load them onto your server. (but make a backup of your files before!!!)

    * comment-editor.js Plugins => Ajax Edit Comments => js
    * wp-ajax-edit-comments.js Plugins => Ajax Edit Comments => js
    * jQuery.js is in wp-includes/js/jquery

    Comment by Hisky — December 3, 2008 @ 2:01 pm

  40. @Hisky: I tried your solution last night… working fine, thank you very much!

    Comment by KRiZZi — December 3, 2008 @ 2:11 pm

  41. Thx to all :)
    I had translated the page .
    However I am using the plugin only in my backend now becoz my theme is a bit heavy and am on a shared host.
    So I have to optimize my website for greater performance hence as of now I m not using it in my frontend.
    Would be releasing my site soon :-) and wud inform all ya guys here :P
    Thx for all the support friends.. :)

    Comment by Jai — December 4, 2008 @ 11:02 pm

  42. edit test :smile:

    Comment by test — December 18, 2008 @ 1:04 pm

  43. I am having a bit of trouble. I am using the plugin – “Paged Comments”, which I need, but I tried using your plugin as well, and it wont work with it. The plugin is from http://www.keyvan.net/code/paged-comments/ and I was wondering if you had any tips on getting it to work, as I would love to have both of these activated, and I really need both of them. If you have any suggestions at all, please let me know.

    Comment by Jim — December 24, 2008 @ 1:31 pm

  44. I found one more thing…. the paged-comment plugin is the default one that takes over the form for filling out a comment. I can fill out the form, and after I get the comment published, I see the ajax edit comment plugins menu for – “Editing, Modifying Spam, and Delete”, HOWEVER, after I got really happy, I tried clicking on one of these, and it gives me a 404 error for all of these. The link I find afterwards is – http://www.site-name.com/wp-content/plugins/wp-ajax-edit-comments/php/AjaxEditComments.php?action=unapprovecomment&p=21&c=91&_wpnonce=0ddf1f7f32 – and this is for all of the options. I am getting there however :) , now… do you have any idea how to get around this issue? I am looking over the paged-comment php file, and am hoping to see something that would make sense. Do you have any suggestinons for me to try, any code to copy from that plugin to yours, or from yours to that one? I am all ears, please let me know….

    Comment by Jim — December 24, 2008 @ 6:17 pm

  45. Hi Jim,

    see http://www.sotel.de/blog – im running Ajax Edit Comments and paged comments..without any problems.

    I would say you should try to change the comments.php from you theme to paged-comments.php
    Dont use the default pagend-comments.php

    Test my comapny blog…works fine if you make everything right :)

    Cheers
    Heiko

    Comment by Hisky — December 25, 2008 @ 3:51 am

  46. Thank you very much for your reply. Good that I found you. I will try that right now and be back if it works successfully. Thank you very much for your help.

    Comment by Jim — December 25, 2008 @ 4:03 pm

  47. Feature: Anonymous users can no longer edit comments that are marked as moderated.

    Sorry, but that is no Feature it is a Bug!

    Now NO COMMENT IN MODERATION could be edited by a user. I have installed the old Version 2.1.2.0 what works without any Problem.

    THE ONE AND ONLY THING that this Plugin should do is to let the user edit their comments, and what you now do? You give us the new FEATURE that this dont work any more while the Comment is moderated?

    WHY?

    PLEASE fix that BUG – I don’t want such a Feature! I want that my users can edit their comments. Why I can’t turn this feature off in the Options of the Plugin?

    Comment by Puh — December 28, 2008 @ 7:24 am

  48. @Hisky

    Your site works perfectly, however, I tried your advice and it did not show up. I also have “Ajax Comments-Reply” that I tried, and this one showed up, but it did not work. I have been having errors with wordpress for a while now, along with my co-author, but we cannot figure out whats wrong – wordpress.org/support/topic/227655 so I am not sure if that has something to do with the error.

    I tried changing comments.php to paged-comments-config.php, paged-comments.php, comments-paged.php and even copying the code out of paged-comments.php into comments.php, but it just does not work. If I chage the name into something else, would that mess up how wordpress works? Would it still be able to find the comments php code it needs to load? Its driving me insane, but thank you very much for your help :neutral: .

    Comment by Jim — January 3, 2009 @ 7:04 pm

  49. Please deactivate paged comments – does Ajax edit comments still not work?
    Whats the name of your site?

    Do you use something like Lightbox or Greybox? This might cause an jquery conflict.

    Comment by Hisky — January 3, 2009 @ 8:14 pm

  50. Yeah I just tried disabling all plugins, but that did not work. I get the edit comments options, which is good, but if I try to click on any of the options, it takes me to a 404 page…. it doesn’t allow any of the options to work….

    Comment by Jim — January 4, 2009 @ 9:20 pm

  51. One other thing I forgot to mention. I did edit my .htaccess for security. Do you think that would be a problem? It could be blocking something?

    Comment by Jim — January 4, 2009 @ 9:40 pm

  52. New update, I tried using this plugin on my other blog. The other blog is on the same server, but I upgraded it to 2.7, I activated the plugin, and I got the same issue, it showed the options to edit the comment, but after its clicked on, it takes me to a 404 page…..

    Comment by Jim — January 5, 2009 @ 12:53 pm

  53. EUREKA I have solved the issue. The thing WAS with .htaccess, I set it up badly and it blocked almost everything. As soon as I deleted the .htaccess from the wp-content and wp-includes, I had the whole thing working, now I just need to set up the .htaccess to work properly. Thank you very much for all of your help, as soon as I am able, I will have to give you a generous $tip for all of your help. Thank you very much.

    Comment by Jim — January 5, 2009 @ 2:01 pm

  54. Argh. Too late. I would have bet on the htaccess ;)

    You need only one htaccess as much as i know!?

    Comment by Hisky — January 5, 2009 @ 3:44 pm

  55. :mrgreen: Yeah I put one in wp-includes and wp-content for security so no one messes around, and I guess that blocked the files from being processed but the one in wp-admin is different but it works,. Stranger thing is that I had this set up like this for a while now, and it worked before, all of a sudden nothing worked from the admin site, I could make changes but the ajax and other features were not allowed. In case someone else comes across this, this is what I had -
    For wp-includes:
    Order Allow,Deny
    Deny from all

    Allow from all

    For wp-content:
    Order Allow,Deny
    Deny from all

    Allow from all

    Thank you very much for your help, you are a life saver

    Comment by Jim — January 6, 2009 @ 12:19 pm

  56. Nooo, it wont let me put in any code. Ok, here is what I had
    For wp-includes:
    Order Allow,Deny
    Deny from all
    Files ~ .(css|jpe?g|png|gif|js)$
    Files ~ .(/themes/)$
    Allow from all
    /Files>

    For wp-content:
    Order Allow,Deny
    Deny from all
    Files ~ \.(css|jpe?g|png|gif|js)$
    Allow from all
    /Files>

    Comment by Jim — January 6, 2009 @ 12:25 pm

  57. Counter option doesn’t work for some reason. Any ideas?

    Comment by B — January 10, 2009 @ 6:02 pm

  58. Same Problem here. I get this error via Firebug and NO counter. Seems like command is undefined!?

    initialize()(undefined, undefined)prototyp…s?ver=1.6 (Linie 554)
    klass()prototyp…s?ver=1.6 (Linie 48)
    prepareReplacement()(undefined)prototyp…s?ver=1.6 (Linie 539)
    gsub()(undefined, undefined)prototyp…s?ver=1.6 (Linie 337)
    param()(Object action=gettimeleft cid=5073 pid=1235)jquery.j…ver=1.2.6 (Linie 2967)
    ajax()(Object element=edit-5073 response=ajax-response cid=5073)jquery.j…ver=1.2.6 (Linie 2614)
    get_time_left()()wp-ajax-…s?ver=2.3 (Linie 93)
    each()(Object length=1, function(), undefined)jquery.j…ver=1.2.6 (Linie 750)
    each()(function(), undefined)jquery.j…ver=1.2.6 (Linie 135)
    get_time_left()wp-ajax-…s?ver=2.3 (Linie 70)
    initialize_links()wp-ajax-…s?ver=2.3 (Linie 66)
    delink()()wp-ajax-…s?ver=2.3 (Linie 26)
    (?)()()wp-ajax-…s?ver=2.3 (Linie 261)
    to the wait list jQuery.readyList.push()()jquery.j…ver=1.2.6 (Linie 2307)
    (?)()()jquery.j…ver=1.2.6 (Linie 2327)
    each()(function () { return fn.call(this, jQuery); },function () { return fn.call(this, jQuery); }, function(), undefined)jquery.j…ver=1.2.6 (Linie 750)
    ready()()jquery.j…ver=1.2.6 (Linie 2326)
    [Break on this error] this.template = template.toString();

    Comment by Hisky — January 11, 2009 @ 12:44 pm

  59. Thanks for the comments all.

    Ajax Edit Comments is no longer going to be updated by me unless otherwise noted.

    A new developer has offered to help with updates. I will keep you all posted here on any further changes.

    Comment by Ronald Huereca — February 3, 2009 @ 8:00 pm

  60. thanks for this useful plugin. will try this and let you know the comments

    Comment by Annie — November 12, 2009 @ 2:44 am

RSS feed for comments on this post. TrackBack URL

Leave a comment