[AP] Style Suite

  • Thread starter Thread starter apathy's icon apathy apathy
  • Start date Start date
  • 319
  • 18,572
The group add-on is on sale now for 30% off with a coupon code, i paid $35 for it yesterday which is why i jumped on it....... i could send you my copy but idk if it'd work properly with the licensing and such so you can keep it updated? If you feel it'd be worth it? totally your call though.
its $30 to renew which would be cheaper than using the code on a new license, and the code is only on new purchases unfortunately. i'm not sure what the etiquette is on sharing addons with developers like that even if i previously owned a license so while I appreciate that offer it's not something I'd be comfortable accepting, just in case.

I'll disable the group styles for the time being to get rid of that error, with a notice in the changelog saying that I'll bring it back if enough people are interested. If enough people would get something out of it then I wouldn't mind dropping the $30 on the renewal, but it's not something i've ever seen used.
 
apathy updated [AP] Style Suite with a new update entry:

2.11.5

  • Fix custom title gradient colors not applying
  • Drop support for [tl] Social Group styling (it might return once XF 2.3 is out)
  • Remove Onboarding handlers and rely on XF User Criteria instead
  • Correct the URL used for loading Postbit preset images in the live-previews
  • Fix issue where the default Post style font size could prevent editing a suer
  • Rename style property & permission IDs for consistency (all consistency cleanups are now complete)
    • You may need to...

Read the rest of this update entry...
 
Hello @apathy
I found the following errors

It isn't possible to register when the add-on is disabled
bd55fb0519fb86841fec70323794b23e.png

1701101639690.png
XF\Db\Exception: MySQL query error [1364]: Field 'ap_ss_ignored_user_style' doesn't have a default value - src/XF/Db/AbstractStatement.php:230

Generated by: Unknown account - Nov 27, 2023 at 3:48 PM



Stack trace​


INSERT INTO `xf_user_profile` (`user_id`, `location`, `password_date`, `dob_day`, `dob_month`, `dob_year`, `signature`, `website`, `following`, `ignored`, `avatar_crop_x`, `avatar_crop_y`, `banner_date`, `banner_position_y`, `about`, `custom_fields`, `connected_accounts`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(220): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1521): XF\Db\AbstractAdapter->insert('xf_user_profile', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1253): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Mvc/Entity/Entity.php(1271): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/User/Registration.php(306): XF\Mvc\Entity\Entity->save()
#8 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\User\Registration->_save()
#9 src/XF/Pub/Controller/Register.php(429): XF\Service\User\Registration->save()
#10 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#12 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#13 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#15 src/XF.php(524): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}


Request state​


array(4) {
["url"] => string(18) "/register/register"
["referrer"] => string(27) "xxxxx.com"
["_GET"] => array(0) {
}
["_POST"] => array(13) {
["_xfToken"] => string(8) "********"
["username"] => string(0) ""
["6e4872814f3277e977e08e3902d2461ff7062c03"] => string(13) "admintest3585"
["65afba67d42ed03b08544a047c82ba0ab9446627"] => string(22) "[email protected]"
["53f7c157cec0d81e6dc88df11d5ee111bc582221"] => string(8) "********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cd8cd88d5790758515d2a9c2"] => string(14) "America/Bogota"
["_xfRequestUri"] => string(1) "/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

Also Style Suite is not compatible with Siropu's Chat 2
It breaks many chat functions as soon as I install it


Inverse message direction does not work properly
new messages should appear at the top but appear at the bottom
Load more messages? should appear at the bottom but appear at the top
1701112453896.png


Messages that should be sent in private chats and private rooms are sometimes sent in the general chat room (default)
and private chats are duplicated
58d8a4abdb4c2b431392dcb2b74e568e.gif
 
Hello @apathy
I found the following errors

It isn't possible to register when the add-on is disabled
bd55fb0519fb86841fec70323794b23e.png

View attachment 2493
XF\Db\Exception: MySQL query error [1364]: Field 'ap_ss_ignored_user_style' doesn't have a default value - src/XF/Db/AbstractStatement.php:230

Generated by: Unknown account - Nov 27, 2023 at 3:48 PM



Stack trace​


INSERT INTO `xf_user_profile` (`user_id`, `location`, `password_date`, `dob_day`, `dob_month`, `dob_year`, `signature`, `website`, `following`, `ignored`, `avatar_crop_x`, `avatar_crop_y`, `banner_date`, `banner_position_y`, `about`, `custom_fields`, `connected_accounts`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(220): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1521): XF\Db\AbstractAdapter->insert('xf_user_profile', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1253): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Mvc/Entity/Entity.php(1271): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/User/Registration.php(306): XF\Mvc\Entity\Entity->save()
#8 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\User\Registration->_save()
#9 src/XF/Pub/Controller/Register.php(429): XF\Service\User\Registration->save()
#10 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#12 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#13 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#15 src/XF.php(524): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}


Request state​


array(4) {
["url"] => string(18) "/register/register"
["referrer"] => string(27) "xxxxx.com"
["_GET"] => array(0) {
}
["_POST"] => array(13) {
["_xfToken"] => string(8) "********"
["username"] => string(0) ""
["6e4872814f3277e977e08e3902d2461ff7062c03"] => string(13) "admintest3585"
["65afba67d42ed03b08544a047c82ba0ab9446627"] => string(22) "[email protected]"
["53f7c157cec0d81e6dc88df11d5ee111bc582221"] => string(8) "********"
["g-recaptcha-response"] => string(1546) "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYXNza2V5xQQhTfA9p-tXB9kpnoy6YQmXMNWx8eAH3xgSEfyhndDq08kSAfa_sg6-Azd3-EU5oBbUJzQ8Fw1HvHtn2QGcOCA8nkVoTfeYh68ccyy-yCO2ttd0aT7a6H24w4-ZQR-EQ4x3KYOK5RfLb9vUl2YB-qHgPH4GTD2_BgovEC65ANzMvOMXOnLOVs-c7dgO0_zsEF6FnxeYr9oWHJ2ey9PmG7uSfjOaWj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0I85vyrrozaPSAZ-N9_azu8GJjnCOUX3i2goh3oGjo7yNXDFSefYaDwC5RaH7O7ttdbs7tgPMtdaqpUovbIVVPR9CuCgTlltyLvZ4uKRKoOdrzXSh8h7yCJr_YUiPR4LgNnVt7-OCiHM7p49vQAiAnwQ8tWs68PSbL0heKTE3vLUbFpLWdud1gC2jLkmg022N49E5DbyF_D391Y2tFdTNpYEr1qbVUR7_ukUiHu-PxLL5iAyz8zxSH8Nat-xHPT2GAtLtD-VpYjYjcKcdeRxPPBlx94VlgeFMmWxb3IfJliCB_yO26CQCp8kT4Jc7REaeqvk3Jfw1yiVw-5kbXo1SGiRUC9cFAOaC559YPMj_UuwH5ZysALTdzsZQywueQddEe7Evfr22MH2FNw4eyrJTqGFhzGU0wdNTLij7fa9sZq_BptjqxcwxR2vvGJdc6imJYDehxk4nEUSPLsWOcdAoYoqZPdHZb1bwowCzFNF1205bGgMOrrw1zjNvWwaJ_7IAFL1bOEqrnclPMU5fAwd3ZYw2KS4A2Mv3fQdDxTtLIIFgocuUxVPgfqB002ckYOJQh3nZ8EK7Y2T5s_Io-FYaJuRkVXDnGbaNdX9IZZ66qNleHDOZWS6zahzaGFyZF9pZM4ERyWRonBkAA.0-fG0QKoM-dtGv3xmUxCm4xaRNmo5Z1Lv6jPqb8eMDw"
["accept"] => string(1) "1"
["reg_key"] => string(16) "gi7dDLll1GmiW02r"
["29acf6c5ccd7d8a0cd8cd88d5790758515d2a9c2"] => string(14) "America/Bogota"
["_xfRequestUri"] => string(1) "/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
This is (probably) normal as the database column provided by the addon still exists within the database, but our definition defined in PHP files is disabled alongside the rest of the addon.
So long as this error does not pop up during regular use of the addon, and also does not appear after uninstalling the addon, then I don't think there's anything to do here.


Also Style Suite is not compatible with Siropu's Chat 2
It breaks many chat functions as soon as I install it


Inverse message direction does not work properly
new messages should appear at the top but appear at the bottom
Load more messages? should appear at the bottom but appear at the top


Messages that should be sent in private chats and private rooms are sometimes sent in the general chat room (default)
and private chats are duplicated

These however are quite strange - if you go to Admin Panel -> Appearance -> Template Modifications, and disable "[AP] Style Suite: siropu_chat_custom_js (Fixes user tagging in Siropu Chat 2 when username styles are active)", does the Chat begin to behave like normal?

Also, if you open the browser console (Ctrl + Shift + J for Chrome, Ctrl + Shift + K for Firefox), are there any errors appearing here?

And just for to help me better understand, are you using version 2.11.5 of Style Suite or another version?
 
This is (probably) normal as the database column provided by the addon still exists within the database, but our definition defined in PHP files is disabled alongside the rest of the addon.
So long as this error does not pop up during regular use of the addon, and also does not appear after uninstalling the addon, then I don't think there's anything to do here.
I understand, I just discovered it when I disabled SS after seeing issues with Chat 2

disable "[AP] Style Suite: siropu_chat_custom_js (Fixes user tagging in Siropu Chat 2 when username styles are active)", does the Chat begin to behave like normal?
Yes, there are no issues in the chat after deactivating that template modification

are there any errors appearing here?
no, nothing

And just for to help me better understand, are you using version 2.11.5 of Style Suite or another version?
XF 2.2.13, PHP 8.0 and
1701145871594.png
 
Hello I have this error. What is the bug referring too?
Code:
InvalidArgumentException: Accessed unknown getter 'ap_postbit_style' on XF:User[8] src/XF/Mvc/Entity/Entity.php:213
Generated by: Username Dec 21, 2023 at 1:57 PM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(125): XF\Mvc\Entity\Entity->get('ap_postbit_styl...')
#1 internal_data/code_cache/templates/l1/s12/public/ap_ss_postbit_style_preview.php(7): XF\Mvc\Entity\Entity->offsetGet('ap_postbit_styl...')
#2 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(apathy\StyleSuite\XF\Template\Templater), Array, NULL)
#3 src/XF/Template/Templater.php(1683): XF\Template\Templater->renderTemplate('ap_ss_postbit_s...', Array)
#4 internal_data/code_cache/templates/l1/s12/public/ap_ss_postbit_style_settings.php(29): XF\Template\Templater->includeTemplate('public:ap_ss_po...', Array)
#5 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(apathy\StyleSuite\XF\Template\Templater), Array, NULL)
#6 src/XF/Template/Templater.php(1683): XF\Template\Templater->renderTemplate('ap_ss_postbit_s...', Array)
#7 internal_data/code_cache/templates/l1/s12/public/ap_ss_style_settings_wrapper.php(95): XF\Template\Templater->includeTemplate('public:ap_ss_po...', Array)
#8 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(apathy\StyleSuite\XF\Template\Templater), Array, NULL)
#9 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('ap_ss_style_set...', Array)
#10 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#11 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('apathy\\StyleSui...', 'public:ap_ss_st...', Array)
#12 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#16 src/XF.php(524): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
  ["url"] => string(33) "/index.php?account/style-settings"
  ["referrer"] => string(60) "https://forum.com/index.php?account/style-settings"
  ["_GET"] => array(1) {
    ["account/style-settings"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
} {main}
I changed the username and the forum URL for privacy
 
Last edited:
Hey I've just finished installing & setting this up and everything seems to be working fine.....😅 except for when I try to use the Live Chat.

If I attempt to post a Live Chat message, I get this error:
Screenshot_2024-01-11-15-13-06-41_40deb401b9ffe8e1df2f1cc5ba480b12.webpScreenshot_2024-01-11-15-13-17-19_40deb401b9ffe8e1df2f1cc5ba480b12.webpScreenshot_2024-01-11-15-13-25-98_40deb401b9ffe8e1df2f1cc5ba480b12.webp
 
@apathy

I seem to have found a bug with the addon, if a user enters the max characters for a username, it breaks things, this is on a default xenforo theme:

1710221930652.webp

Disabling the addon fixes the issue.
 
@apathy

I seem to have found a bug with the addon, if a user enters the max characters for a username, it breaks things, this is on a default xenforo theme:

Disabling the addon fixes the issue.

It looks like the fix I included for the XFA Awards System bug u reported before is whats causing it, but I've just rewritten the postbit less template now in a way which
  • Shouldn't reintroduce the XFA awards sytem bug
  • Fixes the bug youre reporting now
  • Should also fix a bug where the "postbit filter" layer wouldn't stretch the full height of a long post

Please try replacing the contents of ap_ss_user_style_postbit.less with the following:

Code:
[data-template="ap_ss_style_settings_wrapper"],
[data-template="conversation_view"],
[data-template*="thread_view"] 
{
    h5,
    .message-userTitle 
    {
        font-weight: normal;
    }

    .ap-ss-postbitFilter
    {
        padding: 10px;
        max-width: {$xf.options.apSsMaxPostbitWidth}px;
        height: 100%;
    }
    
    .ap-ss-postbitBackground
    {
        max-width: {$xf.options.apSsMaxPostbitWidth}px;
        display: table-cell;
    }
    
    .message-cell { padding: 0; }
    .message-cell--main { padding: 10px 10px 0 10px; }
    
    .thpostcomments_commentsContainer 
    {
        .message .message-cell--user { background: none !important; }
    }
}

and let me know how you get on with it over the next while. If it works alright for you then I'll include it in the next update.
 
It looks like the fix I included for the XFA Awards System bug u reported before is whats causing it, but I've just rewritten the postbit less template now in a way which
  • Shouldn't reintroduce the XFA awards sytem bug
  • Fixes the bug youre reporting now
  • Should also fix a bug where the "postbit filter" layer wouldn't stretch the full height of a long post

Please try replacing the contents of ap_ss_user_style_postbit.less with the following:

Code:
[data-template="ap_ss_style_settings_wrapper"],
[data-template="conversation_view"],
[data-template*="thread_view"]
{
    h5,
    .message-userTitle
    {
        font-weight: normal;
    }

    .ap-ss-postbitFilter
    {
        padding: 10px;
        max-width: {$xf.options.apSsMaxPostbitWidth}px;
        height: 100%;
    }
   
    .ap-ss-postbitBackground
    {
        max-width: {$xf.options.apSsMaxPostbitWidth}px;
        display: table-cell;
    }
   
    .message-cell { padding: 0; }
    .message-cell--main { padding: 10px 10px 0 10px; }
   
    .thpostcomments_commentsContainer
    {
        .message .message-cell--user { background: none !important; }
    }
}

and let me know how you get on with it over the next while. If it works alright for you then I'll include it in the next update.

Yep that fixed it, thank you very much! :)
 
Hey ia have this really weird error, On my admin account, when ever I change my username font or postbit present it will accept my setting. But in a couple of hours later, it will undo those settings and set the postbit upload image to this link. which goes nowhere. https://forum.agoraroad.com/63 Nothing in my error log, truly bizarre.

And when I go to a thread, my postbit shows a random picture.
 

Attachments

  • Screenshot 2024-03-19 191714.webp
    Screenshot 2024-03-19 191714.webp
    40.9 KB · Views: 3
  • Screenshot 2024-03-19 192145.webp
    Screenshot 2024-03-19 192145.webp
    43.8 KB · Views: 2
Hey ia have this really weird error, On my admin account, when ever I change my username font or postbit present it will accept my setting. But in a couple of hours later, it will undo those settings and set the postbit upload image to this link. which goes nowhere. https://forum.agoraroad.com/63 Nothing in my error log, truly bizarre.

And when I go to a thread, my postbit shows a random picture.
That is a weird one.
  • Are you using style suite 2.11.9?
  • Does it only happen to your admin account (moderators, members etc are all fine)?
  • Do you use any specific caches like Redis, Memcached etc
 
That is a weird one.
  • Are you using style suite 2.11.9?
  • Does it only happen to your admin account (moderators, members etc are all fine)?
  • Do you use any specific caches like Redis, Memcached etc
Yes only on my account and yes 2.11.9, and yes I have redis.
 
Yes only on my account and yes 2.11.9, and yes I have redis.
The next time you encounter this bug, could you please add these 2 lines to the very top of ap_ss_user_style_settings_postbit:
Code:
{{dump($user.postbit_style)}}
{{dump($user.PostbitStyle)}}

then navigate to your "Postbit settings" and take a screenshot of the 2 dumps that appear. Please make sure "values" is click-expanded in the second dump, like in my below screenshot.

Remove the lines once you've taken the screenshot.

The addon will store your settings in a table in the database, then send those same values to XF's registry cache. When we load the styles in posts, profiles etc, we're reading from the cache. I'm wondering if there's something going on with your Redis that's causing old settings to be sent to the cache.
 

Attachments

  • dumpvars.webp
    dumpvars.webp
    45.3 KB · Views: 3
Hey Apathy! I reached out on the other discussion page but then realized I wasn't certain where I would have the best chance of a quick response, sorry for the double messaging here! I recently tried to update this add-on and got an error about using 200 characters or less. It seems to have broken everyone's style and I'm not really sure how to fix it! If you have any idea what could be causing this, I'd appreciate some guidance.
 
Hey Apathy! I reached out on the other discussion page but then realized I wasn't certain where I would have the best chance of a quick response, sorry for the double messaging here! I recently tried to update this add-on and got an error about using 200 characters or less. It seems to have broken everyone's style and I'm not really sure how to fix it! If you have any idea what could be causing this, I'd appreciate some guidance.
Do you know which version u were upgrading from? One of the last updates should have made upgrading from versions as low as 2.7.1 much more reliable, with all user styles & assets retained.

ONe thing that annoys me about XF is it doesnt tell you which field has "too many characters".

Feel free to add me on discord so we can have an easier time figuring this out : apathyff
 
Hey is there a way to take away all user styles when they don't have permissions anymore? I use style suite as a way for members to pay donations, so they get put into a new user group. But if they expire, and get switched out of that user group they ratin they're username sparkles and postbit backgrounds.
 
Back
Top