// THREADS
// By assassingod
// Dont forget to change the variables on line 394
$limit = '5'; // Enter the number of maximum threads you want to be displayed
$forumids = implode ("', '", get_noaccess_forumids()) ;
$getthreads = $DB_site->query("
SELECT threadid,title,dateline
FROM " . TABLE_PREFIX ."thread
WHERE postuserid = '$userinfo[userid]' AND forumid NOT IN ('$forumids')
ORDER BY dateline DESC
LIMIT $limit
");
while($threads = $DB_site->fetch_array($getthreads))
{
exec_switch_bg();
$threads['date'] = vbdate($vboptions['dateformat'],$threads['dateline']);
$threads['time'] = vbdate($vboptions['timeformat'],$threads['dateline']);
eval('$usersthreads .= "' . fetch_template('memberinfo_usersthreads') . '";');
}