There are many comment-related plugins in WordPress plugin directory. However, if you’d like to find just a simple, reliable comment-posting Ajax plugin, you won’t find any. That’s why I developed a simple and small yet functional Ajax Comment Posting (ACP) plugin. Not only will it post your comment without refreshing the page, but it will also make sure that you’ve filled all the form fields correctly.
As the new Google Analytics code conflicted with the plugin, a built-in support for GA has been added. Read the FAQ for more information.
ACP should work with all CAPTCHA word-verification plugins, but I personally suggest using Akismet.
HUGE thanks to Aen Tan for solving a WP 2.3.1 bug, correcting my mistakes and preventing the plugin from conflicting with Prototype.
- Why isn’t my plugin working or it works differently than it should?
It’s probably your WordPress theme’s fault. ACP needs several things to be present in your comments.php file (in the theme’s default directory). The submit button has to have a
submitid, the comment form has to have a
commentformid, the container with the comments has to have a
Most WordPress themes meet these requirements. If yours doesn’t – either correct it by yourself or let me know.
Also, another cause of the plugin dysfunctioning may be Google Analytics. See the next question.
- Does it work with Google Analytics?
- Why doesn’t the plugin work with WP Ajax Edit Comments?
ACP works well with the WP AJAX Edit Comments plugin up to version 2.1, allowing you to edit and manage comments in an Ajax way, and the users to edit their own comments for a specified amount of time.
- How can I customise the look of the error and success messages?
You can either change the
acp.cssfile in the plugin’s directory, or just delete the file and add
successclasses to your CSS stylesheet.
- The loading icon doesn’t show. What can I do?
You can manually set the direct path to the loading image in the
acp.jsfile (line 23).
- How can I change or remove the loading icon?
The loading icon is the file
loading.gifinside ACP’s directory. If you want to remove the icon, just delete the icon image file and you’ll get a ‘Loading…’ message instead. Also, you can edit the
acp.jsfile (line 23).
- I don’t want the email address field to be validated. How do I do that?
Just delete or comment the lines 51-60 in the
- How does the plugin work?
- Can you help me with it?
Yes, but you may need to wait some time for my response. You can always use the support forums here on WordPress.org.
In case of a bug report or help request, please include your comments.php file from your theme’s directory as an attachment to the email / message, and explain your problem thoroughly giving all needed details: your WordPress and ACP version, other Ajax-based plugins you are using, etc.