Thanks, I will look in it
Quote:
Originally Posted by kh99
Sorry, I don't really understand what you are asking.
But in case it helps, I played with it a little more and got this:
Code:
if ($_REQUEST['do'] == 'compile')
{
require_once("includes/adminfunctions_template.php");
$show[member] = true;
$template = '<if condition="$show[member]">Not viewable for guests</if>';
eval ('$output = "' . compile_template($template) . '";');
echo $output;
exit;
}
and the output is
Code:
Not viewable for guests
but maybe this has nothing to do with your problem.
|
I tested it too, it doesn't work correct with an else statement though
PHP Code:
<if condition="$show[member]">Not viewable for guests<else />Not viewable for members</if>
HTML Code:
Not viewable for guestsNot viewable for members
I'm afraid there's no way in parsing a custom made database table as if it were a vB template