PDA

View Full Version : Followed Directions - Triple Checked - Still No Go


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!

Morgan
03-27-2008, 09:39 PM
For Google ads, not sure where it is coming from, but I see a Google ad in the footer of your page, so not sure what to suggest. For vBa CMPS see this (http://www.thevbgeek.com/showthread.php?t=4070) thread.

cygy2k
03-27-2008, 10:11 PM
Right now I have it setup just through template edits using the Google code, not through your mod. I would check vBA, as I already did, but it happens even on non vBA pages, i.e. the entire forum.

Morgan
03-27-2008, 10:28 PM
What happens? The non page end or ??? :confused: If you can set things to make it happen, and provide a link, it might help me to see what happens in action.

cygy2k
03-28-2008, 01:19 PM
Well the thing is I can't just have the bottom half of my site not showing just so you can see there is a bug somewhere. I have millions of hits a month and I think having half my site not show would cause a few adverse reactions for my ad revenue.

Morgan
03-28-2008, 04:55 PM
Easy enough to get around. Use the following in the vB footer template so only members of usergroup 6 can see the ads, and then if you PM me admin level login info, I can see what is going on, whereas anyone not in usergroup 6 cannot:

<if condition="$bbuserinfo[usergroupid] == 6">
$GAB_ads[0]
</if>