Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Auto Resize Image Attachments (Avatars & Profile Pic Too).... Details »»
Auto Resize Image Attachments (Avatars & Profile Pic Too)....
Mod Version: 1.00, by mini2 (Coder) mini2 is offline
Developer Last Online: Oct 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.6 Rating: (3 votes - 3.67 average) Installs: 73
Released: 17 Aug 2004 Last Update: 11 Nov 2004 Downloads: 57
Not Supported  

Gone

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 17 Aug 2004, 10:29
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Real name: Chris
cool. I like it a lot

working on www.runaked.com/forums
__________________
The Friendliest Gun Forum On The Internet
Reply With Quote
  #3  
Old 17 Aug 2004, 15:10
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
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}
Reply With Quote
  #4  
Old 19 Aug 2004, 13:49
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
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}
Reply With Quote
  #5  
Old 19 Aug 2004, 17:20
Symbian.info Symbian.info is offline
 
Join Date: Nov 2001
Real name: Arjen
Does any one knows if it works in PHP in safe mode??
__________________
Best regards,

Arjen
Reply With Quote
  #6  
Old 21 Aug 2004, 15:29
MrNase's Avatar
MrNase MrNase is offline
 
Join Date: May 2003
Real name: Dominik
I installed it and I hope it's working

(It's working, thank you so much )

Last edited by MrNase : 21 Aug 2004 at 16:00.
Reply With Quote
  #7  
Old 23 Aug 2004, 23:37
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Very cool and useful hack. A lot of members are clueless when it comes to image resizing. This is a great idea.
Reply With Quote
  #8  
Old 24 Aug 2004, 23:45
Symbian.info Symbian.info is offline
 
Join Date: Nov 2001
Real name: Arjen
Angry

Originally Posted by mini2
Has anyone with PHP in safe mode tried this out yet? I'm keen (as others might be) to know if it works?
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

Last edited by Symbian.info : 24 Aug 2004 at 23:49.
Reply With Quote
  #9  
Old 31 Aug 2004, 01:05
vissa vissa is offline
 
Join Date: Feb 2004
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.
Reply With Quote
  #10  
Old 31 Aug 2004, 01:06
vissa vissa is offline
 
Join Date: Feb 2004
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.
Reply With Quote
  #11  
Old 31 Aug 2004, 18:25
memdy's Avatar
memdy memdy is offline
 
Join Date: Oct 2002
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);
Reply With Quote
  #12  
Old 01 Sep 2004, 14:25
CVMagic's Avatar
CVMagic CVMagic is offline
 
Join Date: Dec 2002
Location: USA/Connecticut
Real name: Carlos Vargas
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.
Reply With Quote
  #13  
Old 01 Sep 2004, 14:38
memdy's Avatar
memdy memdy is offline
 
Join Date: Oct 2002
http://www.offshoreonly.com/phpinfo.php
Reply With Quote
  #14  
Old 01 Sep 2004, 14:40
CVMagic's Avatar
CVMagic CVMagic is offline
 
Join Date: Dec 2002
Location: USA/Connecticut
Real name: Carlos Vargas
Originally Posted by memdy
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);
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
Reply With Quote
  #15  
Old 05 Sep 2004, 23:47
Blindchild02's Avatar
Blindchild02 Blindchild02 is offline
 
Join Date: Apr 2002
i get this error

Fatal error: Call to undefined function: unsharpmask() in /home2/xamira/public_html/forums/includes/functions_upload.php on line 292
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 04:13.

Layout Options | Width: Wide Color: