Resource icon

Standard Library by Xon 1.20.1

No permission to download
Xon updated Standard Library by Xon with a new update entry:

1.13.0 - Feature update

  • Add is_toggle_set template function and toggle-storage-ex backend for the XF toggle JS.
    The stock is_toggled does not allow setting the default value, while is_toggle_set does.
  • Example of a default collapsed node-list:
    PHP:
    <xf:js src="sv/lib/storage.js" addon="SV/StandardLib" min="1" />
    <xf:set var="$isActive" value="{{ is_toggle_set($forum.node_id, false, 'node-toggle') ? ' is-active' : '' }}"/>
    <div...

Read the rest of this update entry...
 
I've used this update on my sites to make the "similar threads" box collapsible and also for the child-forum list collapsible by default. It used to be just a loose javascript file, but adding it to this add-on makes it easier to upgrade and manage.
 
Xon updated Standard Library by Xon with a new update entry:

1.18.0 - Feature update

  • 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 =...

Read the rest of this update entry...
 
Xon updated Standard Library by Xon with a new update entry:

1.18.2 - Mini-feature & bugfix update

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

Read the rest of this update entry...
 
Got this error on when i tried to upgrade from 1.8.2 to the latest version

Error: Call to undefined method XF::isAddOnActive() in src/addons/SV/StandardLib/Repository/Helper.php at line 70
  1. SV\StandardLib\Repository\Helper->hasDesiredAddOnVersion() in src/addons/SV/StandardLib/Helper.php at line 36
  2. SV\StandardLib\Helper::isAddOnActive() in src/addons/SV/StandardLib/XF/AddOn/Manager.php at line 44
  3. SV\StandardLib\XF\AddOn\Manager->checkAddOnRequirements() in src/XF/AddOn/AddOn.php at line 430
  4. XF\AddOn\AddOn->checkRequirements() in src/XF/Admin/Controller/AddOn.php at line 772
  5. XF\Admin\Controller\AddOn->getAddOnWarningsAndErrors() in src/XF/Admin/Controller/AddOn.php at line 544
  6. XF\Admin\Controller\AddOn->actionUpgrade() in src/XF/Mvc/Dispatcher.php at line 350
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2190
  11. XF\App->run() in src/XF.php at line 391
  12. XF::runApp() in admin.php at line 13
 
Oops, a hard requirement for XF2.2 slipped in.

I don't have much time until after this Easter weekend to actually do code fixes & releases.
 
Last edited:
Now i get this error

Error: Call to undefined method XF::isAddOnActive() in src/addons/SV/StandardLib/Repository/Helper.php at line 144
  1. SV\StandardLib\Repository\Helper->markAsCriticalAddon() in src/addons/SV/StandardLib/Repository/Helper.php at line 138
  2. SV\StandardLib\Repository\Helper->rebuildAddOnVersionCache() in src/addons/SV/StandardLib/Setup.php at line 51
  3. SV\StandardLib\Setup->postUpgrade() in src/XF/AddOn/AddOn.php at line 574
  4. XF\AddOn\AddOn->postUpgrade() in src/XF/Admin/Controller/AddOn.php at line 699
  5. XF\Admin\Controller\AddOn->actionFinalize() in src/XF/Mvc/Dispatcher.php at line 350
  6. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  7. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  8. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  9. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2190
  10. XF\App->run() in src/XF.php at line 391
  11. XF::runApp() in admin.php at line 13
 
Top Bottom