paulyy
04-07-2005, 11:32 PM
It doesn't seem to want to accept to following code;
if (THIS_SCRIPT == 'index') {
$page_menu = '<if condition="$bbuserinfo['userid']">it works<else />login</if>'; }
But if I just use;
if (THIS_SCRIPT == 'index') {
$page_menu = 'it works'; }
It will. So I assume it's the fact I'm trying to use an if condition in the wrong place. So, what would I need to do to get the top piece of code to work effectively?
if (THIS_SCRIPT == 'index') {
$page_menu = '<if condition="$bbuserinfo['userid']">it works<else />login</if>'; }
But if I just use;
if (THIS_SCRIPT == 'index') {
$page_menu = 'it works'; }
It will. So I assume it's the fact I'm trying to use an if condition in the wrong place. So, what would I need to do to get the top piece of code to work effectively?