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

XF 1.5 Force New Style on all Memebers

Discussion in 'XenForo Questions and Support' started by 0ptima, Sep 20, 2015.

  1. 0ptima

    0ptima Well-Known Member

    I have a bunch of styles and want to add a new style and make that new style the default style. I also want all my members to automatically use the new style the next time they visit the forum.

    Once my new style is set as the default style, will the following query force all members to use the default style?

    update xf_user set style_id = 0 
  2. Brogan

    Brogan XenForo Moderator Staff Member

    As long as the ID matches that of the new style.

    Or you can just disable all other styles.
  3. 0ptima

    0ptima Well-Known Member

    I dont want to disable the other styles. Just want to confirm that by setting the style_id will force the default style regardless of the style id.

    This is what I see in mysql.

  4. Mike

    Mike XenForo Developer Staff Member

    0 will use the default style, yes.
    0ptima likes this.
  5. 0ptima

    0ptima Well-Known Member

  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, 0 will set it to the default, or you can use the style ID.

    The difference will be if you update the default, those with a value of 0 will automatically use the new default.
  7. 0ptima

    0ptima Well-Known Member

    Great that is exactly what I want.

Share This Page