Well, I rechecked the permissions part of this code and the issue seems to be this.
If the permissions get "added", it's because u dont give regular members permission to upload avatars at all. So what the "work around" does, is search ALL usergroups for upload avatar permissions, and it uses the absolute highest to avoid any errors.
The only way I can possibly see to fix this, is to add a few more settings that set a constant default max size, width & height so it doesnt have to search for the "highest" setting, but uses the setting that is saved into say vbPlaza Settings -> Max Avatar Filesize, Max Avatar Width, Max Avatar Height, etc..
Another way will also fix it too. If you have the avatar upload option disabled, but u still set the size, width & height for the "registered" usergroup. I could still read the settings from there as well. So I think the best combination to fix this problem would be as follows:
1) check to see if the user has permissions already from their usergroups...
2) if they do, then use them, if not, then use the custom settings I was talking about above.
In which case, this will not take long to code, and I will be able to add it into v1.5.7 before the final release tomorrow.
EDIT: I have gotten this finished for v1.5.7.
-CMX
|