mr.gamesbay
09-23-2004, 11:52 AM
Hi Com
I used this one for wide image automatic resize
[vB 3.0.3] - Wide image automatic resize [IMG] TAG
//replace (around line 1015) in includes/functions_bbcodeparse.php
return '<img src="' . $link . '" border="0" alt="" />';
//with
return '<img src="' . $link . '" border="0" alt="" OnLoad="if(this.width > 500) {this.width=500; this.style.cursor=\'hand\'; this.title=\'Click Here to open the image in a new window\';}" onClick="javascript:window.open(\'' . $link . '\',\'\',\'scrollbars=1,toolbar=0,resizable=1,menu bar=0,directories=0,status=0\' )" />';
It workes fine and work fast, but i have a prob. when i the WYSIWYG editor and the IMG Code:
http://www.gamesbay.de/showpost.php?p=45128&postcount=2
Under the posting there is a part of the code.
I hope someone can help.
I know, there is ithis code too:
https://vborg.vbsupport.ru/showthread.php?t=67743
but this one, is extreme slow and have some probs. with dead links.
I used this one for wide image automatic resize
[vB 3.0.3] - Wide image automatic resize [IMG] TAG
//replace (around line 1015) in includes/functions_bbcodeparse.php
return '<img src="' . $link . '" border="0" alt="" />';
//with
return '<img src="' . $link . '" border="0" alt="" OnLoad="if(this.width > 500) {this.width=500; this.style.cursor=\'hand\'; this.title=\'Click Here to open the image in a new window\';}" onClick="javascript:window.open(\'' . $link . '\',\'\',\'scrollbars=1,toolbar=0,resizable=1,menu bar=0,directories=0,status=0\' )" />';
It workes fine and work fast, but i have a prob. when i the WYSIWYG editor and the IMG Code:
http://www.gamesbay.de/showpost.php?p=45128&postcount=2
Under the posting there is a part of the code.
I hope someone can help.
I know, there is ithis code too:
https://vborg.vbsupport.ru/showthread.php?t=67743
but this one, is extreme slow and have some probs. with dead links.