Log in

View Full Version : Having some ads only show to guests


TitanJeff
09-27-2009, 03:25 PM
I am running a twig ad at the bottom of my site. It works by placing it on the "ad_footer_end" template.

I want this to only show up for guests. I assume I can do this in the code but need a little help. Anyone know how this is done? Thanks.

Lynne
09-27-2009, 03:40 PM
wrap it in a condition:

<if condition="$show['guest']">
ad
</if>

TitanJeff
09-27-2009, 05:32 PM
Thanks, Lynne.

Do I need to replace the word 'guest' with the group ID?

Lynne
09-27-2009, 05:39 PM
No. $show['guest'] is an actual variable defined by vB. If you want it by usergroups, you could do:
<if condition="is_member_of($bbuserinfo, x, y, z)">
ad
</if>