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

XF 1.3 Adsense if conditions?

Discussion in 'XenForo Questions and Support' started by tayfun, May 24, 2014.

  1. tayfun

    tayfun Member

    Hello guys,

    i want to add adsense to my forum to adsense templates. but i want to admins,mods not seem adsense only registered and guest groups. how can i do this?

    Regards.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. tayfun

    tayfun Member

  4. tayfun

    tayfun Member

    i don't want show for admin and mods. i will use this code:

    Code:
    <xen:if is="!{xen:helper ismemberof, $visitor, x, y}">
    This content will be hidden from members of user groups x or y
    </xen:if>
    x=admin
    y=moderator

    so code is it?

    Code:
    <xen:if is="!{xen:helper ismemberof, $visitor, admin, moderator}">
    This content will be hidden from members of user groups x or y
    </xen:if>
    @Brogan
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    The x and y are user group IDs.

    Or you can use the is_admin and is_moderator conditions.
     
  6. tayfun

    tayfun Member

    thanks, so what is it admin usergroup id and moderator usergroup id? @Brogan
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page