![]() |
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)" /> |
Looks fine except it's is_member_of, not $is_member_of.
|
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)" /> |
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)"> |
thanks
|
what's with the little:
PHP Code:
Just wondering, does it actually do anything? |
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.
|
Oh.
If I run vb3.8, do I have to add the <vb: bit or not? |
No, but this is the vb4 forum, not 3.8
|
All times are GMT. The time now is 04:38 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|