|
Geek Advertising Banner System GAB is a highly configurable banner management system for vBulletin. |
Advertisement | |
|
|
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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> Cheers Jim |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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.. |
#4
|
||||
|
||||
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 |
#5
|
|||
|
|||
Thanks morgan that did the trick
Cheers Jim |
#6
|
|||
|
|||
A suggestion
hi Morgan,
I am soon to roll out the advertising scheme across our forum; there will be 2 types of advertisments:
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. |
Thread Tools | |
Display Modes | |
|
|
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 |