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

XF 1.5 ADS conditional statements issue

Discussion in 'Styling and Customization Questions' started by Betclever, Sep 26, 2016.

  1. Betclever

    Betclever Active Member

    Hi,

    I would like to hide ads for the premium group but it doesn't work correctly even if I use the correct conditional statements.

    See capture: https://gyazo.com/3bfe4aa603f6cfcd7d952c5e89d35a39

    I would like to totally hide the content to the premium group.

    Another question:

    I don't know what I have to replace for the conditional statement number 5 => <xen:if is="!{xen:helper ismemberof, $visitor, x}">content.../xen:if>

    I mean, I presume $visitor is the group by default but what about mine so the group Premium?

    Thank you.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You replace x with the group id.
     
    Betclever likes this.
  3. Betclever

    Betclever Active Member

    When using this conditional statements, it is hidden for everyone... :/

    <xen:if is="!{xen:helper ismemberof, $visitor, 31}">content...</xen:if>

    What's wrong please?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The content will not be displayed to anyone who is a member of user group 31.

    AdSense takes a while to display ads so test with plain text until you get your conditional statements working.
     
    Betclever likes this.

Share This Page