![]() |
Having some ads only show to guests
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. |
wrap it in a condition:
HTML Code:
<if condition="$show['guest']"> |
Thanks, Lynne.
Do I need to replace the word 'guest' with the group ID? |
No. $show['guest'] is an actual variable defined by vB. If you want it by usergroups, you could do:
HTML Code:
<if condition="is_member_of($bbuserinfo, x, y, z)"> |
All times are GMT. The time now is 02:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|