5
It is added years ago.
you have two ways to implement it in your website.
1- you can set "elapse" OR "e" as custom format in modules one by one. based on modules and module version it is different. eg: in newbb version 4.3 open newbb/include/plugin.php
// default manner will be used if not specified
$customConfig["formatTimestamp_custom"] = "elapse"; // Could be set as "Y-m-d H:i"
2- change the $format = 'l' in formatTimestamp input to $format = 'elapse'
you have 2 way to implement it:
2-1- hack the core file located in xoops255/class/xoopslocal.php
function formatTimestamp($time, $format = 'e', $timeoffset = null)
2-2- add the function to your locale.php in your language.
in xoops255/language/YOUR_LANG/locale.php
[code]
class XoopsLocal extends XoopsLocalAbstract
{
// some functions here
// ...
// ...
function formatTimestamp($time, $format = "elapse", $timeoffset = null)
{
// add your codes
}
// some functions here
// ...
// ...
}
I recommend the 2-2 because it is overall solution and you dont have to worry about touching core files.