View Single Post
Old 18-02-2009   #11 (permalink)
Andyucs
New Member
 
A Little About Andyucs
  • Join Date: Feb 2009
  • Posts: 5
  • Rep Power: 0 Andyucs is an unknown quantity at this point
Default Re: KX - Auto Lock Thread

get this now

Fatal error: Call to a member function query_write() on a non-object in /home/blalblal/public_html/includes/cron/dailycleanup.php(96) : eval()'d code on line 14


with

Plugin PHP Code
if ($vbulletin->options['kx_lockthread_onoff'] == 1)
{
$kxtime = $vbulletin->options['kx_lockthread_time'];
$kxthread = explode(',', $vbulletin->options['kx_lockthread_thread']);

foreach ($kxthread as $kxthreads){
$db->query_write("
UPDATE ".TABLE_PREFIX."thread SET open = 0
WHERE open = 1 AND dateline < ".intval(TIMENOW-(86400*$kxtime)));
}
}

Last edited by Andyucs; 18-02-2009 at 12:36.
Andyucs is offline   Reply With Quote