Hello!
Dolphin 7.1.4 + OpenX.
I pasted such code at _sub_header.html:
<?php
//<!--/* OpenX Local Mode Tag v2.8.11 */-->
define('MAX_PATH', '/var/www/opx');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
//468
$phpAds_raw['468'] = view_local('', 15, 0, 0, '', '', '0', $phpAds_context, '');
$phpAds_context[] = array('!=' => 'campaignid:'.$phpAds_raw['468']['campaignid']);
//$phpAds_context[] = array('!=' => 'bannerid:'.$phpAds_raw['4a']['bannerid'])
//RUN
$phpAds_raw['RUN'] = view_local('', 18, 0, 0, '', '', '0', $phpAds_context, '');
$phpAds_context[] = array('!=' => 'campaignid:'.$phpAds_raw['RUN']['campaignid']);
//120
$phpAds_raw['120'] = view_local('', 1, 0, 0, '', '', '0', $phpAds_context, '');
$phpAds_context[] = array('!=' => 'campaignid:'.$phpAds_raw['120']['campaignid']);
}
echo $phpAds_raw['468']['html'];
?>
After i made PHP block in DeanosTools for HOMEPAGE and pasted there
echo $phpAds_raw['120']['html'];
Cleaned all caches! Block echo $phpAds_raw['468']['html']; in header is shown but block echo $phpAds_raw['120']['html']; from DeanosTools is not appears at site.
If i put at _footer.html this code, it works good and i can see both blocks at site:
<?php echo $phpAds_raw['120']['html']; ?>
Help me please. Where is mistake? Why if i put such code at site templates it works and if i put it at PHP-Block it doesn't?