
04-30-2007, 06:36 AM
|
 |
|
|
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by arco
Thanks voter, your post pointed me in the right direction. 
I temporarily fixed the problem by extracting that code from the plugin.
Find in includes/cron/cleanup.php
Code:
($hook = vBulletinHook::fetch_hook('cron_script_cleanup')) ? eval($hook) : false;
Add before
Code:
while ($thread = $vbulletin->db->fetch_array($threads))
{
$thread['open'] = 10;
$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_SILENT, 'threadpost');
$threadman->set_existing($thread);
$threadman->delete(false, true, NULL, false);
unset($threadman);
}
Now "Top Thread Starters" will get updated every hour.
|
I am glad that it helps.
But I didn't understand your point. The code you suggest to add in cleanup.php is already there.
|