Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
New Vanilla Template System
outbreak
New
mark, i know you're working on the latest version with a revised template system. is there anyway you could quickly describe the changes you made to make the forum easier to style? i'm very curious about that o8 screenshot you keep posting and just how much easier it actually will be to stylize vanilla.
0
This discussion has been closed.
Comments
So, there is a base folder that holds all themes. You can create a new theme by just copying the default vanilla theme and then altering all of the files within. As you can see, right now in the templates folder there are only five template files that I've created. I've still got to go make a few other ones - eventually it will hold all template files for all pages.
Those template files contain all xhtml in vanilla, so you can change it completely. I haven't dumbed it down at all - there is php code in those template files, too. So if you were a smartypants, you could pretty much do whatever you wanted in there.
The next thing to wrap your head around is how themes are applied. A forum will only ever have a single theme applied to it. So, on this forum you couldn't have one person seeing that o8-style theme and another person looking at this current default vanilla theme. There are various reasons for that, the biggest one being that if a theme intrinsically changes the way the forum functions, then one person might be able to do something in theme A that theme B never intended that person to do.
But there is still custom styling on each theme - which is why each theme (as you can see in the image) has a "styles" folder. The idea there is that once you've defined the xhtml how you want it, you can still apply multiple styles to it and allow your users to switch between those. So in the future we'll have new themes coming out and available to vanilla administrators - and then we'll have new styles coming out for particular themes, and those styles are available directly to the forum users.
Does that help?
+100 points for excellent css style control within the theming engine
i can't wait to see this.
That is correct, but they *can* apply different styles to the current theme.
What are the chances of the forum admin being able to choose between running a theme system OR the existing style system? Pretty much zero i assume?
Well, it's open source, so you can do whatever you want. Originally that was what I wanted to do, but as I mucked about in the xhtml on my first test theme I realized that looking at the site in two different themes posed a myriad of potential problems, so I pulled back on the reigns.
SirNot got it bang on.
Tell me about it. I can't wait.