Page 1 of 1

Plugin request: character count limit on comments

Posted: Wed Feb 11, 2009 5:39 pm
by dvotaw
Hi,

Client asked me to put up a blog for him. I chose Serendipity and I like it a lot. But Client is very well known in this city and is concerned that people will post really long comments to his blog entries. He's asked for a 1000-character limit to be enforced on comments. Ideally there would be some sort of counter that increments as people type but at a minimum he wants it to refuse to post and display an error message like "Sorry, your post is too long. Please trim it down to 1000 characters or less."

I have looked and can't find any plugins that offer this capability. Any ideas? BTW I am sort of a mid-level PHP programmer and can do some things!

Re: Plugin request: character count limit on comments

Posted: Thu Feb 12, 2009 10:56 am
by garvinhicking
Hi!

There's no functionality for this yet. You could create an event plugin listening on the frontend_comment and frontend_saveComment hook that does the checking for you.

Have a look at other comment-modifying plugins like serendipity_event_livecomment.

Regards,
Garvin