11
Quote:
Why can't you just place the code in a custom block you create? What's the advantage of using TinyD?
You can create a block in the block admin and set it to "PHP Script"
Then copy the invocation code into block:
// First ad
if (@include(getenv('DOCUMENT_ROOT').'/new/modules/phpads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:6', 0, '', 'source of the ad', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
echo "<br><br>";
// Second ad
if (@include(getenv('DOCUMENT_ROOT').'/new/modules/phpads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:11', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
.
.
// Third ad
You can create various blocks and place them where ever you like. It is a bit of work, but once you set them up, PHPAds will take care of all the rest.