SMF Development > Next SMF Discussion
[3.0] Redo the theme system for SMF (2.1+ obviously)
Ricky.:
I agree to bloc, since I am comparatively new in creating SMF themes, I was observing trend of theme acceptance by Forum Admins, they are resistive to new styles and ideas. May be this is because people are used to that spreadsheet style system. Personally.. when I join a new forum and find it on classic layout, I feel comfortable though, it never means I am not open to new ideas but should make things easier to do.
As I have said earlier, I find SMF theme system as one of the most developer friendly system.. I have used many others (if not all ) and I love SMF !
What I see that we can include more AJAX, it may even make SMF lighter if used wisely !
--- Quote from: Bloc on September 21, 2011, 07:22:59 PM ---I don't think its ever been the lack of creative forces? Its just that mods decide what templates we can change(or have up until now anyway) and that the themesystem is maybe too complex at first glance. IMHO thats good thing, the complexity..also, one thing that perhaps is the BIGGEST obstacle in new creative looks for SMF, is that forum owners are *very* traditional. Very few like to change that lovely table/spreadsheet/box layout we have been using for years. Heck, even Curve had a lot of resistance, and that just added a few more rounded headers and containers - its still essentially the same layout as 1.1.
--- Quote from: live627 on September 20, 2011, 08:29:27 PM ---
--- Quote ---You can already do this. If you don't modify a template file, don't include it in the theme directory. SMF will use the template file from the "default" directory in this case.
Most simple themes will only need to include index.template.php. If they only touch the CSS and images, they won't need to include any template file.
--- End quote ---
I know... but I'm not talking about individual files (templates). I'm talking about the specific functions (sub templates).
--- Quote ---Not sure what you mean or how that would work.
--- End quote ---
It's not an entirely new concept, for template layers can do much the same thing. But this... this is like the middle of the sandwich, whilst layers use above and below like the bread on a sandwich.
Let's go a bit deeper. Currently, you have $context['sub_template'] = 'mst';, which only allows for one sub template at a time. So let's expand on that and get $context['sub_templates'] = array('mst', 'display;');. With an appropriate edit to obExit(), multiple sub templates may be used per page!
--- End quote ---
I think I follow your thoughts..but this doesn't really make it better to theme, it just moves things around. If you cannot change the whole template out of fear it will not work with mods, you have already lost.
--- End quote ---
青山 素子:
--- Quote from: Ricky. on September 23, 2011, 11:42:21 AM ---What I see that we can include more AJAX, it may even make SMF lighter if used wisely !
--- End quote ---
As long as it doesn't prevent functionality when JS is disabled. I hate sites that will not work if you don't allow them to run arbitrary code.
Antechinus:
Does anybody actually disable js these days? [Unknown] was musing last year that we should really be requiring js these days, because of the obvious benefits (security being one of them).
Illori:
a lot of people use noscript addon for firefox to do just that, disable js.
青山 素子:
I use NoScript. It helps with a lot of intrusive JS. If I really need to, I can opt-in to the JS on a site.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version