I have a file called maxforum.php (max was an old name for phpAdsNew)
Then in phpinclude_start
and I can just place those ads where they are needed.
Now this seems to be the easiest thing in the world - until a user tries to log out and then it can't clear the cookies! I need to resolve that one.
Sarah
Code:
<?php function getMaxZone($zone, $center=true) { $active = true; $output = ''; if ($active) { $sectionName = 'forum'; if ($center == 1) $output .= "<center>"; require_once('/var/users/sitename/htdocs/administrator/max/phpadsnew.inc.php'); if (!isset($phpAds_context)) $phpAds_context = array(); $phpAds_raw = view_raw ('zone:'.$zone, 0, '_blank', $sectionName, '0', $phpAds_context); $output .= $phpAds_raw['html']; if ($center == 1) $output .= "</center>"; }//active check, to make it easier to disable. return $output; } ?>
Code:
ob_start(); include '/var/users/sitename/htdocs/includes/maxforum.php'; $billboard = getMaxZone(1); $footer_left = getMaxZone(12, false); $footer_right = getMaxZone(13, false); $max_left_1 = getMaxZone(8); $max_left_2 = getMaxZone(9); $max_left_3 = getMaxZone(10); $max_left_4 = getMaxZone(11); $max_left_5 = getMaxZone(14); ob_end_clean();
Now this seems to be the easiest thing in the world - until a user tries to log out and then it can't clear the cookies! I need to resolve that one.
Sarah
Comment