The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Advertising Banner System (http://www.thevbgeek.com/forumdisplay.php?f=28)
-   -   Need help.... (http://www.thevbgeek.com/showthread.php?t=2510)

Sateknic 11-28-2006 07:26 PM

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.

The Geek 11-28-2006 07:41 PM

Can you post the contents of the debug in a post between [php] tags?

Sateknic 11-28-2006 07:45 PM

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 


The Geek 11-28-2006 07:50 PM

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!

Sateknic 11-28-2006 08:49 PM

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.

The Geek 11-29-2006 07:03 AM

You need to create additional billboards with additional ads. Right now you only have 1 billboard (default) with 1 ad configured.

Sateknic 11-29-2006 11:08 PM

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?

The Geek 11-30-2006 07:56 AM

can you repost your debug data?

Sateknic 11-30-2006 10:23 AM

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.

The Geek 11-30-2006 12:11 PM

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.


All times are GMT. The time now is 01:35 PM.

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