[AP] Style Suite

[AP] Style Suite [Paid] 2.16.8

No permission to buy (€15.00)
I've upgraded from 2.2 to 2.3 but unfortunately having this error and site breaking:

1739722751017.webp

I'm guessing it's that extra parenthesis in somebodies color.

Is there anything I can do that wouldn't require a reinstall or total wipe?
 
I've upgraded from 2.2 to 2.3 but unfortunately having this error and site breaking:

I'm guessing it's that extra parenthesis in somebodies color.

Is there anything I can do that wouldn't require a reinstall or total wipe?
I would try:
  1. Add $config['enableListeners'] = false; to src/config.php
  2. Disable the app.less template modification in Appearance -> Template modifications
  3. Rebuild all user style caches in Tools -> Rebuild caches
  4. Re-enable the template modification
  5. Remove the line from src/config.php
 
apathy updated [AP] Style Suite with a new update entry:

2.14.0

  • Fix issue where a styled tooltip only appears when hovering an avatar, but not a username
  • Fix tooltip font color not applying
  • Group permissions by user style type rather than just have them all in one group
  • Validate URLs when saving assets & user styles
  • Fix missing "avatar frame" phrase in usergroup editor
  • Fix Undefined array key "avatar_frame"
  • Fix various issues regarding custom title/username icons & their preview
  • Assets: Create "Additional CSS...

Read the rest of this update entry...
 
It wouldn't let me update:

What can I do?
Try increase the length of the border_color column in the xf_ap_ss_profile_style table through Phpmyadmin or with raw sql
Then try the upgrade again
Right now its 80 but that's only enough to fit 2 hexcodes and not rgb/hsla i guess

EDIT: Actually 80 chars should be fine, but the line that increases the length should be before the line where we try update the users column. So in your case you just need to increase it to 80 I think. I've just re-uploaded the ZIP with this fixed.
 
I got another error while upgrading:

Code:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /src/XF/Db/AbstractStatement.php on line 106
 
I got another error while upgrading:

Code:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /src/XF/Db/AbstractStatement.php on line 106

What memory limit do you have PHP set to? I dont know what would be causing it this time since your assets are already imported
 
512 MB
I reinstalled 2.13.9 and it completed without errors.
512 MB should be plenty

I dont see anything that should cause the addon to use anything close to that kind of memory, in the two relevant upgrade steps we're just renaming columns, updating relevant users' rows, and finally rebuilding the user style caches (which happens every time a user style is saved anyway).

btw you can feel free to start messaging me on discord: apathyff
 
512 MB should be plenty

I dont see anything that should cause the addon to use anything close to that kind of memory, in the two relevant upgrade steps we're just renaming columns, updating relevant users' rows, and finally rebuilding the user style caches (which happens every time a user style is saved anyway).

btw you can feel free to start messaging me on discord: apathyff
I sent you a friend request.
I rolled back but now there's these errors on log.

aw.webp
 
I would try:
  1. Add $config['enableListeners'] = false; to src/config.php
  2. Disable the app.less template modification in Appearance -> Template modifications
  3. Rebuild all user style caches in Tools -> Rebuild caches
  4. Re-enable the template modification
  5. Remove the line from src/config.php
I was unable to rebuild the users styles cache after disabling the addons with the config

Error: Call to undefined method XF\Entity\User::canUseAsset() in src/addons/apathy/StyleSuite/Repository/UserStyleRepository.php at line 203
  1. apathy\StyleSuite\Repository\UserStyleRepository->rebuildUserStyleCache() in src/addons/apathy/StyleSuite/Job/UserStyleCache.php at line 46
  2. apathy\StyleSuite\Job\UserStyleCache->run() in src/XF/Job/Manager.php at line 275
  3. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 205
  4. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 121
  5. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/ToolsController.php at line 146
  6. XF\Admin\Controller\ToolsController->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 362
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  11. XF\App->run() in src/XF.php at line 806
  12. XF::runApp() in admin.php at line 15
Setting it to true allowed me to rebuild cache but no difference.

I appreciate your quick response and guidance
 
apathy updated [AP] Style Suite with a new update entry:

2.14.1

  • Fix Only variables should be passed by reference in User::getAvatarFrame()
  • Fix Undefined array key "apSsDisableTooltipStyles"
  • Fix issue where custom titles were centered on mobile
  • Check that both colors in a user styles $color column are set before trying to apply a linear-gradient
  • Dont cache non-cacheable user styles in setup::rebuildCaches()

Read the rest of this update entry...
 
@apathy
Is there a demo site where I can get an impression of this add-on?
2. Is there a version compatible with 2.2?
Hey, I dropped XF2.2 support in style suite 2.12.0, so the 2.11.X branch is the last XF2.2 versions. You should still be able to download them with a license but I won't be offering support.

There's no public demo other than the instance running on my forum, if you'd like to try it out i can set you up an account on my forum with permissions to the public controllers

Nice addon & easy to control! Would be nice to add extra options on postbit to change text to custom animated icons & fontawesome.
also if you could add this font, thanks!
Do you mean adding icons to the "stats" like messages, join date etc? I can look into it when I have time
I'll have to check if I'm allowed distribute the font but you can still add it through the admin panel for the time being
 

it exhibits incompatibility with sticky postbit.
Hey, I've just taken a look and I'm not sure its feasible to fix from within the addon itself. Unless I'm mistaken the regex allowed for template modifications is a bit limited and doesn't really allow for the fix I came up with.

But if you'd like to make some template edits yourself, this should work:

in message_macros
Find:
Code:
<section class="message-user"
        {{ ($includeMicrodata && $itemProp) ? 'itemprop="' . $itemProp . '"' : '' }}
        {{ $includeMicrodata ? 'itemscope itemtype="https://schema.org/Person"' : '' }}
        {{ ($includeMicrodata && $user) ? 'itemid="' . link('canonical:members', $user) . '"' : '' }}>

Replace with:
Code:
<section class="message-user"
        {{ ($includeMicrodata && $itemProp) ? 'itemprop="' . $itemProp . '"' : '' }}
        {{ $includeMicrodata ? 'itemscope itemtype="https://schema.org/Person"' : '' }}
        {{ ($includeMicrodata && $user) ? 'itemid="' . link('canonical:members', $user) . '"' : '' }}>

        <div class="stickyPostbitFix">


Find:
Code:
<span class="message-userArrow"></span>

Replace with:
Code:
<span class="message-userArrow"></span>
            
        </div>

Replace the CXF sticky code in extra.less with this:

Code:
<span>
/* [cXF] Sticky Postbit */
@media (min-width: @xf-responsiveMedium) {
    .stickyPostbitFix {
        position: sticky;
        top: 37px;
        
        .message-userArrow {
            right: -11px;
        }
    }
}
/**********/
 
Back
Top Bottom