forum.coppermine-gallery.net
Support => Older/other versions => cpg1.1.X Support (standalone) => Topic started by: CBR on January 29, 2004, 04:14:47 pm
-
<?php
if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 1, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
PhpAds generated this code. And it is working in every ***.php or ***.html document. But in some reason it can not work if I add this code into theme.php
Could somebody explain the problem?
-
Hi,
Try adding this code in template.html rather than in theme.php.
Jean-Denis
-
Actually, theme.php should be fine if you made the necessary adjustments. I suspect the path may be incorrect.
Change:
if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php'))
to:
if (@include('actual full file path'))
and see if that helps.