What's new
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to My Sharing Site

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon
xF2 Add-on
  • Fix Helper::createEntity() could cause "Call to undefined method ...\XF\Entity\...::where()" errors when verifying content is unique
  • Actually distribute minified ajaxPagination.js file
  • Only add phrase_dynamic template method in XF2.1
  • Add various strongly typed helpers to automatically type hint returns based on using ::class argument instead of magic strings.
PHP:
Please, Log in or Register to view codes content!

  • For static analysis and IDE, $obj will have the type \XF\Repository\User

    While XF2.3 intends to implement this, adding this functionality to this add-on allows migrating before hand and simplifies migrating as the Helper bit just needs to be swapped with \XF
  • Add js/sv/lib/ajaxPagination.js
HTML:
Please, Log in or Register to view codes content!

Code:
Please, Log in or Register to view codes content!
  • Fix accidental hard XF2.2 requirement. Take #2
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
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:

PHP:
Please, Log in or Register to view codes content!
Thanks to @NamePros for sponsoring this update
  • Add "patch_route_build_callback" code event, used to manipulate the router state during construction.
  • Add input filter option "empty-str-to-null". Example usage for developers:
PHP:
Please, Log in or Register to view codes content!
  • Fix caching global permissions was broken (Impacts Can Warn Staff & User Essentials, but depends heavily on content if this bug was triggered)
  • Add helper repository for manipulating permissions.
    Will be used by a number of upcoming updates for various add-ons.
  • Fix join index hint support.
    • Fix XF2.2.11 and before error: Undefined array key "indexHints".
    • Fix XF2.212+ index hints not applying as expected in some cases.
Top