I had a couple of things I wanted to try so that global.php would include properly, none of my ideas worked.
In regards to date and time
find
Code:
function output_NewestThreads($a = 5,$f = ""){
global $db, $Data;
replace with
Code:
function output_NewestThreads($a = 5,$f = ""){
global $db, $Data, $vbulletin;
find
Code:
$NewestThreads = $db->query("select * from ".TABLE_PREFIX."thread{$SQL} order by dateline desc limit 0,$Amount");
while($Thread = $db->fetch_array($NewestThreads)){
$Data .= ParseTemplate($Template,
array(
'threadid' => $Thread['threadid'],
'threadname' => $Thread['title'],
'postuserid' => $Thread['postuserid'],
'postusername' => $Thread['postusername'],
'replies' => vb_number_format($Thread['replycount']),
'views' => vb_number_format($Thread['views']),
'lastposter' => $Thread['lastposter'],
replace with
Code:
$NewestThreads = $db->query("select * from ".TABLE_PREFIX."thread{$SQL} order by dateline desc limit 0,$Amount");
while($Thread = $db->fetch_array($NewestThreads)){
$Data .= ParseTemplate($Template,
array(
'threadid' => $Thread['threadid'],
'threadname' => substr($Thread['title'],0,100),
'postuserid' => $Thread['postuserid'],
'postusername' => $Thread['postusername'],
'replies' => vb_number_format($Thread['replycount']),
'views' => vb_number_format($Thread['views']),
'lastposter' => $Thread['lastposter'],
'date' => vbdate($vbulletin->options['dateformat'], $Thread['dateline']),
'time' => vbdate($vbulletin->options['timeformat'], $Thread['dateline']),
This obviously is for the new thread section. For newest replies it looks (but untested) like the first edit is the same and the second just add the date and time lines to the correct section.
Dave