![]() |
$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 PHP Code:
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... |
Have you tried it with double quotes instead of singles?
Code:
$webspace_canuse_global = "6, 7, 18"; |
Quote:
Cheers Mick |
If this doesn't work:
Code:
$webspace_canuse_global = '6,7,18'; Code:
$webspace_canuse_global = '6,7,18'; Oh, and keep the numbers seperated by commas only. Not commas and spaces. |
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 |
All times are GMT. The time now is 10:45 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:
|