Happy New Year, Paul (and all at miniBB.com). Thanks for your helpful reply!
So far, I've learnt:
1) to limit the number of new topics a day per each user, we need to add to bb_plugins.php the code provided in
Paul's post of 23 Jan 06:33.
2) to limit the number of replies/posts per day per certain users, we need to add to bb_plugins.php the code provided in
Paul's post of 2 Jan 2008 04:50.
Now I assume: (if I am wrong, please correct me--gently, please!)
a) to limit the number of new topics per day per certain users, the code we need to apply might look something like this:
if($forum!=0 and $user_id>0 and $user_id!=1 and $isMod==0 and in_array($user_id, array(1,2,3))){
$reachedLimit=FALSE;
$timeLimit=date('Y-m-d H:i:s', time()-86400);
if($row=db_simpleSelect(0, $Tt, 'count(*)', 'topic_poster', '=', $user_id, '', '', 'topic_time', '>=', $timeLimit)){
if($row[0]>=3) $reachedLimit=TRUE;
}
if($reachedLimit) $poForums[]=$forum;
}
b) To limit the number of replies/posts per day per user, the code might look something like this:
if($forum!=0 and $user_id>0 and $user_id!=1 and $isMod==0){
$reachedLimit=FALSE;
$timeLimit=date('Y-m-d H:i:s', time()-86400);
if($row=db_simpleSelect(0, $Tp, 'count(*)', 'poster_id', '=', $user_id, '', '', 'post_time', '>=', $timeLimit)){
if($row[0]>=3) $reachedLimit=TRUE;
}
if($reachedLimit) $poForums[]=$forum;
}
c) To limit BOTH the number of new topics AND replies/posts per day per user, one will need to apply two blocks of code - code blocks referred to in points
1 and
b respectively. Similarly, to apply the same limits but only to certain users, apply code blocks referred to in points
2 and
a respectively. Correct?
Thanks for your time and patience - and happy Christmas for the 7th. :-)
Greetings from Melbourne where it is a toasty 35C today -
marsbar