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 11-28-2006, 07:26 PM
Sateknic Sateknic is offline
Junior Member
 
Join Date: Jul 2006
Posts: 15
GeekMart License Holder Geek Advertising Banner License Holder 
Default Need help....

I've installed this script over at TalkDevelopers.com.

The problem I have is I'm not quite sure what I have to do in order for the advertisements to display.

Setup: 468x60 banners in header, text links and 125x125 advertisements on the main page.

I tried the string it tells you to use in the skins, but I'm not sure which number, etc.

Any help would be greatly appreciated,
Adam Scoville.
Reply With Quote
  #2  
Old 11-28-2006, 07:41 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 post the contents of the debug in a post between [php] tags?
Reply With Quote
  #3  
Old 11-28-2006, 07:45 PM
Sateknic Sateknic is offline
Junior Member
 
Join Date: Jul 2006
Posts: 15
GeekMart License Holder Geek Advertising Banner License Holder 
Default

PHP Code:
>> 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/sitefana/public_html/geek/gab/images',
      
'media_extensions'            =>'',
      
'url_to_banners'            =>'http://www.talkdevelopers.com/geek/gab/images/',
      
'url_advertising'            =>'',
      
'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'            =>'',
               ),
            ),
         ),
      ),
      
'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'            =>'1',
         ),
);

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

$results = array(
);

>> 
END ADS -------

Templates with $GAB_ads[xin them:
gab  folder check

Warning
fopen(/home/sitefana/public_html/geek/gab/images/thisisatest.htm) [function.fopen]: failed to open streamPermission denied in /admincp/GAB_admin.php on line 1908

Warning
fputs(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1909

Warning
fclose(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1910
GAB directory is valid
but the server process can not write to itEither give the apache process ownership to the folder or chmod it to 0777 
Reply With Quote
  #4  
Old 11-28-2006, 07:50 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

According to that configuration - $GAB_ads[0] will have the output in it. You can see what numbers billboards are assigned to by admincp-> gab ->scripts->master

There you will see a list of each $GAB_ads[x] and which (if any) billboard is assigned to it.

Problem is, you dont have any banners uploaded yet and your permissions are set yet (chmod geek/ gab /images and subfolders to 0777)

HTHs!
Reply With Quote
  #5  
Old 11-28-2006, 08:49 PM
Sateknic Sateknic is offline
Junior Member
 
Join Date: Jul 2006
Posts: 15
GeekMart License Holder Geek Advertising Banner License Holder 
Default

All I see in the dropdown boxes is Default.

What would I do if I wanted 468x60 ads in the header, text links and some other ads below that to the side of the forums?

I apologize, I'm new to this and want to get it working properly.
Reply With Quote
  #6  
Old 11-29-2006, 07:03 AM
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

You need to create additional billboards with additional ads. Right now you only have 1 billboard (default) with 1 ad configured.
Reply With Quote
  #7  
Old 11-29-2006, 11:08 PM
Sateknic Sateknic is offline
Junior Member
 
Join Date: Jul 2006
Posts: 15
GeekMart License Holder Geek Advertising Banner License Holder 
Default

I've managed to get text links working.

Now, my other problem is it's only picking up one 1 text link and I have 2 or 3 there right now. Any help on that?
Reply With Quote
  #8  
Old 11-30-2006, 07:56 AM
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 repost your debug data?
Reply With Quote
  #9  
Old 11-30-2006, 10:23 AM
Sateknic Sateknic is offline
Junior Member
 
Join Date: Jul 2006
Posts: 15
GeekMart License Holder Geek Advertising Banner License Holder 
Default

PHP Code:
>> 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/sitefana/public_html/geek/gab/images',
      
'media_extensions'            =>'',
      
'url_to_banners'            =>'http://www.talkdevelopers.com/geek/gab/images/',
      
'url_advertising'            =>'',
      
'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'            =>'Text Links',
            
'wrapper'            =>'0',
            
'method'            =>'1',
            
'ads' => array(
               
'0' => array(
                  
'adtype'            =>'3',
                  
'number'            =>'30',
                  
'cat_option'            =>'2',
                  
'cats' => array(
                     
'0'            =>'4',
                  ),
               ),
            ),
         ),
      ),
      
'scripts' => array(
         
'MASTER' => array(
            
'name'            =>'MASTER',
            
'description'            =>'',
            
'usemaster'            =>'0',
            
'blocks' => array(
               
'0'            =>'1',
               
'1'            =>'2',
            ),
         ),
         
'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'            =>'1',
         ),
);

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

$results = array(
            
'2' => array(
               
'id'            =>'2',
               
'title'            =>'Brius',
               
'startdate'            =>'1164603600',
               
'enddate'            =>'1167195600',
               
'img'            =>'',
               
'hits'            =>'0',
               
'views'            =>'0',
               
'url'            =>'',
               
'userid'            =>'0',
               
'max_views'            =>'0',
               
'max_hits'            =>'0',
               
'isactive'            =>'1',
               
'height'            =>'0',
               
'width'            =>'0',
               
'frequency'            =>'2',
               
'type'            =>'3',
               
'template'            =>'0',
               
'catid'            =>'4',
               
'trackviews'            =>'1',
               
'trackhits'            =>'1',
               
'scriptoption'            =>'1',
               
'forumoption'            =>'1',
               
'scripts'            =>'',
               
'forums'            =>'',
               
'html'            =>'<a href="http://www.brius.com/" target="_blank">Brius Hosting</a> <br />',
               
'templatetype'            =>'0',
               
'suspended'            =>'0',
               
'editimage'            =>'0',
               
'editfrequency'            =>'0',
               
'editbanner'            =>'0',
            ),
            
'3' => array(
               
'id'            =>'3',
               
'title'            =>'AdamScoville',
               
'startdate'            =>'1164776400',
               
'enddate'            =>'1167368400',
               
'img'            =>'',
               
'hits'            =>'0',
               
'views'            =>'0',
               
'url'            =>'',
               
'userid'            =>'0',
               
'max_views'            =>'0',
               
'max_hits'            =>'0',
               
'isactive'            =>'1',
               
'height'            =>'0',
               
'width'            =>'0',
               
'frequency'            =>'2',
               
'type'            =>'3',
               
'template'            =>'0',
               
'catid'            =>'4',
               
'trackviews'            =>'1',
               
'trackhits'            =>'1',
               
'scriptoption'            =>'1',
               
'forumoption'            =>'1',
               
'scripts'            =>'',
               
'forums'            =>'',
               
'html'            =>'<a href="http://www.adamscoville.net/" target="_blank">AdamScoville.net</a> <br />',
               
'templatetype'            =>'0',
               
'suspended'            =>'0',
               
'editimage'            =>'0',
               
'editfrequency'            =>'0',
               
'editbanner'            =>'0',
            ),
);

>> 
END ADS -------

Templates with $GAB_ads[xin them:
Styleid 2 Title FORUMHOME contains $GAB_ads[1]
gab  folder check

Warning
fopen(/home/sitefana/public_html/geek/gab/images/thisisatest.htm) [function.fopen]: failed to open streamPermission denied in /admincp/GAB_admin.php on line 1908

Warning
fputs(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1909

Warning
fclose(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1910
GAB directory is valid
but the server process can not write to itEither give the apache process ownership to the folder or chmod it to 0777 
Also all the folders are set to CHMOD 777 and it's still saying that error.
Reply With Quote
  #10  
Old 11-30-2006, 12:11 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

THere are only 2 ads in there. You have 2 blocks assigned in your master script:
$GAB_ads[0]
and
$GAB_ads[1]

But you only have $GAB_ads[1] in your forumhome template. Put $GAB_ads[0] in a template and another will appear.
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


All times are GMT. The time now is 02:43 PM.


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