- Moderated by:
- Support
-
- rank:
-
Helper
- registered:
- February 2003
- Status:
- offline
- last visit:
- 15.09.05
- Posts:
- 192
I've been playing quite a bit with the new Xanthia themes, and I've noticed something that I'm wondering if it's a bug or something I am just repeatedly doing wrong.
I copy one of the core themes, doesn't matter which one, and I rename it and activate the test theme into a site. When I go into the Theme Colors editor, switching to a different color palette does not change the colors on the theme. Looking at the theme with both the viewer and if I go into Settings and select the theme with changed colors, it seems the colors are not being applied to the theme code. For example, with a copy of the PostNuke theme only some of the colors changed correctly; others, like the background for example, stayed the same. With pnDefault's copy, none of the colors changed.
I checked the database, and all the colors are in the palette table. Every template file but the Init has variables for the colors, so it's not as though they are hard-coded. I've reloaded taplates and generated the cache. It's sort of like somewhere else in the code the theme is trying to use the default palette for the colors for some/all of the colors, regardless of which palette is actually selected as current.
Is that a bug?
Also when configuring a palette using the clickable color editor, is there a trick to hand-coding the hex codes? The field inputs are there, but the only way to make the targets change seems to be by clicking a color on the wheel. What I'd rather do is enter in colors into those fields and update the current palette with a submit. Is that possible?
Thanks,
--Kevin -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
This is not a feature of xanthia i've used myself so..... I believe the only theme this will work in this pnDefault as it's the only one that uses all of the xanthia features and it's recommend in the documentation that this is the one people begin with.
I ported the themes that come with all versions of PN as an example of how to get a standard 3 column theme across not to demonstrate every feature of xanthia.
-Mark -
- rank:
-
Helper
- registered:
- February 2003
- Status:
- offline
- last visit:
- 15.09.05
- Posts:
- 192
Thanks for the info about the other themes. I had been testing with variants of all of them, and they were acting a bit strange. pnDefault does work more consistently, but after another week of testing I still can't get the dynamic stylesheets to apply. Everything else is great, just not the palette colors.
All I'm doing is making a copy of pnDefault, renaming it, initializing it, Edit->Colors, Selecting any other palette than the default, it shows the change, and then reloading the templates. With the pnDefault variant, I can't get the colors to change using the web form even if I'm only editing the colors in the default palette.
Force Recompile and Check for Updated Templates are both checked, and I have tried the three different versions of the "include style.php file" code that I've seen in documentation and discussions. I know the changes are in the database from looking at the tables; color changes and renames for a given palette are there and I've watched the themeuse var change to the correct palette upon submission.
But when I reload my "/index.php?theme=" test, it still shows the old palette, like it's hardcoded into the theme (but it's not, obviously). Even testing with the theme live is the same, which makes sense, just I'm completely at the shoot-into-the-dark stage so trying everything. These are the include changes I've tried:
added this to theme.php before head closes:
added this to theme.php before head closes:
and this variant:
added this line in theme.php to function themeheader() after the global:
include ("$themepath/style/style.php");
In the source I see where the style includes are working, the CSS is generated, but it incorporates the wrong colors.
Now here's the thing. I can change pnDefault's palette directly and it does work, but a renamed copy of the pnDefault directory does not. And the copy does not change after I change pnDefault, so it's not referencing its namesake either.
So, based on all that, is it possible to say where I might be missing a step in the setup of a new pnDefault-based theme that makes the dynamic stylesheets work?
Thanks,
--Kevin
