Version: 1.00, by Steve St.Lauren
Developer Last Online: Mar 2013
Version: 3.0.8
Rating:
Released: 07-28-2004
Last Update: 09-09-2004
Installs: 111
No support by the author.
Having trouble with large images in [img] or <img src> tags in your posts causing your templates to go too wide causing a horizontal scroll bar for all posts? I have many users that attach large images to their posts either through vB img or html img src tags. In vB2 it wasn't that much of an issue because it only caused their post to go wide causing a horizontal scroll bar. In vB3 it causes all the posts on that thread to go to that width.
This hack uses the img src width="xx" tag to resize the picture to whatever max size you wish. It also adds a link to the full size image in it's original location and retains any extra formatting the user puts in the tag. In addition it checks to see if the picture actually exists and if not show "Image link is broken" where the picture would have been. Please click install if you install it and please give feedback so I can go full release with it if it's bug free.
Updated on 07/30/2004 - R0.9
Updated on 08/06/2004 - R1.0 - Identical to R.9, no need to upgrade just changing to full release from beta
Updated on 08/10/2004 - R1.1 - Added max_imgsize to the 2nd section of code (and removed global max_imgsize line from both), some users had problems with the code grabbing the max_imgsize from the first section - this fixes that.
Updated on 09/09/2004 - R1.2 - fixed problem with duplicating the resize notice when using wysiwyg editor
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Well, I rehosted the images myself as a test and they came up fine. It was just with this one user. Large or small images, but its fixed now and working great.
Awesome Hack!
Some servers have firewalls installed that will not allow other servers to open files for reading from them. If they do that then this hack won't work on that image. It doesn't come up often but it does happen.
Or is that too risky because code changes. But I thought it was easy with the plug-ins.
Hey, I installed this hack and it doesn't seem to do anything. No error messages are generated, the image just shows up full size. I double checked the hack install and everything looks fine. Is there anything that you know of that would cause this code to fail gracefully (as it seems to be doing)? Having this hack isn't a huge issue for me, but it would be nice. Let me know if you need more information to help me out here.
PHP: 4.3.10
vB: 3.0.7
Thanks for writing the code and the GREAT support! Big props!
Or is that too risky because code changes. But I thought it was easy with the plug-ins.
I could but all my work is production based. I won't be deploying 3.5 anywhere until it's a working stable version and has been out for a few months. Unforetunately, I just don't have enough hours in the day to play around with beta releases. The main site I run gets 2.5 million hits a day and has up to 1400 simultaneous users on the forums and is a subscription site. With that kind of traffic volume I'll let others be the guinea pigs to mark sure it's all working stable before I deploy it. Sorry.
Hey, I installed this hack and it doesn't seem to do anything. No error messages are generated, the image just shows up full size. I double checked the hack install and everything looks fine. Is there anything that you know of that would cause this code to fail gracefully (as it seems to be doing)? Having this hack isn't a huge issue for me, but it would be nice. Let me know if you need more information to help me out here.
PHP: 4.3.10
vB: 3.0.7
Thanks for writing the code and the GREAT support! Big props!
Hmmm, are you sure the images in question are larger than 560 pixels wide (or whatever you set it to in the hack)? Also that they are linked images and not attached ones? This only works with images linked in with html or vb codes.
I changed the value to 600, will be changing to 800 today when I check the code again. I think I'll have a friend look as well to see if I'm missing anything obvious. Images are inserted via the [ img] [ /img] tags.
I installed this a couple of times, but everytime ALL my pictures within posts have the "Image link is broken" error, no matter what size it is. Even signature pics comes up like that. I've read all the replies but nothing really helps. Thanks.