![]() |
|
|
Mod Options |
Auto Resize Image Attachments (Avatars & Profile Pic Too).... Details »»
|
|||||||||||
|
Auto Resize Image Attachments (Avatars & Profile Pic Too)....
Developer Last Online: Oct 2010
This modification is in the archives.
Gone
Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||||
| Comments |
|
#2
|
||||
|
||||
|
__________________
The Friendliest Gun Forum On The Internet No members have liked this post.
|
|
#3
|
||||
|
||||
|
That's awesome - this is something I've been looking for for ages
![]() Question: is it an easy thing to add this feature (maybe make your functionality into a standalone function?) into the Avatar upload and Profile pic upload functions ?
__________________
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support! ... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar http://www.mobileforces.org/sig.jpg {DaniWeb: Learn HOW-TO mod_rewrite your vB board} No members have liked this post.
|
|
#4
|
||||
|
||||
|
Thanks muchly! This was the one final hack I was waiting for from my ol' vB2 - I looked into it a couple times, but never had the patience
![]()
__________________
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support! ... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar http://www.mobileforces.org/sig.jpg {DaniWeb: Learn HOW-TO mod_rewrite your vB board} No members have liked this post.
|
|
#5
|
|||
|
|||
|
Does any one knows if it works in PHP in safe mode??
__________________
Best regards, Arjen No members have liked this post.
|
|
#6
|
||||
|
||||
|
I installed it and I hope it's working
![]() (It's working, thank you so much )No members have liked this post.
Last edited by MrNase : 21 Aug 2004 at 16:00. |
|
#7
|
||||
|
||||
|
Very cool and useful hack.
A lot of members are clueless when it comes to image resizing. This is a great idea.No members have liked this post.
|
|
#8
|
|||
|
|||
|
Originally Posted by mini2
Don't think it works :tired: I try it with the File Attachment Images Resize hack, when I upload a big files take a time and then many, many (50x) errors like this:
Warning: Division by zero in /home/website/www/forum/includes/functions_file.php on line 318 Warning: Division by zero in /home/website/www/forum/includes/functions_file.php on line 319 Warning: Division by zero in /home/website/www/forum/includes/functions_file.php on line 327 Warning: Division by zero in /home/website/www/forum/includes/functions_file.php on line 328 Warning: imagecreatetruecolor(): Invalid image dimensions in /home/website/www/forum/includes/functions_file.php on line 331 and then: IMG_0541.JPG: File Too Large. Limits are 640 x 480. Your file is 1600 x 1200. So far not working, I don't know if it the safe mode..
__________________
Best regards, Arjen No members have liked this post.
Last edited by Symbian.info : 24 Aug 2004 at 23:49. |
|
#9
|
|||
|
|||
|
There seems to be a problem with the avatar upload feature. If I set avatars to no more than 20K, but photos to 150K, it uses the 150K limit for avatars.
No members have liked this post.
|
|
#10
|
|||
|
|||
|
For files that are too big (in K), I would still like to see it try and resize them -- then see if they come under the file size limit.
No members have liked this post.
|
|
#11
|
||||
|
||||
|
Getting similar error message, just installed GD 2.0.23
---------- begin error msg -------------------- Warning: Division by zero in /var/www/html/forums/includes/functions_file.php on line 44 Warning: Division by zero in /var/www/html/forums/includes/functions_file.php on line 45 Warning: Division by zero in /var/www/html/forums/includes/functions_file.php on line 53 Warning: Division by zero in /var/www/html/forums/includes/functions_file.php on line 54 Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /var/www/html/forums/includes/functions_file.php on line 57 ----------- end error msg --------------- -- line 44 -- $width_factor = $w / $maxattachwidth; -- line 45 -- $height_factor = $h / $maxattachheight; -- line 53 -- $nw = round($w / $height_factor); -- line 54 -- $nh = round($h / $height_factor); -- line 57 -- $ni=imagecreatetruecolor($nw,$nh); No members have liked this post.
|
|
#12
|
||||
|
||||
|
The issue with the deviding by zero in this hack is that you overlooked the fact that the hack does not define what $maxattachwidth & $maxattachhieght are... so besure to add those values to be edited in the admin panel....
^_^ by the way I coded the original version of this hack for vB2, look in the beta section for it, it should help you with some of the bugs in this one... FYI: Safemode shouldnt affect this scrpt as long as its not writing on to the filesystem. Also it helps to cache the resized images because trust me doing it on the fly will bog down the system in the long run. Oh, I almost forgot if you have any questions feel free to send me a PM. No members have liked this post.
|
|
#13
|
||||
|
||||
|
No members have liked this post.
|
|
#14
|
||||
|
||||
|
Originally Posted by memdy
Be sure to restart your webserver and besure that php isn't complied with GD into it because then it will not run your newer version of GD... instead recompile PHP making sure that it points to your current version of GD... as far as the other errors they are just values that were overlooked when preparing the hack...
to mini: try to test for GD2 within the script with a function check on imagecreatetruecolor and if it fails then make it use imagecreate instead because it is compatible with all versions of GD so it will 1) make sure that the forum wont have errors in exchange for uglish images and 2) makes your hack compatible with earlier versions of PHP No members have liked this post.
|
|
#15
|
||||
|
||||
|
i get this error
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 04:13.






)
