M multibam Member Mar 30, 2013 #1 Hello. Is there a simple way to add html/javascript advertisement to a template based on usergroup? Something like: Code: if usergroup=2,3 in forum=8,9 show <google adsense code> end if Does anyone know if this is possible? Thanks.
Hello. Is there a simple way to add html/javascript advertisement to a template based on usergroup? Something like: Code: if usergroup=2,3 in forum=8,9 show <google adsense code> end if Does anyone know if this is possible? Thanks.
R RobParker Well-known member Mar 30, 2013 #2 Yep, you need template conditionals. Look in the manual for Brogan's guide to doing exactly that. Upvote 0 Downvote
CTXMedia Well-known member Mar 30, 2013 #4 If it's just for guests, use the visitor (not logged in) condition: Code: <xen:if is="!{$visitor.user_id}"> Ad code </xen:if> Upvote 0 Downvote
If it's just for guests, use the visitor (not logged in) condition: Code: <xen:if is="!{$visitor.user_id}"> Ad code </xen:if>