PDA

View Full Version : limited char in post


Nam
11-13-2001, 10:19 PM
Is there a way to eliminate post whores? Like limit the char input to 20 or something? I don't know if I've asked this before, but I've seen UBB has this function.

Palmer ofShinra
11-14-2001, 09:04 AM
You mean make it so that they can't have more than a certain number of characters in their posts?

That's built into vB already.

Nam
11-14-2001, 09:35 AM
sorry for not clear, I want the other way around, no less than 20, NOT no more than...

For instance, built in that no more than 10000 char as default, now I want the post that 20 < post <10000

T?Pau
02-03-2002, 09:41 PM
To set a minimum character limit into the users post, just open newpost.php and newthread.php

find:

if (strlen($message)>$postmaxchars and $postmaxchars!=0) {
eval("standarderror(\"".gettemplate("error_toolong")."\");");
}


directly after that, insert the following:

if (strlen($message)<20) {
eval("standarderror(\"".gettemplate("error_tooshort")."\");");
}

Then go to your Admin cp and create a new Template called error_tooshort
and insert:

Your Message is too short.
Please write at least 20 characters.


You are done. Change the minimum characters (20) to your needs. :)