what could this plugin have that is disabling search queue updates?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Peter_Rosado
    Member
    • May 2006
    • 31
    • 4.0.0

    what could this plugin have that is disabling search queue updates?

    Not exactly php/html...


    in newthread_start

    Code:
    $maxnewthread = $db->query_first("
            SELECT maxnewthread, maxnewtime FROM " . TABLE_PREFIX . "usergroup
            WHERE usergroupid=" . $vbulletin->userinfo['usergroupid'] . "
    ");
    
    $definedtime = ($maxnewthread['maxnewtime'] * 3600);
    $limit = TIMENOW - $definedtime;
    $recentthreadcount = $db->query_first("
            SELECT COUNT(*) AS total
            FROM " . TABLE_PREFIX . "thread
            WHERE postuserid=" . $vbulletin->userinfo['userid'] . "
            AND dateline >= $limit
            " . iif($foruminfo['forumid'], "AND forumid = " . $foruminfo['forumid'] . "") . "
    ");
    
    $threadsremaining = ($maxnewthread['maxnewthread'] - $recentthreadcount['total']);
    
    if ($recentthreadcount['total'] >= $maxnewthread['maxnewthread'])
    {
            if ($maxnewthread['maxnewthread'] != 0 OR $maxnewthread['maxnewtime'] != 0)
            eval(standard_error(fetch_error('no_new_thread_permission', $maxnewthread['maxnewthread'], $maxnewthread['maxnewtime'])));
    }
    Last edited by Peter_Rosado; Mon 19 Apr '10, 5:54am.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...