Quote:
Originally Posted by Andrew
Wow - I can't believe two of us missed this:
You can't put PHP directly into the templates  What you will need to do is create a new plugin in global_start with the following code:
PHP Code:
if (@include(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php'))
{
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:2', 0, '', '', '0', $phpAds_context);
$phpAdsVerify = "True";
}
Then add this to your header template where you want your ads to showup:
HTML Code:
<if condition="$phpAdsVerify">$phpAds_raw['html']</if>
|
im getting
Code:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/infitech/public_html/forums/includes/adminfunctions_template.php(3593) : eval()'d code on line 6
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.