// format thread preview if there is one
if ($ignore["$thread[postuserid]"])
{
$thread['preview'] = '';
}
else if (isset($thread['preview']) AND $vbulletin->options['threadpreview'] > 0)
{
$thread['preview'] = strip_quotes($thread['preview']);
$GLOBALS['hhr']->set_thankscache($thread['thankscache']);
$thread['preview'] = $GLOBALS['hhr']->parse_bbcode($thread['preview'], $thread['forumid'], $thread['threadid'], $thread['firstpostid'], $thread['postuserid']);
$thread['preview'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title(
strip_bbcode($thread['preview'], false, true),
$vbulletin->options['threadpreview']
 

));
}
// thread last reply date/time
$thread['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $thread['lastpost'], true);
$thread['lastposttime'] = vbdate($vbulletin->options['timeformat'], $thread['lastpost']);
// post reply date/time (for search results as posts mainly)
if ($thread['postdateline'])
{