Quote:
Yesterday at 03:37 PM Hobbes said this in Post #118
question!!!
I was wondering if I could have a minimum amount of posts needed before you can use the forum. and if you dont have the number of posts, they get a message saying so....
possible? and how?
|
Easy.
In form1.php (whatever you have called it) find:
PHP Code:
if ($action=="submit") {
Underneath, add:
PHP Code:
$allowform = 100;
if ($bbuserinfo[posts] < $allowform) {
eval("standarderror(\"".gettemplate("error_notenoughpostsform")."\");");
exit;
}
Change 100 to whatever you like.
Then, ADD a new template called "error_notenoughpostsform".
with the contents:
Code:
You need a postcount of at least $allowform in order to send a form.
Done!