The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I need some help trying to figure this out.
I use the following in my includes/init.php for my hack : PHP Code:
PHP Code:
Or am I mistaken, because it seems it does matter. ( the bitfield name ) Any help would be most appreciated
|
|
#2
|
||||
|
||||
|
no, it won't conflict until the array name is not the same. (and hehe, you can't bold anything in [php])
this is simple but why wouldn't you try it before asked ^^ ? |
|
#3
|
||||
|
||||
|
Like i said, it seems it does matter ( because I tried it )
Now I am wondering, why should it ??
|
|
#4
|
|||
|
|||
|
It does matter. All bitfield permissions are automatically set during init. In the init these are still 2 different permissions, but both are set to be used as 'CANVIEWARTICLES'. This means you could still test against the array if you have permissions, but you can't use CANVIEWARTICLES anymore.
|
|
#5
|
||||
|
||||
|
So we're saying that such an if conditional in the template :
Code:
<if condition="$permissions['vbarticlespermissions'] & CANVIEWARTICLES"> Very odd isn't it, then why bother putting them in their own groups in the first place ?? |
|
#6
|
||||
|
||||
|
anyone ?
|
|
#7
|
|||
|
|||
|
They are put in their own groups because each group is stored as a seperate column in the database.
Putting them all together would require huge permission values. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|