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

XF 1.4 Batch change users style choice

Discussion in 'XenForo Questions and Support' started by Garamond, Nov 22, 2014.

  1. Garamond

    Garamond Well-Known Member

    We've been upgrading/changing styles once a year, but has 'closed the doors' behind us when we moved forward with new and more compatible styles. Or so we thought!

    After installing a nifty little Style Statistics add-on, we see that some members are using older styles which they aren't supposed to be using. How is this possible? In Admin CP we have cross-checked only two styles (dark and light version) that are supposed to be visible for the choosing. How then can some of the members use older styles?

    And better yet; how can we batch change their choice to the default forum style?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    If you disable all styles except one, all members other than admins will be forced to the active/default style.

    The actual value in the database won't change though - it will only change if the member selects and saves the style.

    You could update the records using a query, if desired.
     
    Garamond likes this.
  3. Joe Link

    Joe Link Well-Known Member

    So since the value doesn't change the user would be switched back if we re-enable the disabled style, right?

    What would the query look like? Would it be easier and/or better to backup the style, delete it, then re-upload it? (I assume this would change the style number)
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Only if that style was set as the default.
     
  5. Joe Link

    Joe Link Well-Known Member

    Great! Just to make absolutely certain... :D

    - Style 1 is the default style.
    - Style 2 is set to the new default style.
    - Style 1 is disabled.
    - Users will now be using Style 2
    - Style 1 is re-enabled.
    - Users will still be using Style 2.
     

Share This Page