The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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. |
#2
|
||||
|
||||
![]()
wrap it in a condition:
HTML Code:
<if condition="$show['guest']"> ad </if> |
#3
|
||||
|
||||
![]()
Thanks, Lynne.
Do I need to replace the word 'guest' with the group ID? |
#4
|
||||
|
||||
![]()
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)"> ad </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|