The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
AdSense
Hello,
I have AdSense and I would like the ads to show for everybody except one of my usergroups. Anybody care to help me? |
#2
|
||||
|
||||
If you use templates, you can use if conditionals to exclude groups. I think the function is is_member_of(), but I am not sure off the top of my head.
|
#3
|
|||
|
|||
Im not very good when it comes to codes... I need a little more help than that.
|
#4
|
||||
|
||||
<if conditional="!is_member_of(groupID)"> post code here </if>
Just make sure groupID is replaced with a number / list of numbers (1,2,3,4) and that it is the group you want to be excluded. |
#5
|
|||
|
|||
I tried that and it still shows the ads under the navbar.
Quote:
|
#6
|
||||
|
||||
Try:
Code:
<if condition="!is_member_of(groupID)"> Also, it should be <if condition not <if conditional |
#7
|
|||
|
|||
For some strange reason, we I do as you say... and I save, I just get directed a navy blue page.... but when I remove that code and save... it directs me to the sytles etc
I have tried several times to clarify and it's every time I put it that code. |
#8
|
|||
|
|||
Try:
Code:
<if condition="$post[postcount] == 1 AND in_array($GLOBALS[usergroupid], array(X,Y,Z))"> |
#9
|
|||
|
|||
I inserted it and saved well but it has removed the ads... even editing the
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|