The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi all,
I'm displaying some ads in the ad_navbar_below template, and I only want to show them to guests. However, it doesn't seem to work with: Code:
<if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]"> EDIT: Done with the following: Code:
<if condition="$bbuserinfo['userid'] == 0"> |
#2
|
|||
|
|||
![]()
try this
Code:
<if condition="!is_member_of($vbulletin->userinfo, 1)"> [ad code here] </if> |
#3
|
|||
|
|||
![]()
Thanks, but I did it as I stated above
![]() |
#4
|
|||
|
|||
![]()
cool
|
#5
|
||||
|
||||
![]()
<if condition="$show[guest]"> works as well, and is alot easier to remember
![]() |
#6
|
||||
|
||||
![]()
^^Exactly, thats what I am using as well.
|
#7
|
|||
|
|||
![]() Quote:
![]() |
#8
|
|||
|
|||
![]()
Either way, both the ones myself and FRDS suggested work.. Does it really matter which one you use? And Opserty makes a very good point
![]() |
#9
|
|||
|
|||
![]()
What FDRS suggested is practically the same as what you suggested Jase2.
Off the top of my head I think the snippet is something like this, in global.php: PHP Code:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|