1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 ad_message_below issue

Discussion in 'Styling and Customization Questions' started by rickhz, Jun 2, 2016.

  1. rickhz

    rickhz 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.

    <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" />
                        <h3 class="userText">
                        <span style="font-weight: bold">Support EF</span>
                        <em class="userTitle" itemprop="title"></em>
                        <span class="arrow"><span></span></span>
                <div class="messageInfo primaryContent">
                    <div class="messageContent">
                            <blockquote class="messageText ugc baseHtml">
    <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.
                              <style type="text/css">
    .overtaking-top-dynamic {
    width: 320px;
    height: 50px;
    @media(min-width: 800px) {
        .overtaking-top-dynamic {
        width: 728px;
        height: 90px;
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- xen_below_message -->
    <ins class="adsbygoogle overtaking-top-dynamic"
    (adsbygoogle = window.adsbygoogle || []).push({});
                                <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.
  2. rickhz

    rickhz Member

    Lot's of views, but no one can help with this?
  3. rickhz

    rickhz Member

    Fixed it.

    <xen:if is="!{$visitor.user_id}">

    That like was not necessary and was keeping other groups from seeing the ads.

Share This Page