
01-20-2003, 07:59 PM
|
|
|
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally posted by Xenon
ahh, i see, well here we go 
PHP Code:
$threads=$DB_site->query_first("SELECT COUNT(*) as counter FROM thread WHERE postuserid=$bbuserinfo[userid] AND forumid IN(13, 17, 19, 20, 26, 27, 33, 34, 44, 45, 51, 52, 58, 59)");
if(in_array($threadinfo[forumid],array(13, 17, 19, 20, 26, 27, 33, 34, 44, 45, 51, 52, 58, 59 )) and $threads[counter]<5) show_nopermission();
put this into newreply.php dircetly after:
PHP Code:
if (!$threadinfo[visible]) {
$idname="thread";
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
}
if (!$threadinfo[open]) {
if (!ismoderator($threadinfo[forumid],"canopenclose")) {
eval("standardredirect(\"".gettemplate("redirect_threadclosed")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");");
exit;
}
}
|
This shows how many posts are needed until the user can reply to certain threads.
How do we make it that you need on AVERAGE of a certain amount of posts per MONTH (30 days = 720 hours).
I would love to see this. I hope Xenon or someone else can help me out. thanks.
|