This is a quick one to get the thread preview to work with this hack.
Find:
PHP Code:
logging("'$subject' from ". $from_name .
". New thread.\r\n");
And below it put:
PHP Code:
// enable thread preview
$DB_site->query("UPDATE " . TABLE_PREFIX . " thread
SET firstpostid = $postid
WHERE threadid = $threadid");
If you have thread preview enabled in the adminCP then all new threads from now on will show a preview when you hover over them.