Not Solved [How To?] I would like to see it for 24 hours
#2
Not Solved
I was thinking in OP's same way for displaying a relative time which have span greater than "half a day", i.e., 12 hours. But unfortunately, it can't be done easily without modifying MyBB core function, I suppose.

The very function involved here is my_date(): https://github.com/mybb/mybb/blob/mybb_1...s.php#L333
You can read "relative" time starting from here: https://github.com/mybb/mybb/blob/mybb_1...s.php#L401:
However, there's a hook at the end of this function that makes it possible to do some dirty work: https://github.com/mybb/mybb/blob/mybb_1...s.php#L468 . I think it'd be hard & heart breaking if one decided to use this hook. For myself, I haven't come up with a feasible idea to use this plugin under this circumstance.
Could be wrong but worth a try.
Reply


Messages In This Thread
RE: I would like to see it for 24 hours - by noyle - 2019-12-02, 01:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)