![]() |
Code not working
We're trying to allow Mods/Admins, as well as specific subscriber groups the ability to change styles, but restrict everyone else. I put the following code into the global.php file.
If I use just the first conditional (and remove the second) it works fine. The second conditional seems to be the one causing the problem. PHP Code:
- Tony |
membergroupids is a textlist of id's and cannot be used with in_array.
you may want to search through the hint's and tips forum, iirc someone released a little function, that will do exactly as you tried here. |
Quote:
The weird thing is that according to Zachary on vb.com, the membergroupids is in an array. http://www.vbulletin.com/forum/showthread.php?t=105361. Which is why I assumed that this would work. |
Quote:
|
hmm, i cannt remember names that good Bones, erm Bowie erm ^^
|
All times are GMT. The time now is 11:12 AM. |
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:
|