this code in plugin is for limit users post in forum per day :
PHP Code:
if($vbulletin->options['chip_limitnewthreadperday_advopturn'] && trim($vbulletin->options['chip_limitnewthreadperday_advop']))
{
$lines = explode(PHP_EOL, $vbulletin->options['chip_limitnewthreadperday_advop']);
foreach($lines as $line)
{
list($forumids, $limited) = explode('|', $line);
if(in_array($foruminfo['forumid'], array_map('intval',explode(',', $forumids))))
{
$check = $db->query_first("
SELECT COUNT(threadid) as count
FROM ".TABLE_PREFIX."thread
WHERE dateline > " .$start_day. "
AND forumid = ".$foruminfo['forumid']."
AND postuserid = ".$vbulletin->userinfo['userid']."
");
if($check['count'] >= intval($limited))
{
eval(standard_error(fetch_error('chip_limitnewthreadperday_error', intval($limited), $foruminfo['title_clean'])));
}
}
}
}
how can i use threadid replace forumid for limit users to post in thread replace forum?
i want restrict users to post in thread per day but this code limit post in forum per day