![]() |
Templates vs. Styles
Hey all,
I have a question regarding styles vs. templates. My impression up to now is that the 'Style' portion of the show defines the overall look of the page, color/font/property-wise ... creating definitions for many variables that are used later on, especially in the templates (eg, {linkcolor} and the like). The templates were/are a series of layout elements that get called from the various php scripts to lay down the page design. And most importantly, that these two things are managed completely separately from one another. For example, it should be possible to have 10 different color styles that ALL use the same body of templates (like 'Default', for example). Is this impression incorrect? The reason I'm asking is because I tried creating a new style yesterday, to give users some different look/feel options and encountered problems. Steps: 1) from admin cp, Add Style: Title: plForum Replacement set : Default Template set : Default User selectable : yes 2) created a new directory under my images directory called plForum to house all the images 3) copied ALL of the default images in, and then modified the ones I wanted to 4) modified the plForum style to have new color definitions What I found was that both the plForum AND the Default style definitions were changed. In fact, any changes I made to the Default were ALSO reflected into plForum, and vice versa. Clearly this doesn't seem to be correct behavior. Did I do something wrong? Is there a step I missed? Did I maybe do something accidentally that I didn't mention here? Thanks in advance for the assistance. Regards, - ZJ |
To have two skins working with their own styles and templates, you must create a new template set and replacement set for your new skin, not making it work with the default templates and replacement set. If you make it that the default skin and your new skin uses the same template set, then both skins will look messed up, having the templates mixed with both skins. So leave the default skin with its default templates and replacement set, and have your new skin have its OWN template set and replacement set. If you had hacks or anything else on your default template set, you'll have to re-add the template changes again to the new skin. Hopefully that made sense. Cheers :)
|
Quote:
And, why was I seeing the behavior I saw? - ZJ |
You can use many styles with only one templateset. (i have 4 Styles on one set).
Just point the styles to different replacmentsets. ;) |
Quote:
|
Quote:
Ok, that makes more sense now. Thanks very much, I'll go try it out! - ZJ |
No Problem buddy! ;)
|
This worked like a champ. I only found one issue with creating the new structure.
so for Default: the imagesfolder variable points to: images for plForum, it points to images/plForum I'm also using vbPortal to give the front page a more homey feel. It broke. It was using imagesfolder to point to all its images. It also (sneakily) makes copies of the default top banner images in its own images folder. so I needed to prepend the $bburl variable to all references to imagesfolder, and then it worked. This created a new problem, but nothing that couldn't be fixed with a quick filesystem symbolic link. All hail unix. - ZJ |
You can use somethin like this:
+ root + - images (set 1) + - images2 (set 2) When you set your imagespath (like forums/images and forums/images2) in the style every {imagesfolder } - Variable points to the right set. :) |
All times are GMT. The time now is 07:34 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|