vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=325557

Conditional statement on vbulletin 5
by chikuru
30 Aug 2017 19:51

Anybody have idea why this conditional statement isnt working? Thank you!


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


delicjous 30 Aug 2017 22:49

Perhaps it will give you an idea:

in_array($user['usergroupid'], array('3', '4'))

noypiscripter 01 Sep 2017 19:52

You can also debug variables using this code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.


All times are GMT. The time now is 22:22.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.