The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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?
|
#2
|
|||
|
|||
![]() Code:
<if condition="!is_member_of($bbuserinfo,X)"> Adsense Code </if> |
#3
|
|||
|
|||
![]()
Thank you!
|
#4
|
|||
|
|||
![]()
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? |
#5
|
||||
|
||||
![]() Quote:
|
#6
|
|||
|
|||
![]()
use if subscription adds user to secondary usergroup:
Code:
<if condition="$bbuserinfo[membergroupids] == X"> <else /> Adsense code </if> Code:
<if condition="$bbuserinfo[usergroupid] == X"> <else /> Adsense code </if> Cheers Steve |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|