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
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2008, 07:45 PM
Tigratrus's Avatar
Tigratrus Tigratrus is offline
Senior Member
 
Join Date: Nov 2006
Posts: 206
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 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&amp;exclude=257" accesskey="2">$vbphrase[todays_posts]</a></td>
        </tr>
Is basically what the link with the exclusion would look like, while those that didn't have GAB ads turned off would get:

Code:
        <tr>    
                <td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
        </tr>
	
	<tr>
The field we're using for turning GAB ads off is profilefieldid 21 in the profilefield table.

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&amp;exclude=257" accesskey="2">Get New Posts</a></td>
	</tr>
        <tr></if>
While members not in that group get the search without the exclusion,
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..
Reply With Quote
  #2  
Old 06-24-2008, 04:46 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

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
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
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


All times are GMT. The time now is 09:48 AM.


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