Limit the Length of Comments Left on Your Blog with this Plugin
This new WordPress plugin provides a configurable limit on the length of comments left in the comment form, with a character countdown displayed for the user and dynamically updated with each keypress.

NOTE: This article was originally published on the Psychology, Philosophy and Real Life blog and was later moved here to GregsPlugins.com.
When this plugin was originally released, the full contents of the 'README' file were provided here in this article. Since the contents of the 'README' file evolve over time, I have now removed the original version but have kept this stub posting so as to preserve the comments which were made at the time.
IMPORTANT UPDATE: This plugin now has a newer version! For information on subsequent releases, please see the update announcements here:
- Version 1.1: “New Version of Comment Length Plugin Adds Anti-Spam Features”
- Version 1.2: “WordPress Comment Length Limiter Plugin Updated”
- Version 1.3: (no separate announcement)
- Version 1.4: “WordPress Plugins Get Performance Boost”
41 Responses (13 Discussion Threads) to “Introducing Greg’s Comment Length Limiter Plugin for WordPress”
-
Neil Prestemon
11Well, it’s not working for me; I’m using a modified version of “Generic Design” template. The box appears, my limit of 1000 is in there, but there’s no response.
I inserted the code and I get the following printed INSIDE my comment box:
onkeydown=”gcllCounter(this)” onkeyup=”gcllCounter(this)”My comment form’s name is “comment” and so is the id. When I tried to change it to “commentform” – suddenly, it would no longer submit the post. The button would press and nothing.
So I guess my question is: is there somewhere else I need to change “comment” to “commentform” so that changing this name does not break my submission?
-
Neil Prestemon
12I see what I did wrong. There was an extra closing tag, and I deleted it, but that should have been my clue that I wanted to get rid of the closing tag from the <textarea parameters – I did that, and I added a name parameter to the form. That did the trick.
I couldn’t send you a url for the site yet, because it’s still in development, and not yet public. We haven’t assigned a public address to it yet; but this plugin feature is very handy – I’m demoing it to my customer so they can see if they want to use it.
-
13
Hi there! It worked fine with WP 2.8.4 and Arclite 1.5.4 theme. Yes, I had to modify theme’s comments.php. The only problem – in WP admin “Plugins” has a red circle with number “1″ in it righ after activation of the plugin. And plugin’s setting are not available – it only shows small “tools” icon
-
Hector
14I’ve used your plugin in my site…. work fine, but never display the counter diminishing the characters while I am writing.
I see that in your site the counter is diminishing in real time the “characters available”, What can i do for work this feature?
Thanks for your quick assistance.
-
15
Greg… sounds like a great plugin, and exactly what I need (I’ve got a couple of loyal readers who are wonderful, but are fond of 1000+ word comments. !!) But… I’m not a guy who’s comfortable with code, and can’t get the plugin to work.
I’m using Vladimir Prelovac’s Amazing Grace theme. I have no idea of how to find whether or not the comment form has the name attribute “commentform”. (I’ve looked through comment.php but can’t find it.) I inserted the code into the appropriate line, but it doesn’t seem to work.
aaaarrrggghhhh! I may need counseling after all of this! ;-) Can you help??
Thanks in advance…
Kevin
-
16
Greg,
Thanks for your response. Good news/bad news: I’ve gone back and tried several things… the plugin seems to work ok at present, except the countdown “character counter” is there, but doesn’t count down. (As I type this, your counter is functioning normally.)
I tried pasting a 900+ word document as a comment, and when I submitted it, the plugin truncated it, per the settings I’d opted for. So it works (I think), but the counter isn’t.
Any thoughts?
Thanks for your time and help!
Kevin
-
17
[...] last bit brings me to my blog-update related news. I added a new plugin tonight, “Greg’s Comment Length Limiter” which pretty much does exactly what it says. When I’m quickly perusing the spam folder [...]
-
18
I finally got it to work. If you know nothing at all about XHTML, you may struggle a bit. I found this article to be of help: http://is.gd/4wyxX

« Older Comments