No, this what I expected to happen.
There have been numerous requests for this conditional for quite a while and I figured I would have to come out with a bad solution in order to inspire someone who knoew what they were doing to come out with a good solution. LOL
But, I suppose that if the solution already requires modification to PHP files, that it should probably be easier to use in the templates. The substr() function makes sense to me, but it may be difficult for other members to implement.
I didn't know that you could just add an element to an array by simply declaring a value for it.
I tried using just some variable name I made up, but that didnt work, so I figured that I had to use an existing value.
I think the simpler the conditional, the better.
Would it work like this?
Code:
if ($smonth == $sdate[0] AND $sday == $sdate[1])
{
$post['agedisplay'] = true;
}
else
{
$post['agedisplay'] = false;
}
Because then the conditional would just be <if condition="$post['agedisplay']">, right?