[AP] Style Suite

[AP] Style Suite [Paid] 2.16.10

No permission to buy (€15.00)
Update looks good so far, did notice the same issue with centering custom title text but your tweak works great!

However, bigger issue I noticed on the import/export is that the Avatar Frames seems to have issues upon Import. Changing my avatar frame to None before export resolves the issue.
I'll have an update out this weekend that fixes this and a couple of other things I've noticed.
The custom title tweak doesn't seem to be bulletproof (i think there's wrapping issues on longer titles), but should be good enough until the updates out. That particular issue is the last remaining task for the update, not counting the error you just reported.

Also congratulations on 100 updates, that's amazing! This addon is truly one of the best.
Thank you very much! 🥳
 
apathy updated [AP] Style Suite with a new update entry:

2.15.1

  • Rework Postbit image URL conversion job to work generically for all image columns
  • Create "Optimize user style images" job
  • Create "Uploaded image optimization quality" admin option
  • Create "Asset optimization quality" admin option
  • Allow editing of a users profile blocks from the admin panel
  • Fix various Attempted to convert... errors when importing a user style JSON
  • Fix verifyImageFormat(): Argument #1 ($value) must be of type int, string...

Read the rest of this update entry...
 
I use PixelExit's Bolt theme.

  • XF\CssRenderException: Error rendering template public:app.less: ParseError: missing opening { in public:app.less on line 3913, column 1 (on or near line 3913)
  • src/XF/CssRenderException.php:89
  • Generated by: Unknown account
  • May 10, 2025 at 6:33 AM

Stack trace​

3910 | {
3911 | //display: inline;
3912 | }
3913| }
3914 |
3915 | // Align icons and text in the same row
3916 | .ap-ss-customTitleWrapper
------------

#0 src/XF/CssRenderer.php(435): XF\CssRenderException::createFromLessException(Object(Less_Exception_Chunk), 'public:app.less', '// Note that th...')
#1 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#2 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#3 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
#4 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
#5 css.php(32): XF\CssWriter->run(Array, 3, 1, '7a1782a4b88e84a...')
#6 {main}

-------------

Previous Less_Exception_Chunk: ParseError: missing opening { in anonymous-file-10682.less on line 3913, column 1
3911| //display: inline;
3912| }
3913| }
3914|
3915| // Align icons and text in the same row
3916| .ap-ss-customTitleWrapper - src/vendor/oyejorge/less.php/lib/Less/Parser.php:625
#0 src/vendor/oyejorge/less.php/lib/Less/Parser.php(572): Less_Parser->GetRules(NULL)
#1 src/vendor/oyejorge/less.php/lib/Less/Parser.php(413): Less_Parser->_parse()
#2 src/XF/CssRenderer.php(431): Less_Parser->parse('// Note that th...')
#3 src/XF/CssRenderer.php(371): XF\CssRenderer->renderToCss('public:app.less', '// Note that th...')
#4 src/XF/CssRenderer.php(279): XF\CssRenderer->renderTemplate('public:app.less', NULL)
#5 src/XF/CssRenderer.php(135): XF\CssRenderer->renderTemplates(Array, Array, Array)
#6 src/XF/CssWriter.php(60): XF\CssRenderer->render(Array)
#7 css.php(32): XF\CssWriter->run(Array, 3, 1, '7a1782a4b88e84a...')
#8 {main}

Request state​

array(4) {
["url"] => string(158) "/css.php?css=public%3Anormalize.css%2Cpublic%3Afa.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&s=3&l=1&d=1746873111&k=7a1782a4b88e84a5a66f37d2c6fb377da3db55c3"
["referrer"] => string(24) "https://scapecrunch.com/"
["_GET"] => array(5) {
["css"] => string(67) "public:normalize.css,public:fa.css,public:core.less,public:app.less"
["s"] => string(1) "3"
["l"] => string(1) "1"
["d"] => string(10) "1746873111"
["k"] => string(40) "7a1782a4b88e84a5a66f37d2c6fb377da3db55c3"
}
["_POST"] => array(0) {
}
}
 
@ArtG did you merge outdated templates after the upgrade? It looks like there's a missing bracket in the ap_ss_user_style_custom_title.less template

I would try click "Revert" in this template to roll back to the default template, it should undo the alignment tweak I sent the other day (which is no longer needed) and correct the brackets.

But definitely let me know if the issue persists after trying this
 
Thanks for the quick update!

Just a few things. This first issue apparently was occuring before the last patch but started following the big update.

Upon attempting to save a profile block, getting this error:

Error: Class "apathy\StyleSuite\ControllerPlugin\UserStyle\BlockSavePlugin" not found in src/XF/Mvc/Controller.php at line 779
  1. XF\Mvc\Controller->plugin() in src/addons/apathy/StyleSuite/Pub/Controller/BlockController.php at line 186
  2. apathy\StyleSuite\Pub\Controller\BlockController->blockSaveProcess() in src/addons/apathy/StyleSuite/Pub/Controller/BlockController.php at line 95
  3. apathy\StyleSuite\Pub\Controller\BlockController->actionAddEdit() in src/addons/apathy/StyleSuite/Pub/Controller/BlockController.php at line 129
  4. apathy\StyleSuite\Pub\Controller\BlockController->actionAdd() in src/XF/Mvc/Dispatcher.php at line 362
  5. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  6. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  7. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  8. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  9. XF\App->run() in src/XF.php at line 806
  10. XF::runApp() in index.php at line 23



I tried rebuilding the addon data and caches, no change, but when I run this rebuild job, I get an error which I'm sure is a separate issue.

[AP] Style Suite: Convert user style image URLs to locally-served images​

This job can save each image URL onto your server, and updates the users settings to match. This is ideal if you would like to cut down on the number of external connections to other domains.

ErrorException: [E_WARNING] Undefined array key "image" in src/addons/apathy/StyleSuite/Job/UserStyle/ImageUrlToLocal.php at line 58
  1. XF::handlePhpError() in src/addons/apathy/StyleSuite/Job/UserStyle/ImageUrlToLocal.php at line 58
  2. apathy\StyleSuite\Job\UserStyle\ImageUrlToLocal->rebuildById() in src/XF/Job/AbstractRebuildJob.php at line 42
  3. XF\Job\AbstractRebuildJob->run() in src/XF/Job/Manager.php at line 275
  4. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 205
  5. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 121
  6. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/ToolsController.php at line 146
  7. XF\Admin\Controller\ToolsController->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 362
  8. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  9. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  10. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  11. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  12. XF\App->run() in src/XF.php at line 806
  13. XF::runApp() in admin.php at line 15
 
apathy updated [AP] Style Suite with a new update entry:

2.16.0

2.16.0​

Note: Please ensure that the ap_ss_asset_avatar_frame.less template is successfully merged post-upgrade.

  • Add "transform" to list of whitelistable CSS properties
  • Various internal cleanups
  • Remove "Avatar frame type" admin option
  • Add native support for Steam frames
    • "This is a Steam frame" must be checked in the relevant asset settings
    • It is recommended to upload steam frames to a folder via FTP and link...

Read the rest of this update entry...
 
apathy updated [AP] Style Suite with a new update entry:

2.16.2

  • Fix issue where postbit background color would not apply
  • Fix Column 'background_color' is unknown
  • Fix issue where a round avatar would be rendered behind a chosen square frame in the avatar post-save preview
  • Fix Undefined array key "avatar_frame" when trying to save an avatar frame
  • Fix issue with alterTable callbacks during 2.15.0 upgrade
  • Fix issue where an animation would be applied to a color gradient in the live preview
  • Fix issue where color gradient would not be applied in the post-save preview

Read the rest of this update entry...
 
Last edited:
Sorry to add on to the pile (if there's a better place to report issues please let me know), my error log is pretty full today so thought I'd share some of those

When trying to mention or search a user, an error is thrown
  • ErrorException: [E_WARNING] Undefined array key "no-avatar-frame"
  • src/addons/apathy/StyleSuite/XF/Template/Templater.php:210

For various addons I get this error sometimes in my console:
  • TypeError: Macro public:xfa_wrc_macros :: xfa_wrc_block() error: Cannot access offset of type string on string
  • src/addons/apathy/StyleSuite/XF/Template/Templater.php:67

An import error that appeared today:

  • GuzzleHttp\Exception\InvalidArgumentException: json_decode error: Syntax error
  • src/vendor/guzzlehttp/guzzle/src/Utils.php:277

Stack trace

#0 src/addons/apathy/StyleSuite/ControllerPlugin/UserStyle/ImportPlugin.php(34): GuzzleHttp\Utils::jsonDecode([invalid], true)
#1 src/addons/apathy/StyleSuite/Pub/Controller/UserStyleController.php(174): apathy\StyleSuite\ControllerPlugin\UserStyle\ImportPlugin->getJsonData('/tmp/phppw5tW1')
#2 src/XF/Mvc/Dispatcher.php(362): apathy\StyleSuite\Pub\Controller\UserStyleController->actionImport(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('apathy\\StyleSui...', 'Import', Object(XF\Mvc\RouteMatch), Object(apathy\StyleSuite\Pub\Controller\UserStyleController), NULL)
#4 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(apathy\StyleSuite\Pub\Controller\UserStyleController), NULL)
#5 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#7 src/XF.php(806): XF\App->run()
#8 index.php(23): XF::runApp('XF\\Pub\\App')
#9 {main}
 
@Empty will release a hotfix for issues 1 & 3 now in a minute
Issue 2 might suggest that some of the rows in the xf_ap_ss_custom_title_style or xf_ap_ss_username_style tables didn't have their icons converted to the new format correctly.
If you can export those 2 tables and send them to me in a PM I'll be able to take a look tomorrow.
 
apathy updated [AP] Style Suite with a new update entry:

2.16.4

This update addresses issues strictly related to installing the addon - if you already have it installed there's no need to upgrade to this version.
  • Correct output of AbstractAsset::getDataDir() in order to fix issue where assets would not be imported during a fresh install
  • Stop creating "ap_ss_avatar_frame" column on User and UserGroup table during a fresh install as its not longer necessary
  • Fix issue where the "usable_users" column would not be set up on the...

Read the rest of this update entry...
 
apathy updated [AP] Style Suite with a new update entry:

2.16.5

  • Fix issue when editing an existing asset font, where the uploader/preview text would be hidden
  • Fix issue where postbit preset backgrounds would not apply
  • Fix Call to undefined function XF\Image\imagewebp() when uploading a postbit background with GD
  • Fix issue where solid color would not apply in the live-preview for custom title, post & username styles
  • Fix Call to a member function run() on null
  • Return early in...

Read the rest of this update entry...
 
Back
Top Bottom