The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Permission for specific Usergroup
Hello,
Does anybody knows the syntax to get a specific permission for a specific usergroup (not for the active user). eg the code below returns True/False for the Permission "Vote" in "Gallery" for the active user. PHP Code:
Thank you |
#2
|
||||
|
||||
Have you tried looking at the array:
PHP Code:
|
#3
|
||||
|
||||
Quote:
I think that is something about "unserialize" but don't remember it. Have used it 5 years ago. Long time to remember it. |
#4
|
||||
|
||||
Quote:
Hopefully someone here knows, as I would also be interested in knowing how that works. |
Благодарность от: | ||
TheAdminMarket |
#6
|
|||
|
|||
They're bitfields, not serialized values, so if you have the permission number for a group (and it could very well be 3), then you can check it by using
PHP Code:
I don't know if $vbulletin->usergroupcache[12]['gallery'] is right or not. It's not clear from what's posted above. |
2 благодарности(ей) от: | ||
MarkFL, TheAdminMarket |
#7
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|