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

Testing a style update

Discussion in 'XenForo Questions and Support' started by Case, Apr 17, 2013.

  1. Case

    Case Active Member

    Hi guys

    Is there a way to install a 2nd version of a style so (as admin) I can check the changes to the style, then if it's all OK, update the current live style as usual?

    So basically run an exact copy of the live style next to the 'beta' version that only admin can select to use.

    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Make the style not selectable for users.

    Click on the style name for the option.
     
    Case likes this.
  3. Tracy Perry

    Tracy Perry Well-Known Member

    yep, just import the style, set your system so that users cannot select it and then test away. I have 3 styles (default, a Christmas one and my normal one) and the only one that can be used is the normal one. When Christmas rolls around I go into ACP and then just change the Christmas one to be the default and that's what everybody gets.
    I don't import mine as a child, I keep it as a standalone style.
     
    Case likes this.
  4. Tracy Perry

    Tracy Perry Well-Known Member

    Dang... ninja'd again. :p
     
  5. Case

    Case Active Member

    Cheers guys, I'll give it a try.
     
  6. Case

    Case Active Member

    Hang on, how do I upload a styles files if they are exactly the same as the style I already use? Can I just change the name of the folder so they don't override the current one?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Create a new style directory.

    Edit the second style path to point to it.
     
  8. Case

    Case Active Member

    Is this within the /styles/ folder?
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Yes.
     
    Case likes this.
  10. Case

    Case Active Member

    Changed the path to images (to reflect my change to the directory name) under general style properties but it doesn't seem to be pulling any images through. Anywhere else I need to change the directory name?
     
  11. Tracy Perry

    Tracy Perry Well-Known Member

    Be sure that under the Style Properties your new style is selected. I just checked on mine, and when I gave it a bad path it took out all the related images that would be displayed, so this should be right. Also be aware if you change that path, anything that uses the @stylepath (I think it is) will probably pull from that location also, so you will need to either have replacement gradients/etc in the layout identical to the /styles/default, or just copy the styles/default (and it's related files) over there and then place your additional images where you want in the new directory.
    Personally I just keep mine pointed at the default and then for any additional images I have an /images folder and then directly point anything out of the ordinary there in either the Style Properties specific area or in EXTRA.css since there is the off possibility that an add-on could place images in the default styles path and if you have other styles pointed at other locations they may not register unless the add on uses a qualified path.

    example.png
     
  12. Case

    Case Active Member

    Path to images is right.

    I'll explain what I'm doing...

    I have a style called soft_responsive.

    So I've upload these files into a new folder called soft_responsive_beta and then installed the style.

    It's not pulling the images through in my new beta version. Must be something to do with changing the file directory name? The settings under general style properties look right though.
     
  13. Tracy Perry

    Tracy Perry Well-Known Member

    Arty may have stuff hard coded into the style itself. Your best bet for this will be to ask in the discussion forum for the theme. Arty is really good about getting back quickly.
    In fact, it looks like he is online now if you want to start a convo with him or comment in the discussion area.
     
    Case likes this.

Share This Page