Andrew
New Member
So here is my code to display on the homepage only except the first if statement is always evaluated as true on all pages. Any help would be appreciated.
I am using the global_start hook.
I am using the global_start hook.
Code:
if(empty($FORM['a']) && empty($FORM['app']) && empty($FORM['method']) && empty($FORM['cat'])){
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/tla.php";
include_once($path);
$TMPL['TLA'] = tla_ads();
$TMPL['sidebar_1_bottom'] .= $TMPL['TLA'];
$TMPL['sidebar_1_bottom'] .= "This is homepage";
}
else
{
$TMPL['errormsg'] = "This is not homepage";
$TMPL['sidebar_1_bottom'] .= $TMPL['errormsg'];
}