https://www.icyphoenix.com/viewtopic.php?f=35&t=214 ----------------------------------- AvrilBoi Tue 29 Aug, 2006 14:56 Limit Image Width Faster ----------------------------------- The function limit image width actually gets the image width using a php function, and than (if the width passes the max image width set) it sets width="MAX_IMAGE_WIDTH" and the height proportionally, but this function can sometimes slow down the forum too much. So this morning I was looking for a solution... and I managed to do it using javascript. Maybe this can be raplaced with the actual limit image width function in the next xs release, I don't know how to replace, so for now I've just disabled the limit image width function and applied mine. Here's what to do if you trust me :P : [b]Disable[/b] the limit image width function (ACP - General configuration - Image width, and set at least the first 2 options to NO) [b]OPEN[/b] /templates/ca_aphrodite/overall_header.tpl [b]FIND[/b] [codeblock] [/codeblock] [b]Before, ADD[/b] [codeblock] [/codeblock] [b]OPEN[/b] /templates/ca_aphrodite/bbcode.tpl [b]FIND[/b] [codeblock] [/codeblock] [b]REPLACE WITH[/b] [codeblock] [/codeblock] [b]FIND[/B] [codeblock] Image [/codeblock] [B]REPLACE WITH[/B] [codeblock] Image [/codeblock] [b]OPEN[/b] /includes/bbcode.php [b]FIND[/b] [codeblock] $html = '[/code] [b]After, ADD[/b] [code linenumbers=false][/code]