PostNuke

Flexible Content Management System

News

Custom blocks called by theme?

Contributed by Another gap in our d on Aug 18, 2001 - 01:34 AM






what im trying to do is have that block change depending on the theme used in the category. but Im not sure how to go about doing this, I tried to just make a php block that would call the html into depending on the theme, Now I have no clue about php scripting, but I have been going over the source as I been developing my site trying to get an understanding of the syntax. Anyway, I put into the php block was;






-----






if ($themesel="Orangetheme");






include "orange.html";






} else {






}






if($themesel="bluetheme");






include "blue.html";






} else {






}






-----






Now this seemed to work..kinda...lol, it just included both html files into the block. So my question is how would I go about it checking to see which theme was being used and call the right html file in the block?
848