Brian Cruz
Fri 10th May '02, 5:47pm
The newest development release of PhpAdsNew lets you create a special banner invocation code in PHP that will work on template based sites. I tried putting it in the phpinclude template and calling up the variable in the header template, but it didn't work. This is the code:
<?php
require(getenv('DOCUMENT_ROOT').'/phpAdsNew/phpadsnew.inc.php');
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '1', $phpAds_context);
// Assign the $phpAds_raw['html'] variable to your template
// echo $phpAds_raw['html'];
?>
Putting $phpAds_raw['html'] in the header didnt work. Any idea what I'm doing wrong?
<?php
require(getenv('DOCUMENT_ROOT').'/phpAdsNew/phpadsnew.inc.php');
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '1', $phpAds_context);
// Assign the $phpAds_raw['html'] variable to your template
// echo $phpAds_raw['html'];
?>
Putting $phpAds_raw['html'] in the header didnt work. Any idea what I'm doing wrong?