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

XF 1.4 No ads for admnis

Discussion in 'Styling and Customization Questions' started by diego222, Oct 8, 2014.

  1. diego222

    diego222 Member


    Now I have ads for ALL users (not registered, registered, admins.... all users) ... but I don't want to show ads for admins, only for not registered and registered normal users. How could I do that?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. diego222

    diego222 Member

    <xen:if is="!{xen:helper ismemberof, $visitor, x}">
    This content will be hidden from members of user group x

    I supose I have to change "X" with administrator's id right? well... and how I know admin's ID?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It would be simpler to use the admin conditional.

    <xen:if is="!{$visitor.is_admin}">
    diego222 likes this.
  5. diego222

    diego222 Member

    Thanks. It works great. Now I don't have to worry of invalid impressions ;)

Share This Page