Hmm... that's strange.
includes/affiliate_include
PHP Code:
<?php
//RANDOM AFFILIATES
if (@include(getenv('DOCUMENT_ROOT').'/forum/phpAdsNew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$randomaff = view_raw ('zone:2', 0, '_blank', '', '0', $phpAds_context);
}
//DIRECT (3D PROGZ)
if (@include(getenv('DOCUMENT_ROOT').'/forum/phpAdsNew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$progaff = view_raw ('', 2, '_blank', '', '0', $phpAds_context);
}
//DIRECT (HALOGRID)
if (@include(getenv('DOCUMENT_ROOT').'/forum/phpAdsNew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$haloaff = view_raw ('', 5, '_blank', '', '0', $phpAds_context);
}
//DIRECT (SOCOMSOURCE)
if (@include(getenv('DOCUMENT_ROOT').'/forum/phpAdsNew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$socomaff = view_raw ('', 6, '_blank', '', '0', $phpAds_context);
}
?>
global.php
PHP Code:
// #############################################################################
// Start initialisation
require_once(CWD . '/includes/init.php');
// affiliates
require_once('./includes/affiliate_include.php');
And then I just call them in my templates using the appropriate variable. You did all this correctly?