I use logo_block templateAny guidance for header ad placement?
Thanks, I got it.I use logo_block template
<xen:if is="{$forum.node_id} == x"></xen:if>
<xen:if is="{$visitor.user_group_id} == x"></xen:if>
Edit: fixed a mistake.
Silly question. How do you find the User Group numbers? I can't seem to locate them.
.userText {
font-weight: bold;
color: @primaryMedium;
}
.userTitle {
color: @primaryLightish;
}
<xen:if is="{$forum.node_id} != 118 OR {$forum.node_id} != 119 OR {$visitor.user_group_id} != 21">
<div style="text-align: center; margin-top:8px;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9680253439868204";
/* XFTopAd */
google_ad_slot = "7671666545";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</xen:if>
<xen:if is="{$forum.node_id} != 118">
<xen:if is="{$forum.node_id} != 119">
<xen:if is="{$visitor.user_group_id} != 21">
<div style="text-align: center; margin-top:8px;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9680253439868204";
/* XFTopAd */
google_ad_slot = "7671666545";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</xen:if>
</xen:if>
</xen:if>
Are you assigning this usergroup to members as a secondary group?I have the Contributor user group (21) who does not see ads.
Are you assigning this usergroup to members as a secondary group?
If so, you have to use a helper to check the usergroup...
» http://xenforo.com/community/threads/usergroup-checking-in-the-templates.9447/
<xen:if is="{$post.post_id} == {$thread.first_post_id}">
Last silly question.
I have the Contributor user group (21) who does not see ads. Now I want to reopen my NSFW folder (which I closed due to TOS with Google Adsense) and I can't have the ads hit there. I have tried a couple different ways to get it to work but it does not.
Attempt #1:
Code:<xen:if is="{$forum.node_id} != 118 OR {$forum.node_id} != 119 OR {$visitor.user_group_id} != 21"> <div style="text-align: center; margin-top:8px;"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-9680253439868204"; /* XFTopAd */ google_ad_slot = "7671666545"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </xen:if>
So what am I missing?
We use essential cookies to make this site work, and optional cookies to enhance your experience.