MyBB Community Forums

Full Version: Suggestion - thread start date
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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).

$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}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}

add

<span class="float_right smalltext"><strong><a href="{$sorturl}&amp;sortby=dateline&amp;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).