PDA

View Full Version : Custom Avatar


Wifey
06-21-2006, 01:05 PM
For my members, mods and admins as well as other special staff I have different avatar sizes so people are picked out easily. My members are only supposed to be allowed to upload avatars that are 90x90 with mods able to upload larger, special staff and admins as well.

My constraints are set properly in the usergroups, so is the only other option to constrain them in file size or is there another way to constrain size per usergroup in the vPlaza files?

Thanks!

Oh, and I ask because even though they know the rules I've got 90x97's, 50x114's, etc.

CMX_CMGSCCC
06-28-2006, 01:15 PM
Due to permissions checks, the permissions are "updated" to allow these avatars to be uploaded. I could probably redo it now, so that it uses the sizes specified by ur usergroup permissions. I'll look into this and see about adding it for v1.5.7 final release.

-CMX

Wifey
06-29-2006, 02:37 AM
Thanks CMX! I've posted an announcement to my members and I just rip it at their expense if they don't follow the rules for the time being. I'd LOVE that addition!

CMX_CMGSCCC
06-29-2006, 03:09 PM
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