Helpful Information
 
 
Category: vBulletin 3.0 Beta Releases
Auto Resize Attachment Images...

OK folks, I'm not a person who's got a lot of time, and I only did this because my forum members wanted it, however I'd like to share this little hack (1 file) with you all.

I'll put it in Beta as it's probably bug ridden, but seems OK to me!

I can't offer support, and I can't guarantee it will work on your vB... read on for my details...

Not tested in safemode, and used only with the attachments stored in the database.

I have vb 3.0.3 and PHP 4.3.8 with GD (2.0.23) bundled on a Linux machine.

---------------

The only problem I think I can forsee is the file size check occurs before the image is made smaller (in dimensions) and in some cases I found that imagepng increases the file size on disk. I'm not bothered, but you might be?

---------------

Anyway, enjoy, and I'll post back here any problems if I encounter any.

---------------

P.S. It's a very simple hack, 1 file modification, and 1 (optional) phrase update.

This is working fine, and next week it will get a lot of use (abuse) by my members as we have a big event coming up. If it survives that, I'll move it into full releases, unless anyone on here can find a reason not to.


;)

Thanks for this.

Matt

All has gone smoothyl, so I've posted this as a full release: http://www.vbulletin.org/forum/showthread.php?p=543813#post543813

I'll close this thread.










privacy (GDPR)