Wow - I can't believe two of us missed this:
Quote:
Originally Posted by Darwix
If I put the advertisement code directly into the header template I get this error
|
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>