Quote:
Originally Posted by alfata
it works fine with me on 3.0.6
but i wonder is there a way to make the pic open in new window ,also adding alt var for the pic to give "Picture has been resized, click for full size pic" msg, it is better than shown below the pic....
many thax to the coder 
*install
|
The mod to change it to open in another window was near the beginning of this thread. Here it is again with your request of adding the "Picture has been resi"....... msg to the alt tag as well:
You would add it into these lines:
in the first part:
$bbtag = '<table><tr><td align="center"><a href="' . $link . '"><img src="' . $link . '" width="'.$max_imgsize.'" border="0"'.substr($bbtag,$linkclose+1,strlen($bbt ag)-$linkclose+1).'<br>Picture has been resized, click for full size pic</a></td></tr></table>';
would become:
$bbtag = '<table><tr><td align="center"><a href="' . $link . '" target="_blank"><img src="' . $link . '" width="'.$max_imgsize.'" border="0"' alt="Picture has been resized, click for full size pic".substr($bbtag,$linkclose+1,strlen($bbtag)-$linkclose+1).'<br>Picture has been resized, click for full size pic</a></td></tr></table>';
and in the second section:
$biglink = '<table><tr><td align="center"><a href="' . $link . '" ><img src="' . $link . '" width="'.$max_imgsize.'" border="0" alt=""><br>Picture has been resized, click for full size pic</a></td></tr></table>';
would become:
$biglink = '<table><tr><td align="center"><a href="' . $link . '" target="_blank"><img src="' . $link . '" width="'.$max_imgsize.'" border="0" alt="Picture has been resized, click for full size pic"><br>Picture has been resized, click for full size pic</a></td></tr></table>';
If you want to remove the "Picture has been resiz".... text from below the pic just remove the
<br>Picture has been resize, click for full size pic
text out of both of those sections.