XF 1.5 ad_message_below issue

rickhz

Well-known member
I want this to display to unregistered and registered members groups 1 and 2. I do not want it to show to supporting members or staff. As is it shows to unregistered users, but not to anyone who is registered, no matter the group.

I already tried setting it up only to show to groups 1 and 2, but again, it only shows to the unregistered user.

Code:
<xen:hook name="ad_message_below" />
<xen:if is="!{xen:helper ismemberof, $visitor, 4, 5, 45, 54, 55, 56, 62, 68}">
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND !{$message.conversation_id}">
    <xen:if is="!{$visitor.user_id}">
     <li class="message">
            <div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person">
                <div class="messageUserBlock">
                    <div class="avatarHolder">
                        <span class="helper"></span>
                        <xen:avatar user="$visitor" size="m" img="true" />
                    </div>
                    <h3 class="userText">
                    <span style="font-weight: bold">Support EF</span>
                    <em class="userTitle" itemprop="title"></em>
                    </h3>
                    <span class="arrow"><span></span></span>
                </div>
            </div>
            <div class="messageInfo primaryContent">
                <div class="messageContent">
                    <article>
                        <blockquote class="messageText ugc baseHtml">
                      
                        <!--INFOLINKS_OFF-->
<div align="left">
<br><center><b><a href="/forums/index.php?account/upgrades">Join the Elite Explorers for only $20 a year</center></a></b>
<br>Explorer Forum has probably saved you that much already, and will continue to save you money as you learn how to diagnose
and fix problems yourself, and learn which modifications really work without having to experiment on your own.
<b>Elite Explorer members see practically no ads.  Other benefits include the ability to <b>create more private Conversations, add your own avatar
to your posts, upload photo attachments directly to your posts and to our <a href="/forums/index.php?media/">Media Gallery</a></b> and more. Join the <b><a href="/xenforo/index.php?account/upgrades">Elite Explorers</a></b> today. Your support of the forum is greatly appreciated.
<br><br>
</div>
<!--INFOLINKS_ON-->
                        
                          <style type="text/css">
.overtaking-top-dynamic {
width: 320px;
height: 50px;
}

@media(min-width: 800px) {
    .overtaking-top-dynamic {
    width: 728px;
    height: 90px;
    }
}
</style>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- xen_below_message -->
<ins class="adsbygoogle overtaking-top-dynamic"
     style="display:block"
     data-ad-client="ca-pub-14655334255xxxxx"
     data-ad-slot="8105278131"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
                        
                        
                            <br /><br /><label for="LoginControl"><span style="font-weight: bold; color: #004400"><a href="login/" class="concealed noOutline">Log in or Sign up</a></span></label> to hide all adverts.
                        </blockquote>
                    </article>
                </div>
            </div>
        </li>
    </xen:if>
</xen:if>
</xen:if>
 
Top Bottom