Relative Time Support & FAQ

← Back to Support & FAQ — Help for Relative Time


Introduction


Relative Time converts all of MyBB's front end time to their relative time equivalent (such as 3 minutes ago, 4 hours ago). Version 1.1 introduces an inline javascript version, which keeps track of the time and increases it accordingly. For example, if a post was made 3 minutes ago, it will automatically update as time goes by.


This new version also helps caching issues with search engines. In a thread from Kier (from Xenforo) about their relative timestamps, he highlights issues that I didn't think of when creating it for MyBB.


So, if the user doesn't have javascript enabled (such as search engines), they'll see MyBB's default timings such as Today and Yesterday. If the user does have javascript enabled, they'll be updated when the page is loaded to their -x- minutes ago equivalents.


Relative Time 1.1 is compatible with both MyNetwork Core 1.0 and 1.1.

Installing Relative Time


To install this Feature, unzip the contents directly to your forum root (or upload following the download folder's structure). Visit the MyNetwork Overview in your ACP and then select the Core Module. The Relative Time Feature should be listed in the available features. Simply open the Options menu and select Install.


When installed, the Relative Time Feature adds 2 MyBB settings. It can be switched off by editing the "Use Relative Time?" setting in the Date & Time Formats settings in the ACP (Admin CP -> General Configuration -> Date & Time Formats).

Upgrading Relative Time


If you're using version 1.0, then you will need to remove it from the MyNetwork Overview. You can do this by selecting the Core Module, then under the Relative Time Options menu, select Remove/Disable. In the next screen, select Remove this Feature. If you want to remove the files, you can do - however they'll be overwritten in the next step.


Once the Feature is uninstalled, unzip the contents of the Relative Time download directly to your forum root (or upload following the folder's structure). Remember to overwrite any files if prompted. Visit the Core Module once again in the MyNetwork Overview, and from the Relative Time Options menu, select Install and follow the steps.

Using Relative Time


As soon as the Feature is installed and activated, the timings on the front end of your forum will automatically change to relative time. You can control how far the relative time goes by altering the "Cap Relative Time" setting (found in the Date & Time Formats setting group).


This setting has changed in 1.1.
  • Up to an hour ago - will show -x- minutes ago, but after an hour has passed it will revert back to MyBB's default "Today hh:mm" timings. This is recommended.
  • Up to Today - will show minutes and hours ago, but once it reaches 24 hours old, will revert back to MyBB's default "Yesterday hh:mm" timings.
  • Don't cap relative time - will not cap relative time, so will show minutes, hours, days, weeks and months ago.

Support and Known Issues


Because of the changes to 1.1, Relative Time now has a reduced footprint on your forum - meaning it's quicker and more efficient that 1.0. It also alters more timings (especially those in the User CP), however if you notice anywhere that isn't converted (ACP and Mod CP excluded) please make a support thread.


Editing Posts

There is a known issue when editing posts. If you quick edit a post, the "This post was last modified: Less than a minute ago by (User)" will not automatically update as time goes by. This is because MyBB's edit post javascript does not parse other javascript when it updates, which makes it difficult to initiate the clock on this one.


If you require support with this Feature, please use the MyNetwork Support Forum.