I C.
In search.php FIND
PHP Code:
// query thread data
$dataQuery = "
SELECT $previewfield
thread.threadid, thread.threadid AS postid, thread.title AS threadtitle, thread.iconid AS threadiconid,
REPLACE that with
PHP Code:
// query thread data
$dataQuery = "
SELECT $previewfield
thread.dateline, thread.threadid, thread.threadid AS postid, thread.title AS threadtitle, thread.iconid AS threadiconid,
Still in search.php FIND
PHP Code:
eval('$searchbits .= "' . fetch_template('threadbit') . '";');
ABOVE that ADD
PHP Code:
$thread[created] = vbdate($vboptions['dateformat'], $thread[dateline], 1) . ' ' . vbdate($vboptions['timeformat'], $thread[dateline]);
If you also want to display the thread creation date/time when displaying search results as posts:
In search.php FIND
PHP Code:
// query post data
$dataQuery = "
SELECT post.postid, post.title AS posttitle, post.dateline AS postdateline,
post.iconid AS posticonid, post.pagetext,
IF(post.userid = 0, post.username, user.username) AS username,
thread.threadid, thread.title AS threadtitle, thread.iconid AS threadiconid, thread.replycount,
REPLACE that with
PHP Code:
// query post data
$dataQuery = "
SELECT post.postid, post.title AS posttitle, post.dateline AS postdateline,
post.iconid AS posticonid, post.pagetext,
IF(post.userid = 0, post.username, user.username) AS username,
thread.dateline AS threaddateline, thread.threadid, thread.title AS threadtitle, thread.iconid AS threadiconid, thread.replycount,
Still in search.php FIND
PHP Code:
eval('$searchbits .= "' . fetch_template('search_results_postbit') . '";');
ABOVE that ADD
PHP Code:
$post[threadcreated] = vbdate($vboptions['dateformat'], $post[threaddateline], 1) . ' ' . vbdate($vboptions['timeformat'], $post[threaddateline]);
Add $post[threadcreated] to Template search_results_postbit.
Please note that these modifications will work for all searches, not just for unanswered threads.
PS: Should I release both "thread creation date" mods as hacks? Might be useful for others too ...