The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vb4 conditionals for certain usergroups
I would like content to be shown to specific usergroups. Is the following conditional code written correctly for vb4?
Code:
<vb:if condition="$is_member_of($bbuserinfo,1,2,3)" /> CODE <vb:else /> </vb:if> |
#2
|
||||
|
||||
Looks fine except it's is_member_of, not $is_member_of.
|
#3
|
|||
|
|||
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)" /> CODE <vb:else /> </vb:if> |
#4
|
||||
|
||||
Whoops.... actually, you also don't want the / at the end of this line:
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)" />
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">
|
#5
|
||||
|
||||
thanks
|
#6
|
||||
|
||||
what's with the little:
PHP Code:
Just wondering, does it actually do anything? |
#7
|
||||
|
||||
Yes, it does something. Try doing it without and you will get errors. Try doing it with, and it will run your condition. It's the new vb4 syntax.
|
#8
|
||||
|
||||
Oh.
If I run vb3.8, do I have to add the <vb: bit or not? |
#9
|
||||
|
||||
No, but this is the vb4 forum, not 3.8
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|