Not Solved [General] How could this be done?
#2
Not Solved
This requires a change of PHP code in showthread.php:

Time ago I managed to achieve that lastpost date with this simple modification:
Add the following variables to the empty line 71 in showthread.php (v1.8.22/.24):
$ets_thread_firstpost_date = my_date('relative', $post['dateline']); $ets_thread_lastpost_date = my_date('relative', $thread['lastpost']);
(Try to keep the original line structure and do not intentionally break lines - so you don't get in any trouble on future code investigations)

The variable can now be used in "Show Thread Templates / showthread", for example:
{$ets_thread_firstpost_date} / {$lang->lastpost}: {$ets_thread_lastpost_date}

Good luck!

[ExiTuS]
[Image: logo_wernicke_8040.png]
MyBB Forum + innovative full-responsive Theme
Live-Escape-Game-Forum
Reply


Messages In This Thread
How could this be done? - by MyBBEinstein - 2021-01-22, 08:26 AM
RE: How could this be done? - by [ExiTuS] - 2021-01-22, 11:45 AM
RE: How could this be done? - by MyBBEinstein - 2021-01-22, 03:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)