Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 30 Aug 2017, 18:51
chikuru chikuru is offline
 
Join Date: Nov 2011
Arrow Conditional statement on vbulletin 5

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


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

Reply With Quote
  #2  
Old 30 Aug 2017, 21:49
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Perhaps it will give you an idea:

in_array($user['usergroupid'], array('3', '4'))
Reply With Quote
  #3  
Old 01 Sep 2017, 18:52
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
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.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:15.

Layout Options | Width: Wide Color: