The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
premissions for more than 1 group
hi
i have coded a extensions and seem to have hit a problem i use the premission setting to decide how much a user can upload ect but if that user is a member of more that 1 group it will take the premissions of the group in the lowest order eg user 1 = admin , super mod , special the premissions for that users upload will be the ones set for special not the admin or mod any help would be appricated as i am stuck, not sure if this is a vbulletin bug or just my bad coding. |
#2
|
|||
|
|||
A bit difficult to answer without seeing the code you are using.
|
#3
|
|||
|
|||
Code:
$img_width=$permissions['imghost_width']; $img_height=$permissions['imghost_height']; $img_filesize=$permissions['imghostset']; |
#4
|
|||
|
|||
Those permissions should already contain the values from the usergroup with the highest values.
|
#5
|
|||
|
|||
ah i have found the problem you are right it will read the highest value but all the groups the user is a member of must have a value higher than 0 if it is 0 it will take that as the highest ( 0 usual means unlimited) but i didn't want that lol thanks for your help
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|