Resource icon

xF2 Add-on Standard Library by Xon 1.19.5

No permission to download
  • Ensure time counter timer doesn't cause unneeded HTML updates
  • When time counter code has maximum date parts set, do not append smaller units. ie "30 days 10 minutes" should be "30 days"
  • Like
Reactions: startop
  • Bundle moment.js 2.29.1
  • Extract count down/up timer html/javascript from Vote Tally & Notice Time Replacables add-ons, this includes singular time.<part> phrases.

    Example usage (generates html & loads javascript);
    PHP:
    $func = \XF::$versionId >= 2010370 ? 'func' : 'fn';
    return $this->app->templater()->$func('sv_relative_timestamp', [
    $now->getTimestamp(), $other->getTimestamp(), // now and other date time obj
    0, $countUp, // maximum date parts and if allowed counting up
    'time-notice', // class added to the span
    'click', '< .notice-content | .notice-dismiss' // event to trigger and who trigger it on
    ]);
  • Fix custom date/time picker incorrectly setting the 'day' component of a date to the 'year' value.
  • Add templater function which can reverse array/array collection
  • Fix possible MySQL 8.0+ collation error in renamePhrases
  • Like
Reactions: creativex
  • When the installer is renaming things (phrases/options/etc), disable development file output as it can cause unexpected upgrade failures when the board is in dev mode
  • Fix typo in function name causing a templater error.
  • Like
Reactions: jorabavar
Top