• 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

Garamond

Well-known member
#1
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?
 

Brogan

XenForo moderator
Staff member
#2
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.
 

Joe Link

Well-known member
#3
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.
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)
 

Joe Link

Well-known member
#5
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.