The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
whats the conditional for this please
Hi
I would like to remove the ads for VIP so what is the conditional i need to wrap around the ads please. The ads are added manually (no addon script) so just the conditional would great please? |
#2
|
||||
|
||||
Code:
<if condition="!is_member_of($vbulletin->userinfo, 10)">CODE</if> |
#3
|
|||
|
|||
Thanks a lot Dismounted
|
#4
|
||||
|
||||
If he wants it so the ads don't show for Vips it would need to be something more along the lines of
Code:
<if condition="!is_member_of($vbulletin->userinfo, 10)"><else />Code</if> Code being the code for your ads. |
#5
|
||||
|
||||
No, because the condition states: "If this User is not a Member of the VIP Group, then display the Advert" -- there is no need for an ELSE statement, unless he specifically wanted to display a message to the VIP Users.
|
#6
|
||||
|
||||
I guess you could do it both ways
|
#7
|
||||
|
||||
If you aren't showing something to the VIP Usergroup, then there is no point in adding an ELSE statement, you're just making it that much longer to process.
|
#8
|
||||
|
||||
I read dismounteds code wrong.
I thought he was meaning 10 was the vip usergroup which it wasn't actually filtering anything for them. |
#9
|
||||
|
||||
10 is the VIP Usergroup ID. But if you notice the exclamation point before "is_member_of", which negates the conditional.
|
#10
|
|||
|
|||
Thanks guys, been a great help, plus i learnt how to show something different if i wanted to...Been a great help, thanks again...Bookmarked
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|