Resource icon

xF2 Add-on Standard Library by Xon 1.20.1

No permission to download
  • Fix \SV\StandardLib\Helper::repo()->aliasClass() had a compatibility issue with XF2.2.13+ when the aliased class was the top-most class extension.
  • Like
Reactions: BattleKing
  • Require php 7.2+
  • php 8.4+ compatibility fix
  • Improve custom AJAX pagination and AJAX pagination with filter bar javascript. Includes admincp option helper option rendering code
    See Who Replied for an implementation of the feature allowing selectable pagination styles
  • Add Helper::plugin for type-safe plugin creation
  • Like
Reactions: BattleKing
  • Fix Helper::find() and Helper::findCached() assumed entity ids are only ints (can be string/int/array)
  • Add Helper::instantiateEntity() type-safe wrapper
  • Like
Reactions: BattleKing
  • Actually distribute minified ajaxPagination.js file
  • Fix accidental hard XF2.2 requirement. Take #2
  • Like
Reactions: BattleKing
  • Fix accidental hard XF2.2 requirement
Note; The 1.18.x branch will be the last branch to support XenForo 2.1.x
  • Deprecate getContentPermissions function, as the 2nd string argument was not actually used, with a replacement function getPerContentPermissions added.
  • Add \SV\StandardLib\Helper::isAddOnActive() helper function. Similar to \XF::isAddonActive(), except it understands version strings
  • Shim template funciton is_addon_active code to understand version strings
  • Like
Reactions: BattleKing
  • Add support for addon.json 'require'/'require-soft' to support addon version strings instead of the addon version_id.
    Uses version_compare under the hood after some very basic standardization.

    php version strings support dotted versions, '1.2.3' and also each part may also support special character strings:
    any string not found in this list < dev < alpha = a < beta = b < RC | Release Candidate = rc < # < patch level | pl = p.
  • Fix caching global permissions was broken (Impacts Can Warn Staff & User Essentials, but depends heavily on content if this bug was triggered)
  • Like
Reactions: BattleKing
  • Add helper repository for manipulating permissions.
    Will be used by a number of upcoming updates for various add-ons.
  • Like
Reactions: BattleKing
Top