Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Jun 2015, 12:35
Mickie D Mickie D is offline
 
Join Date: Jun 2002
$variable inside vbulletin conditions

Hi all,

I have a fairly simple question, I have tried numerous ways of doing this with out much luck

Writing a basic modification for my site and it uses vbulletin usergroup permissions to access it.

I wanted to do something like this but it does not work


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

It works if I put the 6,7,18 in place of the variable, what am i doing wrong...


I am going to make a backend that uses SQL in the future so the variable will end up being a call to the database...
__________________
Digitalworldz Satellite Cable TV Forums
Cable, Satellite, Consoles, Mobile Phones, Audio Visual, and general chat
Reply With Quote
  #2  
Old 10 Jun 2015, 12:53
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Have you tried it with double quotes instead of singles?

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

Reply With Quote
  #3  
Old 10 Jun 2015, 12:56
Mickie D Mickie D is offline
 
Join Date: Jun 2002
Originally Posted by Black Snow View Post
Have you tried it with double quotes instead of singles?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
yep tried that, I also tried putting the variable in "" inside the array

Cheers
Mick
__________________
Digitalworldz Satellite Cable TV Forums
Cable, Satellite, Consoles, Mobile Phones, Audio Visual, and general chat
Reply With Quote
  #4  
Old 10 Jun 2015, 13:02
Black Snow Black Snow is offline
 
Join Date: Jul 2012
If this doesn't work:

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

Try this:

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

--------------- Added 10 Jun 2015 at 13:06 ---------------

Oh, and keep the numbers seperated by commas only. Not commas and spaces.
Reply With Quote
  #5  
Old 10 Jun 2015, 13:51
Mickie D Mickie D is offline
 
Join Date: Jun 2002
explode worked (thank you), I had a feeling it might need explode, just thought there would be a more kinder way to do it.

Regards
Mick
__________________
Digitalworldz Satellite Cable TV Forums
Cable, Satellite, Consoles, Mobile Phones, Audio Visual, and general chat
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 06:59.

Layout Options | Width: Wide Color: