2014-07-11, 07:10 PM
I have searched for this on "1.8 Suggestions" subforum but i could not find anything related to it. $thread['dateline'] variable is usable since MyBB 1.4.x but without formating it will output unix timestamp. I saw start date / time on threadlist on various forum softwares (PHPPBB, Vbulletin, Xenforo). That edit involves following php files and templates (along with lang->created).
forumdisplay.php - line 1001
search.php - line 407
usercp.php - lines 3891 and 4123
And in forumdisplay_threadlist and search_threads latest_threads
after
add
and in latest_threads, latest_subscribed templates
after
add
Please let me know if I am missing something (code or template edits related).
$thread['created'] = my_date($mybb->settings['dateformat'], $thread['dateline']).", ".my_date($mybb->settings['timeformat'], $thread['dateline']);
forumdisplay.php - line 1001
search.php - line 407
usercp.php - lines 3891 and 4123
And in forumdisplay_threadlist and search_threads latest_threads
after
<a href="{$sorturl}&sortby=starter&order=asc">{$lang->author}</a> {$orderarrow['starter']}
add
<span class="float_right smalltext"><strong><a href="{$sorturl}&sortby=dateline&order=asc">{$lang->created}</a> {$orderarrow['dateline']}</strong></span>
and in latest_threads, latest_subscribed templates
after
{$lang->author}
add
<span class="float_right smalltext"><strong>{$lang->created}</span>
Please let me know if I am missing something (code or template edits related).