Hello again. Ok, this may seem like a dumb question, but bear with me. I need to know which variable has the styleid of the currently loaded style so I can build conditionals around it. Yes, I know I can have a seperate copy of phpinclude_start for each style, but I don't want that - I want each child style to inherit all templates from the default and the only thing each style would change is the CSS.
Hello again. Ok, this may seem like a dumb question, but bear with me. I need to know which variable has the styleid of the currently loaded style so I can build conditionals around it. Yes, I know I can have a seperate copy of phpinclude_start for each style, but I don't want that - I want each child style to inherit all templates from the default and the only thing each style would change is the CSS.
Then why not just use parrent child templates?
Thats the whole idea, all templates are stored in the master parrent style, then style changes are applied to all the lesser templates.
Ok, the logo in the $header of my site is rotated by forum using a hack that stores the image's name. I need to change the version of the image by styleset because some have dark backgrounds and others have light ones, and so on. So in PHP include start...
PHP Code:
if (styleid=3)
{
$stylevar[titleimage] = "styledirectory/" . $foruminfo[banner]
}
Now, I could just put that code in the PHP include start template of the style, but it will cease to inherit PHPinclude start code templates from the parent style. That's a problem I'd rather avoid by using the conditional.
Ok, the logo in the $header of my site is rotated by forum using a hack that stores the image's name. I need to change the version of the image by styleset because some have dark backgrounds and others have light ones, and so on. So in PHP include start...
PHP Code:
if (styleid=3)
{
$stylevar[titleimage] = "styledirectory/" . $foruminfo[banner]
}
Now, I could just put that code in the PHP include start template of the style, but it will cease to inherit PHPinclude start code templates from the parent style. That's a problem I'd rather avoid by using the conditional.