The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Advertising Banner System

Geek Advertising Banner System GAB is a highly configurable banner management system for vBulletin.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2006, 03:33 PM
poongamer poongamer is offline
Member
 
Join Date: Nov 2005
Posts: 37
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default Still cant get different blocks to show

Trying to get 1 set of ads (Site Ads) in the header and another (default) in the main page...

I have the 'Master' setup as the following:

$GAB_ads[0] - Default
$GAB_ads[1] - Site Ads

This way all the pages will show the ads in the header and the main forum page.


Under Site Ads - I have it choosing ads from Site Ads

I have designated one ad (for test purposes) to the catagory 'Site Ads'

When I put the $GAB_ads[1] in the header nothing shows...I put $GAB_ads[0] there just to make sure that it wasnt something else and that will show the same block as the main page.

Not sure why the $GAB_ads[1] is not showing anything. Seems to me all is setup correctly.
Reply With Quote
  #2  
Old 02-19-2006, 03:40 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

is this with RC2? Can you paste the debug results for me?
Reply With Quote
  #3  
Old 02-19-2006, 03:43 PM
poongamer poongamer is offline
Member
 
Join Date: Nov 2005
Posts: 37
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default here you go

PHP Code:
>> START SETTINGS ------- 

$results = array(
      
'usergroups' => array(
      ),
      
'usergroups_view' => array(
         
'0'            =>'4',
         
'1'            =>'10',
         
'2'            =>'22',
         
'3'            =>'13',
         
'4'            =>'7',
         
'5'            =>'6',
         
'6'            =>'27',
         
'7'            =>'5',
         
'8'            =>'9',
         
'9'            =>'28',
         
'10'            =>'2',
         
'11'            =>'24',
         
'12'            =>'11',
         
'13'            =>'19',
         
'14'            =>'15',
         
'15'            =>'1',
         
'16'            =>'3',
      ),
      
'fieldtotoggle'            =>'5',
      
'field_value_yes'            =>'',
      
'max_width'            =>'',
      
'max_height'            =>'',
      
'server_path_to_banners'            =>'/big/dom/xrustysoaptraders/www/forums/geek/gab/images',
      
'media_extensions'            =>'',
      
'url_to_banners'            =>'http://www.rustysoaptraders.com/forums/geek/gab/images/',
      
'url_advertising'            =>'http://www.rustysoaptraders.com/forums/view.php?pg=advertise',
      
'url_turn_off_ads'            =>'',
      
'redirectpage'            =>'gab_redirect.php',
      
'cyclerate'            =>'4300',
      
'persist_throttle'            =>'',
      
'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'            =>'Header',
            
'wrapper'            =>'0',
            
'method'            =>'1',
            
'ads' => array(
               
'0' => array(
                  
'adtype'            =>'1',
                  
'number'            =>'1',
                  
'cat_option'            =>'1',
                  
'cats' => array(
                     
'0'            =>'4',
                  ),
               ),
            ),
         ),
         
'3' => array(
            
'title'            =>'Main Page Ads',
            
'wrapper'            =>'0',
            
'method'            =>'1',
            
'ads' => array(
               
'0' => array(
                  
'adtype'            =>'1',
                  
'number'            =>'1',
                  
'cat_option'            =>'1',
                  
'cats' => array(
                     
'0'            =>'4',
                  ),
               ),
            ),
         ),
         
'4' => array(
            
'title'            =>'Site Ads',
            
'wrapper'            =>'0',
            
'method'            =>'1',
            
'ads' => array(
               
'0' => array(
                  
'adtype'            =>'1',
                  
'number'            =>'1',
                  
'cat_option'            =>'2',
                  
'cats' => array(
                     
'0'            =>'11',
                  ),
               ),
            ),
         ),
      ),
      
'scripts' => array(
         
'MASTER' => array(
            
'name'            =>'MASTER',
            
'description'            =>'',
            
'usemaster'            =>'0',
            
'blocks' => array(
               
'0'            =>'1',
               
'1'            =>'4',
            ),
         ),
         
'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' => array(
            
'usemaster'            =>'',
         ),
      ),
      
'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',
         ),
      ),
      
'categories'            =>'',
);>> 
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',
         ),
         
'11' => array(
            
'id'            =>'11',
            
'title'            =>'Site Ads',
            
'ordinal'            =>'40',
         ),
);>> 
END CATS ------- 
>> 
START ADS ------- 

$results = array(
            
'3' => array(
               
'id'            =>'3',
               
'title'            =>'NW Card Supplies',
               
'startdate'            =>'-68400',
               
'enddate'            =>'1293771600',
               
'img'            =>'http://www.rustysoaptraders.com/forums/geek/gab/images/0/nwcardbanner.jpg',
               
'hits'            =>'437',
               
'views'            =>'0',
               
'url'            =>'http://nwcardsupplies.com',
               
'userid'            =>'0',
               
'max_views'            =>'0',
               
'max_hits'            =>'0',
               
'isactive'            =>'1',
               
'height'            =>'0',
               
'width'            =>'0',
               
'frequency'            =>'1',
               
'type'            =>'1',
               
'template'            =>'0',
               
'catid'            =>'1',
               
'trackviews'            =>'0',
               
'trackhits'            =>'0',
               
'scriptoption'            =>'1',
               
'forumoption'            =>'1',
               
'scripts'            =>'||',
               
'forums'            =>'||',
               
'html'            =>'',
               
'templatetype'            =>'0',
            ),
            
'4' => array(
               
'id'            =>'4',
               
'title'            =>'Trading Card Central',
               
'startdate'            =>'-68400',
               
'enddate'            =>'-68400',
               
'img'            =>'http://www.rustysoaptraders.com/forums/geek/gab/images/0/tcc_bnnr.gif',
               
'hits'            =>'0',
               
'views'            =>'0',
               
'url'            =>'http://tradingcardcentral.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',
            ),
            
'5' => array(
               
'id'            =>'5',
               
'title'            =>'RT Cards',
               
'startdate'            =>'-68400',
               
'enddate'            =>'-68400',
               
'img'            =>'http://www.rustysoaptraders.com/forums/geek/gab/images/0/rtbnnr.gif',
               
'hits'            =>'389',
               
'views'            =>'0',
               
'url'            =>'http://www.sportlots.com/cgi-bin/odbic.exe/inven/invenbin/dealerpage.tpl?dealer=rtactser',
               
'userid'            =>'0',
               
'max_views'            =>'0',
               
'max_hits'            =>'0',
               
'isactive'            =>'1',
               
'height'            =>'0',
               
'width'            =>'0',
               
'frequency'            =>'1',
               
'type'            =>'1',
               
'template'            =>'0',
               
'catid'            =>'1',
               
'trackviews'            =>'0',
               
'trackhits'            =>'0',
               
'scriptoption'            =>'1',
               
'forumoption'            =>'1',
               
'scripts'            =>'||',
               
'forums'            =>'||',
               
'html'            =>'',
               
'templatetype'            =>'0',
            ),
            
'7' => array(
               
'id'            =>'7',
               
'title'            =>'Upper Deck 1',
               
'startdate'            =>'-68400',
               
'enddate'            =>'-68400',
               
'img'            =>'http://www.rustysoaptraders.com/forums/geek/gab/images/0/udbanner.gif',
               
'hits'            =>'1',
               
'views'            =>'0',
               
'url'            =>'http://upperdeck.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',
            ),
            
'10' => array(
               
'id'            =>'10',
               
'title'            =>'Inkworks',
               
'startdate'            =>'-68400',
               
'enddate'            =>'-68400',
               
'img'            =>'http://www.rustysoaptraders.com/forums/geek/gab/images/0/inkworkslogo.jpg',
               
'hits'            =>'0',
               
'views'            =>'0',
               
'url'            =>'http://inkworks.com',
               
'userid'            =>'0',
               
'max_views'            =>'0',
               
'max_hits'            =>'0',
               
'isactive'            =>'1',
               
'height'            =>'0',
               
'width'            =>'0',
               
'frequency'            =>'3',
               
'type'            =>'1',
               
'template'            =>'0',
               
'catid'            =>'11',
               
'trackviews'            =>'0',
               
'trackhits'            =>'0',
               
'scriptoption'            =>'2',
               
'forumoption'            =>'1',
               
'scripts'            =>'|MASTER|',
               
'forums'            =>'||',
               
'html'            =>'',
               
'templatetype'            =>'0',
            ),
            
'11' => array(
               
'id'            =>'11',
               
'title'            =>'Topps',
               
'startdate'            =>'-68400',
               
'enddate'            =>'-68400',
               
'img'            =>'http://www.rustysoaptraders.com/forums/geek/gab/images/0/clay_banner.gif',
               
'hits'            =>'0',
               
'views'            =>'0',
               
'url'            =>'http://topps.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',
            ),
            
'12' => array(
               
'id'            =>'12',
               
'title'            =>'Ernie's Baseball Cards',
               '
startdate'            =>'-68400',
               '
enddate'            =>'-68400',
               '
img'            =>'http://www.rustysoaptraders.com/forums/geek/ gab /images/0/Site- Banner -Final.jpg',
               
'hits'            =>'169',
               
'views'            =>'0',
               
'url'            =>'http://www.ctsportscards.com?source=rustysoap',
               
'userid'            =>'0',
               
'max_views'            =>'0',
               
'max_hits'            =>'0',
               
'isactive'            =>'1',
               
'height'            =>'0',
               
'width'            =>'0',
               
'frequency'            =>'2',
               
'type'            =>'1',
               
'template'            =>'0',
               
'catid'            =>'1',
               
'trackviews'            =>'1',
               
'trackhits'            =>'1',
               
'scriptoption'            =>'1',
               
'forumoption'            =>'1',
               
'scripts'            =>'||',
               
'forums'            =>'||',
               
'html'            =>'',
               
'templatetype'            =>'0',
            ),
);>> 
END ADS ------- 

Templates with $GAB_ads[xin them:
Styleid 22 Title header contains $GAB_ads[0]
Styleid 21 Title header contains $GAB_ads[0]
Styleid 21 Title header contains $GAB_ads[1]
Styleid 9 Title navbar contains $GAB_ads[0]
Styleid 20 Title header contains $GAB_ads[0]
Styleid 15 Title header contains $GAB_ads[0]
gab  folder check
GAB directory looks valid 
and I can write to it!

vBulletin v3.5.1Copyright Â©2000-2006Jelsoft Enterprises Ltd
Reply With Quote
  #4  
Old 02-19-2006, 03:56 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

It looks like the only style where $GAB_ads[1] is put is in style 21. Make sure you are using that style to view.
The other thing I noticed is that the only ad that would get pulled there is your inkworks ad. For some reason, its set to show in the MASTER script, though that shouldnt be there, it should read || which could be the reason why. Can you edit the ad and make sure that no scripts are selected?

Thanks
Reply With Quote
  #5  
Old 02-19-2006, 04:08 PM
poongamer poongamer is offline
Member
 
Join Date: Nov 2005
Posts: 37
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default

Quote:
Originally Posted by The Geek
It looks like the only style where $GAB_ads[1] is put is in style 21. Make sure you are using that style to view.
The other thing I noticed is that the only ad that would get pulled there is your inkworks ad. For some reason, its set to show in the MASTER script, though that shouldnt be there, it should read || which could be the reason why. Can you edit the ad and make sure that no scripts are selected?

Thanks
I am using the correct Style..

The Inkworks ad is set to 'All Scripts'
The Site Ads Billboard has 1 ad that is set to pull only from the Site Ads catagory
The Inkworks ad is the only one in the Site Ads catagory.

If I change the Billboard Site Ads to 'All Catagories' then a second set of main ads does show...but If I change it to Select Catagory (and choose Site Ads) nothing shows.
Reply With Quote
  #6  
Old 02-19-2006, 04:43 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Can you try something for me?

Edit your gab_class_core.php file and change this line:
PHP Code:
$sql "SELECT id,img,views,url,type,trackviews,trackhits,html,frequency,title,height,width,catid,templatetype FROM " TABLE_PREFIX "GAB_ads WHERE isactive = 1 AND (scripts = '||' OR scripts like '%|$scriptname|%') $forumwhere"
to
PHP Code:
$sql "SELECT id,img,views,url,type,trackviews,trackhits,html,frequency,title,height,width,catid,templatetype FROM " TABLE_PREFIX "GAB_ads WHERE isactive = 1 AND (scripts = '||' OR scripts like '%|$scriptname|%' OR scripts = '|MASTER|') $forumwhere"
And let me know if that made any difference.

Thanks!
Reply With Quote
  #7  
Old 02-19-2006, 05:34 PM
poongamer poongamer is offline
Member
 
Join Date: Nov 2005
Posts: 37
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default

that didnt work either
Reply With Quote
  #8  
Old 02-19-2006, 06:00 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

can you PM me an admincp account?
Reply With Quote
  #9  
Old 02-20-2006, 11:50 PM
poongamer poongamer is offline
Member
 
Join Date: Nov 2005
Posts: 37
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default

pm sent - thanks for looking
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange two blocks show after my modules. Theoldwiz Geek Article and Review System 1 02-28-2008 07:53 PM
Who to add more Ad Blocks? vitoreis Geek Advertising Banner System 6 02-08-2008 05:15 PM
sides blocks efil Geek Article and Review System 2 03-24-2007 04:36 AM
Can you remove Feature Blocks entirely? vbjay Geek Article and Review System 1 06-19-2006 07:56 PM
Adsense blocks gldtn Geek Advertising Banner System 4 10-26-2005 07:04 PM


All times are GMT. The time now is 09:40 AM.


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