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 09-10-2008, 09:30 PM
vwt4forum vwt4forum is offline
Junior Member
 
Join Date: Sep 2008
Posts: 5
Geek Advertising Banner License Holder 
Default If show Adverts query

Hi there, i have successfully installed GAB on our forum, and i am looking to add an if to hide any formatting i.e. padding i am putting around my scripts blocks.

To look something like this:

Code:
<if condition="$show['gabAdverts']">
<div style="padding-bottom: 10px;">$GAB_ads[0]</div>
</if>
Please help!

Cheers

Jim
Reply With Quote
  #2  
Old 09-11-2008, 04:58 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
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

In the GAB ACP Billboards section, set Wrapper to no to remove the GAB wrapper from the ads in that billboard, and then you can use whatever HTML you want to wrap the $GAB_ads[X] variables from that billboard. Either style="padding-bottom: 10px;" or style="margin-bottom: 10px;" could be used to add 10 pixels to the bottom depending on the HTML you use.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 09-11-2008, 10:01 PM
vwt4forum vwt4forum is offline
Junior Member
 
Join Date: Sep 2008
Posts: 5
Geek Advertising Banner License Holder 
Default

Thanks Morgan, but what i am after is an IF statement to surround the $GAB_ads[X] so that if there if a billboard is not set to be included in a certain script script such and "index" then it won't include the the formatting.

Or maybe a location where i could edit the script so that all banners appeared in a block which I could assign a class.

Looking into the 'product- gab .xml' i can see the template nodes which define how the html i am interested in is output

"GAB_item_flash"
"GAB_item_image"

I can simply edit these myself however does this invalid your support or affect future updates?

If it would; this is why it would be great to have an if statement to be used around the billboards, it would also keep it more flexible and object oriented .

Eagerly awaiting a reply!

Cheers

Jim

Last edited by vwt4forum; 09-11-2008 at 10:15 PM..
Reply With Quote
  #4  
Old 09-13-2008, 04:46 AM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
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

Try using $GAB_ads[0] in the template conditional. If $GAB_ads[0] is set, then style as wanted; otherwise no style should appear:
Code:
<if condition="$GAB_ads[0]">
	<div style="padding-bottom: 10px;">$GAB_ads[0]</div>
</if>
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #5  
Old 09-13-2008, 04:07 PM
vwt4forum vwt4forum is offline
Junior Member
 
Join Date: Sep 2008
Posts: 5
Geek Advertising Banner License Holder 
Default

Thanks morgan that did the trick

Cheers

Jim
Reply With Quote
  #6  
Old 09-18-2008, 08:52 PM
vwt4forum vwt4forum is offline
Junior Member
 
Join Date: Sep 2008
Posts: 5
Geek Advertising Banner License Holder 
Default A suggestion

hi Morgan,

I am soon to roll out the advertising scheme across our forum; there will be 2 types of advertisments:
  1. Network ads, for guests and non-paid members
  2. Targeted ads, for all members, these will specifically target signed up members with special exclusive offers, more than just your run of the mill advert.

The problem i have is that the standard GAB only allows for a global usergroup viewing settings, rather than billboard specific.

The way around this for me is to use template conditionals for userID. It might be a suggestion for a future upgrade.
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
Pre-Sale query jl255 Geek Gazette 4 08-03-2009 02:13 PM
Adverts appear globally despite selecting specific forum zimdude Geek Advertising Banner System 1 08-03-2009 01:48 PM
Getting ad to show in Usercp RaceJunkie Geek Advertising Banner System 1 02-06-2009 01:50 PM
Great Script! Display query... mattpark Geek Article and Review System 5 10-16-2006 09:46 PM
How to get changes to show up immediately Torque Geek Article and Review System 3 08-27-2006 08:17 PM


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


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