![]() |
need a quick if statement pls
i wont to only show sumthing to 3 usergoups how would i structure the IF in the vb3 template ?
<if usergroup== 1,2,3(usergroupid) MY CODE HERE</if> |
HTML Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3))">stuff</if> |
so i replcace 123 with the usergroup ids i want info to be displayed to :D cheers boss
|
Yep, just put your own comma seperated list of ids :)
|
sorted werks gr8 mate cheers
|
question, if we had an array set in the php code how would the if statement in the template look?
|
PHP Code:
|
Quote:
PHP Code:
HTML Code:
<if condition="in_array($somevar, $var)">stuff</if> |
Quote:
Code:
<if condition="is_member_of($array_with_userid_key, usergroupid) Code:
<if condition="can_moderate()"> |
hey filb hows the VBMS for vb3 going?
|
All times are GMT. The time now is 10:26 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:
|