The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
How can I exclude my ads for the users in my paid subscription group ?
I used this code, but it seems like the ads got removed for everyone but unregistered Code:
<if condition="!$bbuserinfo['userid'] == 17"> ** ad code here ** </if> |
#2
|
|||
|
|||
![]() Code:
<if condition="in_array($bbuserinfo[usergroupid], array(1,2,3,4))"> |
#3
|
||||
|
||||
![]()
I tried to reverse it like this, but it wont work
Quote:
|
#4
|
|||
|
|||
![]()
Works fine, remove the ! in yours.
|
#5
|
||||
|
||||
![]()
I tried that, but I need to exclude it for the usergroup 17 so I thought I needed to have the ! in front
|
#6
|
|||
|
|||
![]() Code:
<if condition="!is_member_of($bbuserinfo, X)"> <!-- Advert Code here --> </if> |
#7
|
|||
|
|||
![]()
Add all the usergroups that you want to see the ads to that array, sorry wasnt paying attention, dont add 17 or any other group that you dont want to show the ads to.
Edit to add: Do what Op stated, sorry wasnt paying attention, either way will work. |
#8
|
||||
|
||||
![]()
Very helpful, thank you! I'm in the process of reworking our ads system and I needed the conditional to show ads to ALL groups (we have many
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|