Quote:
Originally Posted by Smoothie
Nice one, but that's a whole lot of work just to show remote avatars. This should be built-in by default. IBP has it built-in, it's great for having a rotating image as your avatar.
|
I agree, it was definitely a lot of work for a feature that should be included as standard.
Quote:
Originally Posted by Smoothie
Any other method this could be done without all that work?
|
Well, I designed this modification with a few specifications in mind:
- It must allow both remote and local avatars (uploaded not required).
- It must prevent the use of html code and dynamic images
- The standard avatar size was 117x117, to prevent layout damage I either had to force all avatars to 117x117 or allow users to set the size
- I made the code so it would obey the "Show Avatars" option
Ways to reduce the work:
- If you don't need local avatars, two fields can be removed: Avatar, Default Avatar - You will need to change a condtition to not display any avatar if Custom Avatar is blank
- If you want to force remote avatars to a specific size (ie. 80x80) or have no limit, two fields can be removed: Custom Avatar Width, Custom Avatar Height
- The SQL queries do not have to be run, I included them to ensure no existing members caused display errors