cygy2k
03-27-2008, 06:50 PM
I followed the directions to a T, re-read them and triple checked everything, but I'm still not able to get things to work correctly.
I am testing with one banner, one billboard and no restrictions on scripts. I've checked through the readme (great and indepth by the way) but can't figure out where things are wrong.
If I place "$GAB_ads[0]" in my footer template, it will show the ad but nothing after it (i.e. copyright info, footer, etc). If I place that call in the new ad template in 3.7, no ad shows but the rest of the footer is fine. I've placed "GAB_ads" in vBAdvanced as I read but that still didn't change things.
Below is my settings file.
>> START SETTINGS -------
$results = array(
'usergroups' => array(
),
'usergroups_view' => array(
'0' => '4',
'1' => '6',
'2' => '16',
'3' => '22',
'4' => '27',
'5' => '30',
'6' => '15',
'7' => '7',
'8' => '29',
'9' => '2',
'10' => '5',
'11' => '31',
'12' => '32',
'13' => '1',
'14' => '3',
),
'fieldtotoggle' => '0',
'field_value_yes' => '',
'max_width' => '',
'max_height' => '',
'server_path_to_banners' => '/home/cyclone/public_html/forum/geek/gab/images',
'media_extensions' => '',
'url_to_banners' => 'http://www.cyclonefanatic.com/forum/geek/gab/images',
'url_advertising' => '',
'url_turn_off_ads' => '',
'redirectpage' => 'gab_redirect.php',
'cyclerate' => '2147483647',
'persist_throttle' => '',
'htmltemplates' => '',
'blocks' => array(
'1' => array(
'title' => 'Default',
'wrapper' => '0',
'method' => '1',
'ads' => array(
'0' => array(
'adtype' => '3',
'number' => '1',
'weighting' => '100',
'cat_option' => '2',
'cats' => array(
'0' => '3',
),
),
),
),
),
'scripts' => array(
'MASTER' => array(
'name' => 'MASTER',
'description' => '',
'usemaster' => '',
'blocks' => array(
'0' => '1',
),
),
'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(
),
),
),
'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 -------
>> START CATS -------
$results = array(
'1' => array(
'id' => '1',
'title' => 'Header Banners',
'ordinal' => '5',
),
'2' => array(
'id' => '2',
'title' => 'Skyscraper Banners',
'ordinal' => '20',
),
'3' => array(
'id' => '3',
'title' => 'Footer Banners',
'ordinal' => '10',
),
'4' => array(
'id' => '4',
'title' => 'Other Items',
'ordinal' => '30',
),
);
>> END CATS -------
>> START ADS -------
$results = array(
'1' => array(
'id' => '1',
'title' => 'Google Footer 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' => '3',
'type' => '3',
'template' => '0',
'catid' => '3',
'trackviews' => '0',
'trackhits' => '0',
'scriptoption' => '1',
'forumoption' => '1',
'scripts' => '',
'forums' => '',
'html' => '<script type="text/javascript"><!--
google_ad_client = "pub-8335902615691454";
/* Bottom Banner, 728x90 */
google_ad_slot = "1383843451";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">',
'templatetype' => '1',
'suspended' => '0',
'editimage' => '0',
'editfrequency' => '0',
'editbanner' => '0',
),
);
>> END ADS -------
Templates containing $GAB_ads[x] variables:
GAB Folder Check:
GAB directory looks valid and I can write to it!
I am testing with one banner, one billboard and no restrictions on scripts. I've checked through the readme (great and indepth by the way) but can't figure out where things are wrong.
If I place "$GAB_ads[0]" in my footer template, it will show the ad but nothing after it (i.e. copyright info, footer, etc). If I place that call in the new ad template in 3.7, no ad shows but the rest of the footer is fine. I've placed "GAB_ads" in vBAdvanced as I read but that still didn't change things.
Below is my settings file.
>> START SETTINGS -------
$results = array(
'usergroups' => array(
),
'usergroups_view' => array(
'0' => '4',
'1' => '6',
'2' => '16',
'3' => '22',
'4' => '27',
'5' => '30',
'6' => '15',
'7' => '7',
'8' => '29',
'9' => '2',
'10' => '5',
'11' => '31',
'12' => '32',
'13' => '1',
'14' => '3',
),
'fieldtotoggle' => '0',
'field_value_yes' => '',
'max_width' => '',
'max_height' => '',
'server_path_to_banners' => '/home/cyclone/public_html/forum/geek/gab/images',
'media_extensions' => '',
'url_to_banners' => 'http://www.cyclonefanatic.com/forum/geek/gab/images',
'url_advertising' => '',
'url_turn_off_ads' => '',
'redirectpage' => 'gab_redirect.php',
'cyclerate' => '2147483647',
'persist_throttle' => '',
'htmltemplates' => '',
'blocks' => array(
'1' => array(
'title' => 'Default',
'wrapper' => '0',
'method' => '1',
'ads' => array(
'0' => array(
'adtype' => '3',
'number' => '1',
'weighting' => '100',
'cat_option' => '2',
'cats' => array(
'0' => '3',
),
),
),
),
),
'scripts' => array(
'MASTER' => array(
'name' => 'MASTER',
'description' => '',
'usemaster' => '',
'blocks' => array(
'0' => '1',
),
),
'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(
),
),
),
'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 -------
>> START CATS -------
$results = array(
'1' => array(
'id' => '1',
'title' => 'Header Banners',
'ordinal' => '5',
),
'2' => array(
'id' => '2',
'title' => 'Skyscraper Banners',
'ordinal' => '20',
),
'3' => array(
'id' => '3',
'title' => 'Footer Banners',
'ordinal' => '10',
),
'4' => array(
'id' => '4',
'title' => 'Other Items',
'ordinal' => '30',
),
);
>> END CATS -------
>> START ADS -------
$results = array(
'1' => array(
'id' => '1',
'title' => 'Google Footer 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' => '3',
'type' => '3',
'template' => '0',
'catid' => '3',
'trackviews' => '0',
'trackhits' => '0',
'scriptoption' => '1',
'forumoption' => '1',
'scripts' => '',
'forums' => '',
'html' => '<script type="text/javascript"><!--
google_ad_client = "pub-8335902615691454";
/* Bottom Banner, 728x90 */
google_ad_slot = "1383843451";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">',
'templatetype' => '1',
'suspended' => '0',
'editimage' => '0',
'editfrequency' => '0',
'editbanner' => '0',
),
);
>> END ADS -------
Templates containing $GAB_ads[x] variables:
GAB Folder Check:
GAB directory looks valid and I can write to it!