View Full Version : Conditional statement on vbulletin 5
chikuru
08-30-2017, 04:51 PM
Anybody have idea why this conditional statement isnt working? Thank you!
<vb:if condition="is_member_of($bbuserinfo, 3,4)" />
Show this to user group 3 and 4
<vb:else />
{vb:raw message}
</vb:if>
delicjous
08-30-2017, 07:49 PM
Perhaps it will give you an idea:
in_array($user['usergroupid'], array('3', '4'))
noypiscripter
09-01-2017, 04:52 PM
You can also debug variables using this code:
{vb:debugvardump bbuserinfo}
I bet this will return null or something. You might need to use $user instead. You can debugvardump that variable too to check its value.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.