Tayfun Member May 24, 2014 #1 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.
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.
P Paul B XenForo moderator Staff member May 24, 2014 #2 http://xenforo.com/community/resources/conditional-statements.1604/ http://xenforo.com/community/resources/responsive-adsense.2084/ Upvote 0 Downvote
http://xenforo.com/community/resources/conditional-statements.1604/ http://xenforo.com/community/resources/responsive-adsense.2084/
Tayfun Member May 24, 2014 #3 Thanks, @Brogan , i will try. And http://xenforo.com/community/threads/character-problem-in-urls.74327/ please move to this category and please again open it, i need that. Upvote 0 Downvote
Thanks, @Brogan , i will try. And http://xenforo.com/community/threads/character-problem-in-urls.74327/ please move to this category and please again open it, i need that.
Tayfun Member May 24, 2014 #4 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 Upvote 0 Downvote
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
P Paul B XenForo moderator Staff member May 24, 2014 #5 The x and y are user group IDs. Or you can use the is_admin and is_moderator conditions. Upvote 0 Downvote
Tayfun Member May 24, 2014 #6 thanks, so what is it admin usergroup id and moderator usergroup id? @Brogan Upvote 0 Downvote
P Paul B XenForo moderator Staff member May 24, 2014 #7 http://xenforo.com/help/user-groups/ Upvote 0 Downvote