Version: 1.00, by ggiersdorf
Developer Last Online: Aug 2012
Version: 3.5.3
Rating:
Released: 12-27-2005
Last Update: Never
Installs: 100
Template Edits
Code Changes
No support by the author.
I was looking for some code that would allow an image over size x to be resized in IE, Firefox, and Opera. I tried all the variations out there without luck some would work in IE, some in Firefox, etc.. So I finally got a tweaked version of some old code that actually works flawless in IE, Firefox, and Opera. I have included it below, but It needs 1 final tweak that I'm hoping someone in the community can help with.
i am NOT taking credit for this hack, all I have done is tweak it to get it working for me..
This code has been updated as of 8:30pm with the clickable link built in now!
Step 1: Edit your class_bbcode.php file located in (root/includes)
The problem I am running into now is basically Signatures are used with the IMG tag this mod changes anything that has the IMG tag.
We need to re-write the $signature to use an alternate img tag like [SIG] [SIG] or somehow have the field for signatures remove the script above and use the default one from Vb. Basically trick it in signatures to use original vb code.
anyone want to help with this let me know I have some updated code than the above that works better but Im holding off posting it till were done here..
I had some errors on my forum with the resizing (at least I believe that's what caused it). I had a previous version of VBGallery installed. I then upgraded to VBPicGallery. So the old vbgallery pictures are now broken if posted within the forum (they are broken regardless of your mod)
Using the mod you provided, I get the following error at the very top of the forum page for certain threads.
-vissa
Hi Vissa,
Sorry, but I can't help you there. The error is caused by vbgarage.php and I don't use that hack. I don't have a clue why you get this error.
Yes you are right when you say my version of this hack is on the serverside. It causes extra serverload and when you have many images in a thread (including sig images) it will definitly slow your page.
There is a java hack on the cli?nt side. I'm using it now, since my users complained about long loading times. You can find it here: https://vborg.vbsupport.ru/showthrea...ghlight=resize.
It's not as sophisticated, it doesn't show when an image is unavailable or the imageserver is down, but it's much quicker
ggiersdorf's hack is also on the serverside, but it's much quicker as my version as it execute less code and doesnt get the imagesize before resizing the image.
I modified the info with the text you suggested and I got this error now:
Parse error: parse error, unexpected T_IF, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/zonaxbox/public_html/foros/includes/class_bbcode.php on line 1978