Version: 1.00, by The Geek
Developer Last Online: Jan 2019
Version: 3.0.7
Rating:
Released: 03-16-2005
Last Update: Never
Installs: 33
Is in Beta Stage
No support by the author.
Basically this is a very simple addition to stop the mega computer literate who use my forums driving everyone insane with their 'I tried to upload my pic as an avatar but its too big - how do I resize it'.
In a nutshell, this will automatically resize the uploaded avatar (and profile picture) to your max dimensions (if it is too big).
It must still be smaller than the Custom Avatar Maximum File Size (bytes) / Profile Picture Maximum File Size (bytes) setting. In fact - it wont even get uploaded if the pic exceeds this size. Therefore I would suggest raising this limit to an appropriate amount.
There is 1 file edit (1 line) and 1 include file.
(Im going to get pissed if someone says there is already a hack for this )
change log
----------- Update to BETA 1.02 on 18/03/05
Added GD test
Fixed dumb typo that caused image dimensions to not be retrieved.
nJoy
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I just installed this but I'm still getting the error "That image is too large. The maximum dimensions are 48 by 48 pixels."
I am trying to upload a 100x60 (1.16KB) or a 100x100 (4.62KB) gif image and my forum settings are at "48 by 48 pixels or 9.8 KB (whichever is smaller)".
If I'm understanding this hack correctly, it should be resizing the 100x60 or the 100x100 image to 48x48 and not givng the error message?
I just installed this but I'm still getting the error "That image is too large. The maximum dimensions are 48 by 48 pixels."
I am trying to upload a 100x60 (1.16KB) or a 100x100 (4.62KB) gif image and my forum settings are at "48 by 48 pixels or 9.8 KB (whichever is smaller)".
If I'm understanding this hack correctly, it should be resizing the 100x60 or the 100x100 image to 48x48 and not givng the error message?
Any ideas?
Check that your GD settings are correct. If its set to none - it will bypass the routine.
What I mean is what the GD setting is put to in vboptions (which I think you said was 2+?).
Are you having the same problem with GAS3.51? It uses almost the same exact proceedure to resize uploads - however it doesnt test for GD support.
What I mean is what the GD setting is put to in vboptions (which I think you said was 2+?).
Yep, in vboptions my GD setting is 2+
Quote:
Are you having the same problem with GAS3.51? It uses almost the same exact proceedure to resize uploads - however it doesnt test for GD support.
I haven't tried uploading a picture with GAS3.51, but I will do that now...
Weird. I just did a test article with a big graphic and GAS3.51 resized it perfectly.
I just re-applied the GARR hack and it still didn't work. It's almost like it's not even calling the functions_geekautoavatar.php file (or it's not passing the GD test for some reason).