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.
Parse error: parse error in /home/virtual/site4/www/html/montada/includes/functions_bbcodeparse.php on line 1685
Fatal error: Call to undefined function: handle_bbcode_img() in /home/virtual/site4/www/html/montada/includes/functions_bbcodeparse.php on line 640
please help what can i do ?
Regards
You made a mistake in the hack file from lines 141-151:
Quote:
In the same file look for this line (around line 1088 after the above change is made):
function handle_bbcode_img($bbcode, $dobbimagecode)
replace with:
// Image size hack R1.2
// Modified by SS
// function handle_bbcode_img($bbcode, $dobbimagecode)
function handle_bbcode_img($bbcode, $dobbimagecode, $iswysiwyg)
//
Check those lines out - you have something wrong there.
Warning: getimagesize(): stream does not support seeking in /home/virtual/site4/fst/var/www/html/montada/includes/functions_bbcodeparse.php on line 1140
Warning: getimagesize(): stream does not support seeking in /home/virtual/site4/fst/var/www/html/montada/includes/functions_bbcodeparse.php on line 1140
and then on with the hack (which you have in your file):
Quote:
// Image Size hack r1.2
// Modified by SS to resize large pics and place link to full size pic
// return '<img src="' . $link . '" border="0" alt="" />';
I'm not sure if that's what is causing your error or not but it's the only thing I can see wrong in your file. BTW, I believe that they do not want people posting any of the vB files in their entirety on here so you should probably delete that attachment. I have it saved on my machine to give you further help.
On line 1122 in your file you deleted several lines from the original code. Starting on line 1122 you should have:
and then on with the hack (which you have in your file):
I'm not sure if that's what is causing your error or not but it's the only thing I can see wrong in your file. BTW, I believe that they do not want people posting any of the vB files in their entirety on here so you should probably delete that attachment. I have it saved on my machine to give you further help.
Sir ,
I was modify the file and uploade it but , there is a new error like this
Warning: getimagesize(): stream does not support seeking in /home/virtual/site4/fst/var/www/html/montada/includes/functions_bbcodeparse.php on line 1144
Warning: getimagesize(): stream does not support seeking in /home/virtual/site4/fst/var/www/html/montada/includes/functions_bbcodeparse.php on line 1144