I have recently added the CommentLuv plugin to my site as reported here. I looked for a good antispam plugin as a companion, as the free ‘DoFollow‘ backlinks that CommentLuv enables are sure to attract spammers. I found Antispam Bee and was quite satisfied with its functionality. I had to discover though, that these plugins don’t work side by side straight out of the box.
How do I know that I have the same problem?
When both of these plugins are active on your installation, CommentLuv shows the following unwanted behaviour:
- When you fill out the comment form, the CommentLuv option below the comment entry field does not activate automatically.
- When you click on the small arrow next to the last post, the list of posts that shows up is not correctly formatted.
How do I correct this behaviour?
First, you need to find out what the name of Antispam Bee‘s
textarea field is. You see, Antispam Bee duplicates the standard
textarea field, hides it, and shows its own copy to the user. Spam bots get caught in the original
textarea field, while human commenters use the duplicate field that is shown. The original
textarea field is called ‘
comment‘, while the duplicated
textarea field includes a random number, in my case ‘
96636-comment‘. This changes for every installation, so you have to find out what it is called on your installation first. Then you change CommentLuv‘s settings so that it addresses the correct
textarea field inside of its scripts.
Here’s the complete procedure step by step:
- Drag the following bookmarklet (what is a bookmarklet?) into your bookmarks:
MouseOver DOM Inspector v2You can find out more about this bookmarklet here.
Note to advanced users: Yes, you can simply use ‘
Identify Element‘ in Google Chrome or something similar. The method I show here should be somewhat browser-agnostic.
- Go to a page of your site that include’s a comment form and click on the bookmark you just created.
- A floating box should appear that displays information about the specific website element that your mouse is currently over.
- Hover over the comment entry field and you should see, amongst others, a property
namefollowed by the actual name of your
textareafield. Remember this name and then press
Escapeto close the floating box.
- Inside your WordPress dashboard, go to
- At the end of the settings screen, open the
- Enter the real
textareafield name that you found out in one of the previous steps into the field labeled ‘
Comment Text Area name‘.
- Click on the ‘
Save Settings‘ button.
You’re done. Depending on your caching plugins and settings, you need to purge your caches to forward these changes to your visitors. Everything should now work as expected.