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

Exclude Adsense displays to as specific group

Discussion in 'Styling and Customization Questions' started by kankan, Mar 10, 2013.

  1. kankan

    kankan Active Member


    I have included my Adsense script into many Blocks

    <div style="text-align: center;">
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-xxxxxxxxxx";
    /* Forum Channel footer */
    google_ad_slot = "xxxxxxxx";
    google_ad_width = 728;
    google_ad_height = 90;
    <script type="text/javascript"
    Which code should i have to insert in those template so that the script does not run for a specific group (ex : Donator group)

    Thank you for the help

  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. kankan

    kankan Active Member

    Thank you Brogan
    if i want many groups, is this correct ?

    <xen:if is="!{xen:helper ismemberof, $visitor, x or y}">
  4. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:if is="!{xen:helper ismemberof, $visitor, x, y}">

    Separate the user group IDs with a comma.
    Scarface, aiman.h.kallaf and kankan like this.

Share This Page