Please tell me, if you can, if this is right...
Code:
// ############################### start limit threads hack ###############################
// Cant post more than X threads in the last Y hours
// User cant post before this time expires:
$cantposthour=48;
// User cant post if he has more than X threads in the allowed time:
$allowedthreadcount=1;
if ($bbuserinfo[usergroupid]!=11)
{
$cantpostsqltime= mktime (date("H")-$cantposthour, date("i"), date("s"), date("m"), date("d"), date("Y"));
$tcinforum_db=$DB_site->query_first("SELECT count(*) as count FROM thread WHERE postuserid=$bbuserinfo[userid] AND dateline>$cantpostsqltime AND forumid=$forumid");
// User new thread count in the last X hours
$bbuserinfo[tcinforum]=$tcinforum_db['count'];
if ($bbuserinfo[tcinforum]>=$allowedthreadcount AND ($bbuserinfo[usergroupid]!=11))
{
eval("standarderror(\"".gettemplate("cantpostnow")."\");");
}
}
// Cant post more than X threads in the last Y hours
updateuserforum($threadinfo['forumid']);
And how would I modify the for newreply.php?
Thanks