There's a way with php functions, i'll try to make another version soon
The code wud become:
PHP Code:
<?php
$size = getimagesize("attachment.php?s=$session[sessionhash]&postid=$post[postid]");
if ($size[1]>200) {
<a href="attachment.php?s=$session[sessionhash]&postid=$post[postid]" target="_blank"><img src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" width="200" border="0" alt="" vspace="8" hspace="4"></a>
}
elseif ($size[1]=200) {
<img src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" border="0" alt="" vspace="8" hspace="4">
}
else {
<img src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" border="0" alt="" vspace="8" hspace="4">
}
?>
Such thing should work, but i dunno were to put it...