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;
}
}
|
Ok one more thing. Lol. I am sorry to ask for something else but I was just wondering.
What you did to help me out is that you need a certain amount of new threads before you can reply in those threads.
How would I go about doing something like you need 5 new threads in the forum IDS above in order to post NEW THREADS in forumid's of 21, 28, 35, 46, 53, 61
That would be the greatest. What do ya think ya can do? Tanks for everything Xenon.