[AP] Style Suite

[AP] Style Suite [Paid] 2.16.8

No permission to buy (€15.00)
apathy updated [AP] Style Suite with a new update entry:

2.14.2

  • Fix $assetId must be type int, string given
  • Improve color validation with additional checks
    • Comma-less values
    • Incorrect number of arguments
    • Out-of-range values
  • Migrate Color and Css validation code out of UserStyleRepository and into their own Validator classes
  • Fix post styles not applying in conversations
  • Improve handling of postbit font color/text shadow
  • Improve handling of postbit filter layer...

Read the rest of this update entry...
 
In the past users have been able to use css to customize the cursor on their profile but since updating to 2.3 they've been getting this error

css_error.webp

The cursors still work on existing profiles that have it but editing or adding causes this error.

Could there be a workaround? Maybe the css is incompatible with 2.3?

This is the css everyone uses

.p-pageWrapper {
cursor: url(link.com/img.png), auto;
}

As a side note/feature suggestion, I'm not sure how easy it would be to implement but custom profile cursors might be a cool option to add to your addon if we can figure this out?
 
@Empty

Yeah in a recent version (2.13.?) I created a "Whitelisted CSS properties" admin option and any CSS property used thats not active will get rejected
That list is hardcoded in PHP though, and it's missing a lot of properties which could theoretically be used to cause trouble

I can add these properties to the admin option and have them off by default though, and it'd be up to the admin if they want to allow them or not.

I like the custom cursor idea, won't have time to do it for a while though cos I've some other bits to get through with style suite first, but its on the to-do list.
 
@Empty

Yeah in a recent version (2.13.?) I created a "Whitelisted CSS properties" admin option and any CSS property used thats not active will get rejected
That list is hardcoded in PHP though, and it's missing a lot of properties which could theoretically be used to cause trouble

I can add these properties to the admin option and have them off by default though, and it'd be up to the admin if they want to allow them or not.

I like the custom cursor idea, won't have time to do it for a while though cos I've some other bits to get through with style suite first, but its on the to-do list.
Be easier just to not use it.
 
Thank you for the speedy update! Unless I am missing something I can't see the cursor option in the list?

Screenshot_20250316_171916_Chrome.webp

Is there maybe a location I could disable these restrictions entirely that I am missing? Or another way to enable?
 
Thank you for the speedy update! Unless I am missing something I can't see the cursor option in the list?



Is there maybe a location I could disable these restrictions entirely that I am missing? Or another way to enable?
Hey, I honestly just forgot to include it in the hotfix. It's in the next major version (2.15.0) that I'm working on and hoping to have out in 1-2 weeks.
If there's a need for another hotfix between now & the release of 2.15.0, then I'll be sure to include it in the hotfix.

(It's a one-line change in /src/apathy/StyleSuite/Option/AllowedCssProperties.php if you don't want to wait, it just needs to be added to the $allowedProps array)
 
One more thing to report from here

I am getting the error "Please choose valid color" from what is the profile background url. The following types of links didn't work.

https://i.ibb.co/3YNZ1hsQ/beep.gif
https://xenforo.com/community/media/miss-fortunte-league-of-legends.5287/full
 
One more thing to report from here

I am getting the error "Please choose valid color" from what is the profile background url. The following types of links didn't work.

https://i.ibb.co/3YNZ1hsQ/beep.gif
https://xenforo.com/community/media/miss-fortunte-league-of-legends.5287/full

I've had someone report this to me on discord, won't be able to sort it in a hotfix unfortunately but it should be fixed by virtue of the changes I'm making in 2.15.0. Hoping to get a beta pushed out in the next few days.
 
Since Monday my sites user upgrades have stopped working, the payment goes through but it no longer reflects on my site in any way. This issue started the same time I updated this addon as well as the Chat 2 addon by siropu, and I will be posting this exact message on that thread as well. I've narrowed down the timing to being around the time I updated your addons but hard to know if it is your addon or the other or neither. If you have any insights or if you can just confirm this is not an issue with the latest version it would be very helpful and appreciated. 🙂

Edit: sorry, I'm not sure why suddenly it stopped working after installing the addons updates but after deep diving here on the forums I can only guess it is related more to PayPal conflicting with Xenforo than either of your addons, so I apologize if I am mistaken - - I am just absolutely at a loss why this issue only appeared for me after updating these two addons and doing literally nothing else.
 
Last edited:
apathy updated [AP] Style Suite with a new update entry:

2.15.0 Beta

This is a beta version, please do not upload it on your production site. This version is intended for testing on staging sites.

  • Merge "Change repeat", "Change size", "Change position" permissions into "Change background" permission
  • Fix issue where profile settings could not be saved due to "page_bg" triggering a false positive for an invalid color
  • Allow more than just image URLs to be used for profile page header, profile...

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

2.15.0

Note: I've tested this as much as I can and it's been working fine for me on several installations, but I would still recommend trying this out on a staging site first, or at the very least make a backup before trying to upgrade. The changes to "image" columns were quite intricate but hopefully I didnt miss anything.

Complete changelog​

  • Fix issue where "Change profile blocks" permission set to never would not hide the relevant user(groups) already-created...

Read the rest of this update entry...
 
Hi -

I have only opened up custom user title for certain users via user permissions. However, the add-on has resulted in all registered members' user titles to lose the standard CSS and are now left aligned rather than center aligned.

Is there a way for you to look at the add-on now impacting the base CSS for those that don't have permission to use it?

Thanks,

Art
 
@ArtG

You could try modify ap_ss_user_style_custom_title.less

Replace this:
Code:
[data-template="ap_ss_user_style_settings_wrapper"],
[data-template="conversation_view"],
[data-template*="thread_view"] 
{
    h5,
    .message-userTitle 
    {
        font-weight: normal;
        display: inline;
    }
}

with this
Code:
[data-template="ap_ss_user_style_settings_wrapper"],
[data-template="conversation_view"],
[data-template*="thread_view"] 
{
    h5,
    .message-userTitle 
    {
        font-weight: normal;
        //display: inline;
    }
}

Where the "display" property is being commented out
 
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.

InvalidArgumentException: Attempted to convert array to string/binary [ap_ss_avatar_frame] in src/XF/Mvc/Entity/Entity.php at line 808
  1. XF\Mvc\Entity\Entity->_castValueToType() in src/XF/Mvc/Entity/Entity.php at line 682
  2. XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 788
  3. XF\Mvc\Entity\Entity->bulkSet() in src/XF/Mvc/FormAction.php at line 37
  4. XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 167
  5. XF\Mvc\FormAction->run() in src/addons/apathy/StyleSuite/ControllerPlugin/UserStyle/ImportPlugin.php at line 78
  6. apathy\StyleSuite\ControllerPlugin\UserStyle\ImportPlugin->import() in src/addons/apathy/StyleSuite/Pub/Controller/UserStyleController.php at line 175
  7. apathy\StyleSuite\Pub\Controller\UserStyleController->actionImport() 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 index.php at line 23
 
Back
Top Bottom