View Full Version : 3.5.4: Looking to remove banner ads for subscribers ... help!
FastCougar
06-09-2006, 09:56 PM
I'm currently running PHPAdsNew and it's working very well. I'm also using Google's AdSense. I also have "premium" members that I want to NOT show banners/AdSense ads for. I know it's probably a very simple IF statement, but I'm new to vBulletin and don't know how to impliment this. How would I go about doing this?
Ted S
06-10-2006, 12:55 AM
<if condition="!is_member_of($bbuserinfo,X)">
Adsense Code
</if>
Change X to your premium usergroup.
FastCougar
06-10-2006, 04:49 AM
Thank you!
FastCougar
06-12-2006, 03:53 PM
Everything is working great, but now I have another requirement:
I want to allow members of the subscription to choose if they want to view ads or not. Now, from what I have been able to dig up, I can't associate profile questions with particular member groups. If I enter a profile question, it's seen by all users. Is this correct? If so, how would I go about allowing paying users to choose if they want to view banner ads or not?
bada_bing
06-20-2006, 06:14 PM
<if condition="!is_member_of($bbuserinfo,X)">
Adsense Code
</if>
Change X to your premium usergroup.
This did not work for me
Mythotical
07-01-2006, 08:04 AM
use if subscription adds user to secondary usergroup:
<if condition="$bbuserinfo[membergroupids] == X">
<else />
Adsense code
</if>
use if subscription adds user to new usergroup and no secondary:
<if condition="$bbuserinfo[usergroupid] == X">
<else />
Adsense code
</if>
EDIT: the else just states if the member is not part of the usergroup specified then ads will show.
Cheers
Steve
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.