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
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2007, 11:29 PM
Loco's Avatar
Loco Loco is offline
Senior Member
 
Join Date: Nov 2005
Posts: 132
Geek Article and Review System License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Question adding a 2nd placement

Hello, I need a little help.

I've only had gab_[0] in one place on my site.. In the header, and I see how I can make banners rotate.


now, I'm stumped on what to add and how to set it up so I can rotate a billboard add in the post.

Right now I have the google add at the end of the postbit template.

If need be, I can make a small donation ( a few $'s ) for a step by step breakdown for me.

I've watched the videos and read all that I can find and I just can't seem to completely grasp it.

thanks
-Brandon
__________________
-----==== Check out The Best Forum Ever! & my new biz Sheley Enterprises =====-----
I offer contract work marketing and modifying forums, let me know if you have any questions.
Reply With Quote
  #2  
Old 01-29-2007, 05:07 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

To place a gab banner in a postbit, there is an additional step you need to take: You need to create a hook to put $GAB_ads in the scope of the postbit constructor as it is created in a function.

Create a new hook called whatever in postbit_display_start with the following code:

global $GAB_ads;

Then $GAB_ads[x] will show in your postbits

HTHs!
Reply With Quote
  #3  
Old 01-30-2007, 12:11 AM
Loco's Avatar
Loco Loco is offline
Senior Member
 
Join Date: Nov 2005
Posts: 132
Geek Article and Review System License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

okay, I did that

and now when I try to make a google billboard, what scripts do I use ?

here is this if it helps

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

$results = array(
	  'usergroups' => array(
	  ),
	  'usergroups_view' => array(
	     '0'			=>'4',
	     '1'			=>'6',
	     '2'			=>'8',
	     '3'			=>'9',
	     '4'			=>'7',
	     '5'			=>'2',
	     '6'			=>'5',
	     '7'			=>'1',
	     '8'			=>'3',
	     '9'			=>'11',
	  ),
	  'fieldtotoggle'			=>'1',
	  'field_value_yes'			=>'',
	  'max_width'			=>'',
	  'max_height'			=>'',
	  'server_path_to_banners'			=>'/home/vbull/vbulletinsetup.com/html/forum/geek/gab/images',
	  'media_extensions'			=>'',
	  'url_to_banners'			=>'http://forum.vbulletinsetup.com/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'			=>'0',
	        'method'			=>'1',
	        'ads' => array(
	           '0' => array(
	              'adtype'			=>'3',
	              '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(
	        '2' => array(
	           'id'			=>'2',
	           'title'			=>'vbseo',
	           'startdate'			=>'0',
	           'enddate'			=>'0',
	           'img'			=>'',
	           'hits'			=>'0',
	           'views'			=>'58470',
	           'url'			=>'',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'0',
	           'height'			=>'0',
	           'width'			=>'0',
	           'frequency'			=>'0',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'1',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'1',
	           'forumoption'			=>'1',
	           'scripts'			=>'',
	           'forums'			=>'',
	           'html'			=>'<a href="http://www.vbseo.com/158_1_1_4/"><img src="http://www.vbseo.com/aff/banners/banner_vbseo_468x60_01.gif" border="0" alt="" /></a>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
	        '4' => array(
	           'id'			=>'4',
	           'title'			=>'google2',
	           'startdate'			=>'0',
	           'enddate'			=>'0',
	           'img'			=>'',
	           'hits'			=>'0',
	           'views'			=>'128789',
	           'url'			=>'',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'0',
	           'height'			=>'0',
	           'width'			=>'0',
	           'frequency'			=>'1',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'1',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'1',
	           'forumoption'			=>'1',
	           'scripts'			=>'',
	           'forums'			=>'',
	           'html'			=>'<script type="text/javascript"><!--
google_ad_client = "pub-9279618852838129";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
//2006-10-04: vbsetup-banner
google_ad_channel ="8174653465";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0066CC";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
	        '5' => array(
	           'id'			=>'5',
	           'title'			=>'google',
	           'startdate'			=>'0',
	           'enddate'			=>'0',
	           'img'			=>'',
	           'hits'			=>'0',
	           'views'			=>'120268',
	           'url'			=>'',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'0',
	           'height'			=>'0',
	           'width'			=>'0',
	           'frequency'			=>'1',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'1',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'1',
	           'forumoption'			=>'1',
	           'scripts'			=>'',
	           'forums'			=>'',
	           'html'			=>'<script type="text/javascript"><!--
google_ad_client = "pub-9279618852838129";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
//2006-12-09: vbsetup-banner
google_ad_channel = "8174653465";
google_color_border = "000000";
google_color_bg = "FFFFFF";
google_color_link = "CC0000";
google_color_text = "000000";
google_color_url = "CC0000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
	        '6' => array(
	           'id'			=>'6',
	           'title'			=>'ForumCare',
	           'startdate'			=>'0',
	           'enddate'			=>'1172725200',
	           'img'			=>'http://forum.vbulletinsetup.com/geek/gab/images/0/468x60_bluebanner01.gif',
	           'hits'			=>'0',
	           'views'			=>'787',
	           'url'			=>'http://www.adminfusion.com',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'1',
	           'height'			=>'60',
	           'width'			=>'468',
	           'frequency'			=>'1',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'1',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'1',
	           'forumoption'			=>'1',
	           'scripts'			=>'',
	           'forums'			=>'',
	           'html'			=>'<a href="http://www.forumcare.com/" >
<img src="http://www.forumcare.com/forumcare_vbulletinsetup.jpg" border="0" alt="Paid forum posting, forum templates and customization, forum moderation"/>
</a>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
	        '7' => array(
	           'id'			=>'7',
	           'title'			=>'irio-gfx',
	           'startdate'			=>'0',
	           'enddate'			=>'0',
	           'img'			=>'',
	           'hits'			=>'0',
	           'views'			=>'37625',
	           'url'			=>'',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'0',
	           'height'			=>'0',
	           'width'			=>'0',
	           'frequency'			=>'1',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'1',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'1',
	           'forumoption'			=>'1',
	           'scripts'			=>'',
	           'forums'			=>'',
	           'html'			=>'<a href="http://irio-gfx.com"><img src="http://irio-gfx.com/banners/banner.gif" border="1"></a>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
	        '8' => array(
	           'id'			=>'8',
	           'title'			=>'PC 101',
	           'startdate'			=>'0',
	           'enddate'			=>'0',
	           'img'			=>'',
	           'hits'			=>'0',
	           'views'			=>'15084',
	           'url'			=>'http://www.pc101.com',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'1',
	           'height'			=>'0',
	           'width'			=>'0',
	           'frequency'			=>'1',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'1',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'1',
	           'forumoption'			=>'1',
	           'scripts'			=>'',
	           'forums'			=>'',
	           'html'			=>'<a href="http://www.pc101.com"><img src="http://www.pc101.com/images/pc101bannergif.gif" border="1"></a>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
	        '9' => array(
	           'id'			=>'9',
	           'title'			=>'Lame Links',
	           'startdate'			=>'1169528400',
	           'enddate'			=>'1172725200',
	           'img'			=>'http://forum.vbulletinsetup.com/geek/gab/images/0/lamblinks.jpg',
	           'hits'			=>'0',
	           'views'			=>'1026',
	           'url'			=>'http://www.lamblinks.com/',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'1',
	           'height'			=>'0',
	           'width'			=>'0',
	           'frequency'			=>'1',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'1',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'1',
	           'forumoption'			=>'1',
	           'scripts'			=>'',
	           'forums'			=>'',
	           'html'			=>'<a href="http://www.lamblinks.com/" >
<img src="http://vbulletinsetup.org/lamblinks.jpg" border="0" alt="Lamblinks Web Directory"/>
</a>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
	        '10' => array(
	           'id'			=>'10',
	           'title'			=>'webtalkforums',
	           'startdate'			=>'0',
	           'enddate'			=>'1172725200',
	           'img'			=>'',
	           'hits'			=>'0',
	           'views'			=>'759',
	           'url'			=>'',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'1',
	           'height'			=>'0',
	           'width'			=>'0',
	           'frequency'			=>'1',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'1',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'1',
	           'forumoption'			=>'1',
	           'scripts'			=>'',
	           'forums'			=>'',
	           'html'			=>'<a href="http://www.webtalkforums.com/" >
<img src="http://www.webtalkforums.com/images/banners/wtf-animated-468x60-2.gif" border="0" alt="Webmaster Discussion Forums"/>
</a>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
	        '11' => array(
	           'id'			=>'11',
	           'title'			=>'postbit_banner',
	           'startdate'			=>'0',
	           'enddate'			=>'0',
	           'img'			=>'',
	           'hits'			=>'0',
	           'views'			=>'0',
	           'url'			=>'',
	           'userid'			=>'0',
	           'max_views'			=>'0',
	           'max_hits'			=>'0',
	           'isactive'			=>'1',
	           'height'			=>'0',
	           'width'			=>'0',
	           'frequency'			=>'3',
	           'type'			=>'3',
	           'template'			=>'0',
	           'catid'			=>'5',
	           'trackviews'			=>'1',
	           'trackhits'			=>'1',
	           'scriptoption'			=>'2',
	           'forumoption'			=>'1',
	           'scripts'			=>'|THIS_SCRIPT|',
	           'forums'			=>'',
	           'html'			=>'<script type="text/javascript"><!--
google_ad_client = "pub-9279618852838129";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="4415749877";
google_color_border = "EDEDED";
google_color_bg = "EDEDED";
google_color_link = "0066CC";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>',
	           'templatetype'			=>'0',
	           'suspended'			=>'0',
	           'editimage'			=>'0',
	           'editfrequency'			=>'0',
	           'editbanner'			=>'0',
	        ),
);

>> END ADS -------

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

vBulletin v3.6.4, Copyright ©2000-2007, Jelsoft Enterprises Ltd.
this size 728x90 is the one I'm working on now

thanks

oh.. and I'm using $gab_[1] in the postbit template
__________________
-----==== Check out The Best Forum Ever! & my new biz Sheley Enterprises =====-----
I offer contract work marketing and modifying forums, let me know if you have any questions.
Reply With Quote
  #4  
Old 01-30-2007, 08:55 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

I suppose if it is just adsense (as in you arent bother tracking the appearence) - you can put it in the master script.
however, I would instead, edit the showthread script. Turn off the 'use master' setting. THen assign the billboard in there.

HTHs!
Reply With Quote
  #5  
Old 01-30-2007, 05:08 PM
Loco's Avatar
Loco Loco is offline
Senior Member
 
Join Date: Nov 2005
Posts: 132
Geek Article and Review System License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

well it's adsense right now, but I'd like to place 4 banners in rotation in this spot

can I pay you a little bit to set this up for me ?
__________________
-----==== Check out The Best Forum Ever! & my new biz Sheley Enterprises =====-----
I offer contract work marketing and modifying forums, let me know if you have any questions.
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
Profile ad placement? RaceJunkie Geek Advertising Banner System 1 02-10-2009 04:22 PM
Ad placement inside post RaceJunkie Geek Advertising Banner System 2 02-05-2009 07:06 PM
Ad Placement wolf32 Geek Article and Review System 0 09-08-2007 04:47 PM
where do I place code so ad is 2nd post of each thread? dahlia Geek Advertising Banner System 2 03-08-2007 05:28 PM
Don't understand 2nd instruction kinkarso Geek Article and Review System 2 05-20-2006 08:22 PM


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


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