1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Members Styles

Discussion in 'Troubleshooting and Problems' started by DaveM, Jun 22, 2015.

  1. DaveM

    DaveM Well-Known Member

    How do I force all members to use the forum default style without having to delete the XF default style that the might still be using.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Uncheck all styles for user selection, except the one you want them to use.
     
  3. DaveM

    DaveM Well-Known Member

    I already did that but I see members are still stuck on the XF default style that they were able to select at one point.

    Screenshot_2015-06-22-11-14-16.png
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Where do you see that?

    The database record doesn't change but the style applied when they are browsing will be the only user selectable one, or the default style.
     
  5. DaveM

    DaveM Well-Known Member

    Where do I see what, the style they using in their profile setup and I also have this add on that tells me this
    Style Statistics
     
  6. DaveM

    DaveM Well-Known Member

    Well this is till a problem by the looks of it and I am now stumped.

    My Style setup looks like this

    upload_2015-7-8_5-23-0.png

    The Style Stats add on shows this

    upload_2015-7-8_5-24-3.png

    upload_2015-7-8_5-24-34.png

    The members profile show this

    upload_2015-7-8_5-25-43.png
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    What's the problem?

     
  8. DaveM

    DaveM Well-Known Member

    I have members using the XF default style and it is not supposed to be available to them?
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Why don't you create a test account and try it for yourself to see what happens.
     
  10. DaveM

    DaveM Well-Known Member

    Oh boy, I give up so the only way I can stop them from using the XF default style is to delete it then!
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    They aren't using the disabled style.
     
  12. DaveM

    DaveM Well-Known Member

  13. Mike

    Mike XenForo Developer Staff Member

    Brogan's pointing out that despite having it selected, it's checked at run time. They will see the style you have set to them and this is what will be reflected to them; they have no knowledge of any disabled styles. It does not change the value in the database as you may re-enable the style. If you want values in the database to change, you do indeed need to delete the style.
     
  14. DaveM

    DaveM Well-Known Member

    Ok thanks Mike a bit more of an explanation does help (y)
     
  15. Snog

    Snog Well-Known Member

    @Mike ...

    Wouldn't this be considered a minor bug?

    Anything that relies directly on the user's style ID would have the wrong information when a style is made unselectable unless it checks that the style is selectable. And that means another database query at run time to do that.

    Would it be unreasonable to suggest that the user table be updated to change the user's style ID to the current default style if the style they have selected is no longer selectable?
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    It's so if the style is made selectable again, the user still has it selected.
     
  17. Snog

    Snog Well-Known Member

    I guess there's different ways of looking at that.

    If it becomes selectable again, I'd suggest the user must actually select the style to use it again. ;)
     
  18. DaveM

    DaveM Well-Known Member

    So in the same light if you change the default style to another one for what ever reason only new members would be assigned to the new default style. There might be times for what ever reason you might want to force all members into using a the alternate style.
     
  19. Brogan

    Brogan XenForo Moderator Staff Member

    As per my original response to this thread:
    That will force all members (other than administrators) to use the same style.

    Any members who have the "default style" selected, will automatically use the style you set as default.
     
  20. DaveM

    DaveM Well-Known Member

    Yes I know what you previous response was but that does not make it correct and in my case it cased an issue.

    Well yes this is the idea behind changing it in the first place.
     

Share This Page