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

Removing Ads for Paid Memberships

Discussion in 'XenForo Questions and Support' started by TFroehlichIII, Sep 9, 2014.

  1. TFroehlichIII

    TFroehlichIII Member

    Hello Everyone,
    I was wondering about ads within my forum. Is there a way to remove every ad on my XenForo forum for my paid/"premium members?"

    Thank you in advance for all your help!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. TFroehlichIII

    TFroehlichIII Member

    Very cool. Thank you.
    So when placing the code, I paste the code before and after the ad code?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, wrap the ad code in the xen:if.../xen:if tags.
     
  5. TFroehlichIII

    TFroehlichIII Member

    So if I wanted to remove the ads for paid memberships, lets say "Paid Group 1" For this example would it look like this?

    Original Code:
    How can I hide content from a specific user group?
    <xen:if is="!{xen:helper ismemberof, $visitor, x}">
    This content will be hidden from members of user group x
    </xen:if>


    Modified Code:
    How can I hide content from a specific user group?
    <xen:if is="!{xen:helper ismemberof, $visitor, Paid Group 1}">
    my Google Adsense code will go here.
    </xen:if>


    Is that what it should look like? Sorry for being a total noob, the last forum I had managed all my ads in a much different manner.
    And just to be clear, this is the code I am looking for, correct?
     
    brattanek likes this.
  6. TFroehlichIII

    TFroehlichIII Member

  7. The Forum Heroes

    The Forum Heroes Well-Known Member

Share This Page