MyBB Community Forums
[For 1.8] DVZ Shoutbox Timeformat Change - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [For 1.8] DVZ Shoutbox Timeformat Change (/thread-229139.html)



DVZ Shoutbox Timeformat Change - kbilly - 2020-08-22

Hello everyone!

If you guys are interested to change the standard time date format on your shoutbox to the modern "minutes ago" format, then please check the following steps.

Step1: Go to your Acp- settings- Dvz Shoutbox- Date format.

Change the
M-d, h:i

with

relative

Save the settings.


Then go to the plugin file, search for

my_date(

The complete line will be :

$date     = htmlspecialchars_uni(my_date($mybb->settings['dvz_sb_dateformat'], $data['date']));

Replace the above line with:

$date     = my_date($mybb->settings['dvz_sb_dateformat'], $data['date']);

Save the plugin file.

Hard refresh your browser and your time format will be changed to "minutes ago" format.

[attachment=43215]

Thanks to my friend @noyle for helping me out.

Enjoy guys.