Resource icon

Notice Time Replacables 2.2.0

No permission to download

Xon

Well-known member
Xon submitted a new resource:

Notice Time Replacables - Adds replacables to expose the start/end time of a notice.

Adds the following replaceable to notices:
  • {time_start:absolute}
  • {time_start:relative}
  • {time_end:absolute}
  • {time_end:relative}
These tags pull from the date-time criteria options for when to start/top showing a notice.

Absolute times are displayed in the user's timezone.

Fully phrased compared to the XF1 version.


Contributing features or bug fixes
Please create a Github Pull request via the "More Information" link.

Contibutions

If you appreciate...

Read more about this resource...
 
@Xon What does this add-on do?
This allows you to use place-holders and add in the before/after dates into the notice message;
admincp-png.182809

and
notice-png.182808


This gets used to notify users that something is going to happen in some time frame via the notice period. Competitions, polls, scheduled maintenance etc.
 
Where are the time settings for this? Does it allow for adding something like "You registered 6 days ago"?
I dont see anything in the admin notices criteria for setting the time.
 
Where are the time settings for this? Does it allow for adding something like "You registered 6 days ago"?
I dont see anything in the admin notices criteria for setting the time.
From the overview;
admincp-png.182809


Adds the following replaceable to notices:
  • {time_start:absolute}
  • {time_start:relative}
  • {time_end:absolute}
  • {time_end:relative}
These tags pull from the date-time criteria options for when to start/top showing a notice.

Absolute times are displayed in the user's timezone.
 
Top Bottom