The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi,
How can I write an "if" statement with two conditions in vbulletin. Like this Quote:
Hope you understand ![]() |
#2
|
||||
|
||||
![]()
What plugin location are you using? And are you talking about the user viewing the page or the users who's page you are viewing (or post you are looking at)?
|
#3
|
||||
|
||||
![]()
I wanted to disable sidebars on the forum index only if you are a subscriber and have turned them off in your user cp, but I managed to figure out how to do it
Code:
<if condition="!is_member_of($vbulletin->userinfo,17) || $post['field34']"> sidebars here </if> |
#4
|
||||
|
||||
![]()
I don't think $post[fieldx] is gonna work on the forum home page and $vbulletin->userinfo should only be used in php.. I think it needs to be:
HTML Code:
<if condition="!is_member_of($bbuserinfo,17) || $bbuserinfo
['field34']">
|
#5
|
||||
|
||||
![]()
I cant get it to work, when using that its enabled anyway
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|