The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Advertising Banner System (http://www.thevbgeek.com/forumdisplay.php?f=28)
-   -   forum specific banner not working (http://www.thevbgeek.com/showthread.php?t=1761)

ppc 07-16-2006 02:43 PM

forum specific banner not working
 
Just purchased and when i select a specific forum for a banner to be shown on, it does not work and it shows the banner on every forum.

thanks

The Geek 07-17-2006 09:08 PM

can you post your maintenence debug?

ppc 07-17-2006 10:19 PM

>> 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' =>'/var/www/vhosts/mysite.com/httpdocs/geek/gab/images',
'media_extensions' =>'',
'url_to_banners' =>'http://www.mysite.com/geek/gab/images/',
'url_advertising' =>'http://www.mysite.com/advertising.html',
'url_turn_off_ads' =>'',
'redirectpage' =>'gab_redirect.php',
'cyclerate' =>'50',
'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' =>'6',
),
),
),
),
),
'scripts' => array(
'MASTER' => array(
'name' =>'MASTER',
'description' =>'',
'usemaster' =>'0',
'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(
),
),
'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' =>'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' =>'2',
),
'6' => array(
'id' =>'6',
'title' =>'Other2',
'ordinal' =>'1',
),
);>> END CATS -------
>> START ADS -------

$results = array(
'3' => array(
'id' =>'3',
'title' =>'test',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'http://www.mysite.com/semail.gif',
'hits' =>'0',
'views' =>'2121',
'url' =>'http://google.com',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'0',
'type' =>'1',
'template' =>'0',
'catid' =>'6',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'2',
'scripts' =>'',
'forums' =>'|12|',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'4' => array(
'id' =>'4',
'title' =>'test2',
'startdate' =>'0',
'enddate' =>'0',
'img' =>'http://mysite.com/support/themes/client_default/supportsuite.gif',
'hits' =>'0',
'views' =>'0',
'url' =>'http://aol.com',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'0',
'type' =>'1',
'template' =>'0',
'catid' =>'1',
'trackviews' =>'0',
'trackhits' =>'0',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
);>> END ADS -------

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

The Geek 07-20-2006 12:55 PM

can you try this for me?

Edit your geek/gab/includes/gab_class_core.php file and change:

PHP Code:

                $forumlimit " AND (forums like '%|$forum|%' OR forums = '' OR forums = '||') "

to

PHP Code:

                $forumwhere " AND (forums like '%|$forum|%' OR forums = '' OR forums = '||') "

Let me know if that helps

bassnutz 07-24-2006 10:35 PM

Well, I'm not sure if it will work for him.....but it fixed the same problem I was having.

:cool:

Thanks.

The Geek 07-25-2006 07:22 AM

Hey bass :)

The latest version has this (and a couple other) bug fixes applied

MotMann 09-12-2006 06:36 AM

Geek.. it's not workin.

The Banner displayed in all Forums .

The Geek 09-12-2006 08:00 AM

Make a new troubleshooting thread and put your debug code in a php block for me


All times are GMT. The time now is 07:56 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.