. i tried debugging, although that did not seem to solve the problem. here is the debug code.
Code:
>> START SETTINGS -------
$results = array(
'usergroups' => array(
),
'usergroups_view' => array(
'0' =>'4',
'1' =>'38',
'2' =>'40',
'3' =>'6',
'4' =>'8',
'5' =>'39',
'6' =>'43',
'7' =>'44',
'8' =>'7',
'9' =>'42',
'10' =>'2',
'11' =>'5',
'12' =>'1',
'13' =>'41',
'14' =>'3',
'15' =>'45',
),
'fieldtotoggle' =>'6',
'field_value_yes' =>'',
'max_width' =>'',
'max_height' =>'',
'server_path_to_banners' =>'/home/actoguit/public_html/geek/gab/images',
'media_extensions' =>'',
'url_to_banners' =>'http://www.actoguitar.com/geek/gab/images/',
'url_advertising' =>'',
'url_turn_off_ads' =>'',
'redirectpage' =>'gab_redirect.php',
'cyclerate' =>'4300',
'persist_throttle' =>'',
'htmltemplates' =>'',
'defaulthtml' =>'',
'blocks' => array(
'1' => array(
'title' =>'Default',
'wrapper' =>'1',
'method' =>'1',
'ads' => array(
'0' => array(
'adtype' =>'1',
'number' =>'1',
'cat_option' =>'1',
'cats' =>'',
),
),
),
'2' => array(
'title' =>'Test #1',
'wrapper' =>'1',
'method' =>'1',
),
'3' => array(
'title' =>'Link Unit/Sentence Ad',
'wrapper' =>'0',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'1',
'cat_option' =>'2',
'cats' => array(
'0' =>'7',
'1' =>'1',
),
),
),
),
'4' => array(
'title' =>'Right column 120x60',
'wrapper' =>'0',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'1',
'cat_option' =>'2',
'cats' => array(
'0' =>'5',
),
),
),
),
'5' => array(
'title' =>'728x90',
'wrapper' =>'0',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'1',
'cat_option' =>'2',
'cats' => array(
'0' =>'3',
),
),
),
),
'6' => array(
'title' =>'468x60 -- header',
'wrapper' =>'0',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'1',
'cat_option' =>'2',
'cats' => array(
'0' =>'8',
),
),
),
),
'7' => array(
'title' =>'468x60',
'wrapper' =>'0',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'1',
'cat_option' =>'2',
'cats' => array(
'0' =>'6',
),
),
),
),
),
'scripts' => array(
'MASTER' => array(
'name' =>'MASTER',
'description' =>'',
'usemaster' =>'0',
'blocks' => array(
'0' =>'3',
'1' =>'4',
'2' =>'5',
'3' =>'6',
'4' =>'7',
),
),
'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(
'0' =>'1',
),
),
'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' =>'',
),
'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',
),
),
);
>> END SETTINGS -------
Categories
>> START CATS -------
$results = array(
'1' => array(
'id' =>'1',
'title' =>'468x15',
'ordinal' =>'5',
),
'3' => array(
'id' =>'3',
'title' =>'728x90',
'ordinal' =>'10',
),
'5' => array(
'id' =>'5',
'title' =>'120x600',
'ordinal' =>'1',
),
'6' => array(
'id' =>'6',
'title' =>'468x60 -- adsense',
'ordinal' =>'0',
),
'7' => array(
'id' =>'7',
'title' =>'728x15',
'ordinal' =>'0',
),
'8' => array(
'id' =>'8',
'title' =>'468x60 -- image',
'ordinal' =>'0',
),
);
>> END CATS -------
>> START ADS -------
$results = array(
'1' => array(
'id' =>'1',
'title' =>'adsense-forumdisplay.468x60.top',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'71334',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'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-6622354912738822";
google_alternate_color = "ffffff";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="0418482370";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "2222CC";
google_color_text = "000000";
google_color_url = "FFFFFF";
//--></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' =>'adsense-forumdisplay.468x60.bottom',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'71591',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'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-6622354912738822";
google_alternate_color = "f5f5ff";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="3802282106";
google_color_border = "FFFFFF";
google_color_bg = "F5F5FF";
google_color_link = "2222CC";
google_color_text = "000000";
google_color_url = "F5F5FF";
//--></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',
),
'3' => array(
'id' =>'3',
'title' =>'adsense-showthread.728x15',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'2285',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'1',
'template' =>'0',
'catid' =>'7',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6622354912738822";
google_alternate_color = "f5f5ff";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_channel ="6391025509";
google_color_border = "FFFFFF";
google_color_bg = "F5F5FF";
google_color_link = "2222CC";
google_color_text = "000000";
google_color_url = "F5F5FF";
//--></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',
),
'4' => array(
'id' =>'4',
'title' =>'adsense-header.468x60',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'142898',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'468',
'width' =>'60',
'frequency' =>'2',
'type' =>'3',
'template' =>'0',
'catid' =>'8',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'1',
'scripts' =>'|forumdisplay|showthread|editpost|newthread|calendar|online|printthread|profile|search|usercp|adv_index|',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6622354912738822";
google_alternate_color = "ffffff";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel ="2278154826";
google_color_border = "FFFFFF";
google_color_bg = "FfFfFF";
google_color_link = "2222CC";
google_color_text = "000000";
google_color_url = "FfFfFF";
//--></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',
),
'5' => array(
'id' =>'5',
'title' =>'adsense-rightcol.120x600',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'134503',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'3',
'template' =>'0',
'catid' =>'5',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6622354912738822";
google_alternate_ad_url = "http://actoguitar.com/images/other/actocorporation120x600.jpg";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="0374658309";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "2222CC";
google_color_text = "000000";
google_color_url = "000000";
//--></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',
),
'6' => array(
'id' =>'6',
'title' =>'adsense-forumhome.728x15',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'71467',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'3',
'template' =>'0',
'catid' =>'7',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6622354912738822";
google_alternate_color = "f5f5ff";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_channel ="6354970850";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "2222CC";
google_color_text = "000000";
google_color_url = "FFFFFF";
//--></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' =>'adsense-showthread.728x90',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'2181',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'1',
'template' =>'0',
'catid' =>'3',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6622354912738822";
google_alternate_color = "f5f5ff";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="5985308550";
google_color_border = "FFFFFF";
google_color_bg = "F5F5FF";
google_color_link = "2222CC";
google_color_text = "000000";
google_color_url = "F5F5FF";
//--></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' =>'adsense-forumdisplay.728x15x4',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'71571',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'3',
'template' =>'0',
'catid' =>'7',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6622354912738822";
google_alternate_color = "f5f5ff";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_channel ="1355316709";
google_color_border = "FFFFFF";
google_color_bg = "F5F5FF";
google_color_link = "2222CC";
google_color_text = "000000";
google_color_url = "F5F5FF";
//--></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',
),
'9' => array(
'id' =>'9',
'title' =>'adsense-forumdisplay.468x15',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'42',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'0',
'type' =>'1',
'template' =>'0',
'catid' =>'1',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<script type="text/javascript"><!--
google_ad_client = "pub-6622354912738822";
google_alternate_color = "ffffff";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al";
google_ad_channel ="1355316709";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "2222CC";
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',
),
'10' => array(
'id' =>'10',
'title' =>'channel signup 120x120',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'',
'hits' =>'0',
'views' =>'8138',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'0',
'height' =>'0',
'width' =>'0',
'frequency' =>'3',
'type' =>'3',
'template' =>'0',
'catid' =>'5',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'2',
'scripts' =>'|forumdisplay|showthread|',
'forums' =>'|230|',
'html' =>'<img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><a href="http://www.actoguitar.com/advertising/6143-get-paid-promote-yourself-complete-form.html"><img src="http://www.actoguitar.com/images/other/channel-signup120x120.jpg"></a>
<img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><a href="http://www.actoguitar.com/advertising/6143-get-paid-promote-yourself-complete-form.html"><img src="http://www.actoguitar.com/images/other/channel-signup120x120.jpg"></a>
<img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><a href="http://www.actoguitar.com/advertising/6143-get-paid-promote-yourself-complete-form.html"><img src="http://www.actoguitar.com/images/other/channel-signup120x120.jpg"></a>
<img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><img src="http://www.actoguitar.com/images/other/spacer80px.gif"><a href="http://www.actoguitar.com/advertising/6143-get-paid-promote-yourself-complete-form.html"><img src="http://www.actoguitar.com/images/other/channel-signup120x120.jpg"></a>',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'11' => array(
'id' =>'11',
'title' =>'actoguitar promotional header',
'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' =>'1',
'type' =>'3',
'template' =>'0',
'catid' =>'8',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'1',
'scripts' =>'|index|',
'forums' =>'',
'html' =>'<a href="http://www.actoguitar.com/articles/5644-ways-earn-actocash.html"><img src="http://www.actoguitar.com/images/other/open-business-banner.jpg" border="0"></a>',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'12' => array(
'id' =>'12',
'title' =>'actocorporation top banner',
'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' =>'1',
'type' =>'3',
'template' =>'0',
'catid' =>'8',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'1',
'scripts' =>'|index|',
'forums' =>'',
'html' =>'<a href="http://www.actoguitar.com/articles/5510-actoguitar-revolution-guitar-learning.html"><img src="http://www.actoguitar.com/images/other/open-business-banner2.jpg" border="0"></a>',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
);
>> END ADS -------
Templates with $GAB_ads[x] in them:
Styleid 1 Title header contains $GAB_ads[3]
Styleid 1 Title footer contains $GAB_ads[1]
Styleid 1 Title SHOWTHREAD contains $GAB_ads[0]
Styleid 1 Title FORUMHOME contains $GAB_ads[0]
Styleid 1 Title FORUMDISPLAY contains $GAB_ads[0]
Styleid 1 Title FORUMDISPLAY contains $GAB_ads[4]
Styleid 1 Title postbit contains $GAB_ads[4]
gab folder check
Warning: fopen(/home/actoguit/public_html/geek/gab/images/thisisatest.htm) [function.fopen]: failed to open stream: Permission denied in /admincp/GAB_admin.php on line 1908
Warning: fputs(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1909
Warning: fclose(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1910
GAB directory is valid, but the server process can not write to it. Either give the apache process ownership to the folder or chmod it to 0777
ActoNetwork
any help would be appreciated.