Now my problem is, when I set up a 2nd set of adaware banners to go after every 1st post, its showing them in my navbar
PHP Code:
>> START SETTINGS -------
$results = array(
'usergroups' => array(
),
'usergroups_view' => array(
'0' =>'4',
'1' =>'6',
'2' =>'13',
'3' =>'15',
'4' =>'17',
'5' =>'7',
'6' =>'16',
'7' =>'2',
'8' =>'20',
'9' =>'5',
'10' =>'1',
'11' =>'3',
),
'fieldtotoggle' =>'2',
'field_value_yes' =>'',
'max_width' =>'',
'max_height' =>'',
'server_path_to_banners' =>'/home/bootleg/forums/geek/gab/images',
'media_extensions' =>'',
'url_to_banners' =>'http://forums.bootleg.org.uk/geek/gab/images/',
'url_advertising' =>'',
'url_turn_off_ads' =>'',
'redirectpage' =>'gab_redirect.php',
'cyclerate' =>'4300',
'persist_throttle' =>'',
'htmltemplates' =>'',
'defaulthtml' =>'',
'blocks' => array(
'1' => array(
'title' =>'Ad Sense',
'wrapper' =>'1',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'1',
'cat_option' =>'1',
'cats' =>'',
),
),
),
'2' => array(
'title' =>'My Banners',
'wrapper' =>'1',
'method' =>'1',
'ads' => array(
'0' => array(
'adtype' =>'1',
'number' =>'1',
'cat_option' =>'1',
'cats' => array(
'0' =>'6',
),
),
),
),
'3' => array(
'title' =>'Sky Scrapers',
'wrapper' =>'0',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'1',
'cat_option' =>'1',
'cats' =>'',
),
),
),
'4' => array(
'title' =>'Under 1st post',
'wrapper' =>'0',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'1',
'cat_option' =>'1',
'cats' =>'',
),
),
),
),
'scripts' => array(
'MASTER' => array(
'name' =>'MASTER',
'description' =>'',
'usemaster' =>'0',
'blocks' => array(
'0' =>'1',
'1' =>'2',
'2' =>'3',
'3' =>'4',
),
),
'forumdisplay' => array(
'name' =>'forumdisplay',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'showthread' => array(
'name' =>'showthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'index' => array(
'name' =>'index',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'editpost' => array(
'name' =>'editpost',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'newthread' => array(
'name' =>'newthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'calendar' => array(
'name' =>'calendar',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'online' => array(
'name' =>'online',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'printthread' => array(
'name' =>'printthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'profile' => array(
'name' =>'profile',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'search' => array(
'name' =>'search',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'usercp' => array(
'name' =>'usercp',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'adv_index' => array(
'name' =>'adv_index',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'THIS_SCRIPT' => array(
'usemaster' =>'',
),
'My Banners' => array(
'name' =>'My Banners',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
'1' =>'2',
),
),
'Sky Scrapers' => array(
'name' =>'Sky Scrapers',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
),
'frequency' => array(
'0' => array(
'description' =>'Low',
'value' =>'1',
),
'1' => array(
'description' =>'Medium',
'value' =>'2',
),
'2' => array(
'description' =>'High',
'value' =>'3',
),
'3' => array(
'description' =>'Mega High',
'value' =>'4',
),
),
'categories' =>'',
);>> END SETTINGS -------
Categories
>> START CATS -------
$results = array(
'6' => array(
'id' =>'6',
'title' =>'Ad Sense',
'ordinal' =>'1',
),
'7' => array(
'id' =>'7',
'title' =>'Bootleg Torrents',
'ordinal' =>'3',
),
'8' => array(
'id' =>'8',
'title' =>'Affiliates',
'ordinal' =>'4',
),
'9' => array(
'id' =>'9',
'title' =>'Bootleg',
'ordinal' =>'2',
),
);>> END CATS -------
>> START ADS -------
$results = array(
'1' => array(
'id' =>'1',
'title' =>'Google Ad Sense',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'58081',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'3',
'type' =>'3',
'template' =>'0',
'catid' =>'0',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6856577779223308";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "66B5FF";
google_color_bg = "FFFFFF";
google_color_link = "333333";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'2' => array(
'id' =>'2',
'title' =>'Bootleg Torrents',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'http://forums.bootleg.org.uk/geek/gab/images/0/2bootleg_link_banner.gif',
'hits' =>'39',
'views' =>'3038',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'1',
'type' =>'1',
'template' =>'0',
'catid' =>'0',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'3' => array(
'id' =>'3',
'title' =>'Bootleg Torrents',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'http://forums.bootleg.org.uk/geek/gab/images/0/3bootleg_link_banner.gif',
'hits' =>'15',
'views' =>'2881',
'url' =>'http://www.bootleg-torrents.org.uk',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'1',
'type' =>'1',
'template' =>'0',
'catid' =>'7',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'1',
'scripts' =>'|My Banners|',
'forums' =>'',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'4' => array(
'id' =>'4',
'title' =>'VIP Status',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'http://forums.bootleg.org.uk/geek/gab/images/0/2vip_status.gif',
'hits' =>'7',
'views' =>'4389',
'url' =>'http://forums.bootleg.org.uk/payments.php',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'1',
'template' =>'0',
'catid' =>'9',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'1',
'scripts' =>'|My Banners|',
'forums' =>'',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'5' => array(
'id' =>'5',
'title' =>'Full Hoose',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'http://forums.bootleg.org.uk/geek/gab/images/0/2pokerbanner.jpg',
'hits' =>'1',
'views' =>'2900',
'url' =>'http://www.fullhoose.co.uk',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'1',
'type' =>'1',
'template' =>'0',
'catid' =>'8',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'6' => array(
'id' =>'6',
'title' =>'Google Ad Sense',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'58',
'views' =>'58429',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'3',
'type' =>'3',
'template' =>'0',
'catid' =>'6',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6856577779223308";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "3D81EE";
google_color_bg = "FFFFFF";
google_color_link = "4C4C4C";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'7' => array(
'id' =>'7',
'title' =>'Sky Scraper',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'0',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'3',
'type' =>'3',
'template' =>'0',
'catid' =>'6',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'1',
'scripts' =>'|MASTER|',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6856577779223308";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "3D81EE";
google_color_bg = "FFFFFF";
google_color_link = "333333";
google_color_text = "333333";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'8' => array(
'id' =>'8',
'title' =>'Under 1st post',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'0',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'0',
'type' =>'3',
'template' =>'0',
'catid' =>'6',
'trackviews' =>'0',
'trackhits' =>'0',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6856577779223308";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "3D81EE";
google_color_bg = "FFFFFF";
google_color_link = "333333";
google_color_text = "333333";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
);>> END ADS -------
Templates with $GAB_ads[x] in them:
Styleid 6 Title navbar contains $GAB_ads[0]
Styleid 6 Title adv_portal_advertisment contains $GAB_ads[2]
Styleid 1 Title adv_portal_advertisment contains $GAB_ads[2]
Styleid 6 Title footer contains $GAB_ads[1]
gab
folder check
GAB directory looks valid and I can write to it!
|