![]() |
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? |
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.
|
Im not very good when it comes to codes... I need a little more help than that.
|
<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. |
I tried that and it still shows the ads under the navbar.
Quote:
|
Try:
Code:
<if condition="!is_member_of(groupID)"> Also, it should be <if condition not <if conditional |
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. |
Try:
Code:
<if condition="$post[postcount] == 1 AND in_array($GLOBALS[usergroupid], array(X,Y,Z))"> |
I inserted it and saved well but it has removed the ads... even editing the
Quote:
|
All times are GMT. The time now is 08:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|