Did you ever find a solution for that? I just looked through the plug-ins, and couldn’t find anything. The only thing I can think of is changing the length of the field in the database itself, but that’s probably a very messy option.
I found this solution:
http://wordpress.org/support/topic/66084
I implemented and tested it, and it worked very well. Or so I thought. Just today, I received a comment which was longer than what I had set as the maximum length. Luckily, all my comments are held in moderation, but it drove me a little crazy.
It turns out the code only works if javascript is enabled in the commenter’s web browser.
I suspect there should be a way around it with code that:
1. detects whether the browser supports javascript
a. if java enabled, uses the java version of the comment box
b. if java is not enabled, uses a text box with a set length size.
My blog doesn’t get too many comments (just the occasional very long one), so I probably won’t get around to trying to write that code for a while.
Does anyone else want to give it a shot in the meantime?
(@ehehrmann)
18 years, 8 months ago
How can I set a character limit to the comment form so that visitors can only post let’s say 400 characters?
Thanks for helping!