PDA

View Full Version : Banners not displaying


wez
12-11-2006, 09:10 PM
Hi im not having much luck getting this to display !!!

heres my debug info
>> START SETTINGS -------

$results = array(
'usergroups' => array(
),
'usergroups_view' => array(
'0' =>'4',
'1' =>'6',
'2' =>'8',
'3' =>'7',
'4' =>'2',
'5' =>'5',
'6' =>'1',
'7' =>'3',
),
'fieldtotoggle' =>'1',
'field_value_yes' =>'',
'max_width' =>'',
'max_height' =>'',
'server_path_to_banners' =>'/home/cgempi5/public_html/forum/geek/gab/images/',
'media_extensions' =>'',
'url_to_banners' =>'http://www.cgempire.com/forum/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' => array(
'0' =>'1',
),
),
),
),
),
'scripts' => array(
'MASTER' => array(
'name' =>'MASTER',
'description' =>'',
'usemaster' =>'0',
'blocks' => array(
'0' =>'1',
'1' =>'1',
'2' =>'1',
'3' =>'1',
'4' =>'1',
'5' =>'1',
'6' =>'1',
'7' =>'1',
'8' =>'1',
'9' =>'1',
),
),
'forumdisplay' => array(
'name' =>'forumdisplay',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
'0' =>'1',
'1' =>'1',
'2' =>'1',
'3' =>'1',
'4' =>'1',
),
),
'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(
'0' =>'1',
'1' =>'1',
'2' =>'1',
'3' =>'1',
'4' =>'1',
'5' =>'1',
'6' =>'1',
'7' =>'1',
'8' =>'1',
'9' =>'1',
),
),
'THIS_SCRIPT' => array(
'name' =>'THIS_SCRIPT',
'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 -------

Categories
>> START CATS -------

$results = array(
'1' => array(
'id' =>'1',
'title' =>'Header Banners',
'ordinal' =>'5',
),
'2' => array(
'id' =>'2',
'title' =>'Sky Scraper',
'ordinal' =>'20',
),
'3' => array(
'id' =>'3',
'title' =>'Footer Banners',
'ordinal' =>'10',
),
'4' => array(
'id' =>'4',
'title' =>'Other',
'ordinal' =>'30',
),
'5' => array(
'id' =>'5',
'title' =>'Unknown items',
'ordinal' =>'1',
),
'6' => array(
'id' =>'6',
'title' =>'wez',
'ordinal' =>'1',
),
);

>> END CATS -------
>> START ADS -------

$results = array(
'1' => array(
'id' =>'1',
'title' =>'best3d',
'startdate' =>'1102233600',
'enddate' =>'1167552000',
'img' =>'http://www.cgempire.com/forum/geek/gab/images/1/banner_dogwaffle_rampant.gif',
'hits' =>'0',
'views' =>'138',
'url' =>'http://www.thebest3d.com',
'userid' =>'1',
'max_views' =>'5000',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'468',
'width' =>'60',
'frequency' =>'3',
'type' =>'1',
'template' =>'0',
'catid' =>'1',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'1',
'scripts' =>'|MASTER|',
'forums' =>'',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
);

>> END ADS -------

Templates with $GAB_ads[x] in them:
Styleid 18 Title header contains $GAB_ads[1]
Styleid 18 Title header contains $GAB_ads[2]
Styleid 18 Title header contains $GAB_ads[3]
Styleid 18 Title navbar contains $GAB_ads[0]
Styleid 18 Title navbar contains $GAB_ads[1]
Styleid 18 Title navbar contains $GAB_ads[2]
Styleid 18 Title navbar contains $GAB_ads[3]
gab folder check
GAB directory looks valid and I can write to it!

The Geek
12-11-2006, 10:04 PM
Is your banners script option set only to Master? It should really be set to all.

Also, right now, you have the same billboard appearing 9 times a page - $GAB_ads[0] to $GAB_ads[9] will all contain the same result. Im sure its because you were having problems trying to get it to show :)