|
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 |
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Using Turn ads off field in a conditional
Morgan, can you give us an example of how you would
test
for the setting of the field used to turn
GAB
ads off in a conditional?
Basically we're trying to setup out "Recent Posts" menu to exclude a specific forum (that has an RSS feed from EBAY) from the recent posts search results if the member has turned off advertising. Code:
<tr> <td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&exclude=257" accesskey="2">$vbphrase[todays_posts]</a></td> </tr> Code:
<tr> <td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td> </tr> <tr> The other way I thought to do this was to check for membership in the group that's allowed to turn ads off sorta like: Code:
<if condition="is_member_of($bbuserinfo,61)"><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew&exclude=257" accesskey="2">Get New Posts</a></td> </tr> <tr></if> but that's a bit imprecise as they may be allowed to turn them off but have them still turned on. Anyway, any assistance or syntax you could provide would be greatly appreciated! James and Susan [edit]Actually, it might be better to tie it to whatever GAB looks at as a condition? In case members that don't have the right to turn ads off have that field set anyway. [/edit] Last edited by Tigratrus; 06-22-2008 at 07:59 PM.. |
#2
|
||||
|
||||
Try either $vbulletin->userinfo['field21'] or $bbuserinfo['field21'] in a code or template conditional respectively.
__________________
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 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A better understanding of Profile field to turn off ads | RaceJunkie | Geek Advertising Banner System | 1 | 03-07-2008 04:33 AM |
Ability To Turn Custom Field Shells Off and On | Praetorian | Geek Article and Review System | 4 | 05-22-2007 07:56 PM |
showthread conditional | Lionel | Geek Article and Review System | 5 | 04-30-2007 07:06 AM |
user groups who can turn off ads... | tspore | Geek Advertising Banner System | 1 | 02-22-2007 04:20 AM |
Turn Synopsis field into a embed video | gldtn | Geek Article and Review System | 1 | 01-05-2007 02:42 PM |