https://www.icyphoenix.com/viewtopic.php?f=35&t=214&p=2620#p2620
-----------------------------------
AvrilBoi
Thu 07 Sep, 2006 15:42

Re: Limit Image Width Faster
-----------------------------------
Someone made me notice that it doesn't resize images in topic previews pages (posting.php?mode=topicreview&t=XXX)
So, if anyone is interested in making it work also there, here's what to do.

[b]OPEN[/b]
/templates/ca_aphrodite/simple_header.tpl 
[b]FIND[/b]
[code linenumbers=false]<link rel="stylesheet" href="templates/ca_aphrodite/style_{TPL_COLOR}.css" type="text/css" />[/code]
[b]After, ADD[/b]
[code linenumbers=false]<script type="text/javascript">
function redimImg(foto, maxSize){
w = foto.width;
if (w > maxSize){
foto.width = maxSize;
}
}
</script>[/code]


