Boban in Belgrade has the following questions about PHP in templates, so I'm forwarding it to this list in hopes of both getting a good answer, but also so that we can hear about what others are doing with their combinations of PHP and Campsite templates. - doug
===========
This is the script, a little different than previous,
just to avoid if then loops...
$arr=array("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun");
foreach ($arr as $value)
{
if ($value == date("D"))
echo ""
}
?>
then it does not work as expected, because its not processed correctly, like
it would work in plain php... and this one
$d = date("D");
if ($d == "Fri")
echo ""
?>
As You can see my logic was to automaticly switch radio program for curent
date.
But my problem was that only front page shows dynamicly included tpl file,
(and not completely since i got some garbage too it also echoes " ?>), and
other pages doesnt load at all (probably because its not intended to use
this way)...
Now, I have read on Campsite forum that there are 2 versions of phpwrapper.
One with its own language, and one that supports php language in tpl files.
So finaly, question is:
Does version that supports php in tpl files have all features of other
version ?
If yes, can we have upgrade?
Is there any way to solve my problem with currently installed phpwrapper on
skala.campware.org?
Any other solution ?(apart from auto publishing/unpublishing articles)
Thanks
Boban