There is a bug in this hack
It doesn't exclude the threads correctly.
I changed the 'newthread_form_start' plug-in into:
Quote:
if($vbulletin->options['nlp_limiter_active']) {
$fforums = iif(($fforums1 = unserialize($vbulletin->options['nlp_limiter_fex'])) != "", $fforums1, array());
if(!in_array($vbulletin->userinfo['usergroupid'], unserialize($vbulletin->options['nlp_limiter_ex'])) AND
!in_array($foruminfo['forumid'], $fforums)) {
$timecut = TIMENOW - (3600 * $vbulletin->options['nlp_limiter_h']);
$fforumsStr=implode(',',$fforums);
$count = $vbulletin->db->query_first("
SELECT COUNT(*) AS count
FROM " . TABLE_PREFIX . "thread AS thread
WHERE postuserid = '{$vbulletin->userinfo['userid']}'
AND (visible != 2 && open = 1 && dateline >= $timecut) AND forumid NOT IN($fforumsStr)
");
if($count['count'] >= $vbulletin->options['nlp_limiter_threadcount']) {
$limiter = iif($count['count'] > 2, $count['count'] . ' ') . iif($count['count'] <= 2, iif($count['count'] == 1, $vbphrase['nlp_limiter_one_thread'], $vbphrase['nlp_limiter_two_thread']), $vbphrase['threads']);
eval(standard_error(fetch_error('nlp_limiter_msg', $limiter, $vbulletin->options['nlp_limiter_h'], $vbulletin->options['contactuslink'])));
exit(0);
}
}
}
|