D diego222 Active member Oct 8, 2014 #1 Hi 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?
Hi 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?
Paul B XenForo moderator Staff member Oct 8, 2014 #2 Use a conditional statement for administrators or the administrator user group. http://xenforo.com/community/resources/conditional-statements.1604/ Upvote 0 Downvote
Use a conditional statement for administrators or the administrator user group. http://xenforo.com/community/resources/conditional-statements.1604/
D diego222 Active member Oct 8, 2014 #3 <xen:if is="!{xen:helper ismemberof, $visitor, x}"> This content will be hidden from members of user group x </xen:if> I supose I have to change "X" with administrator's id right? well... and how I know admin's ID? Upvote 0 Downvote
<xen:if is="!{xen:helper ismemberof, $visitor, x}"> This content will be hidden from members of user group x </xen:if> I supose I have to change "X" with administrator's id right? well... and how I know admin's ID?
Paul B XenForo moderator Staff member Oct 8, 2014 #4 It would be simpler to use the admin conditional. <xen:if is="!{$visitor.is_admin}"> Upvote 0 Downvote
D diego222 Active member Oct 8, 2014 #5 Thanks. It works great. Now I don't have to worry of invalid impressions Upvote 0 Downvote