The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
hmm, i cannt remember names that good Bones, erm Bowie erm ^^
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|