Quote:
function handle_bbcode_img_match($link)
{
global $vboptions;
$link = strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(' ', '', $link);
if ($vboptions['legacypostbit'])
{
return '<a href=' . $link . ' target="_blank"><img src="' . $link . '" onload="if(this.width>screen.width-900)
{this.width=screen.width-900;this.alt=\'Full View\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';"
border="0"></a>';
}
else
{
return '<a href=' . $link . ' target="_blank"><img src="' . $link . '" onload="if(this.width>screen.width-400)
{this.width=screen.width-400;this.alt=\'Full View\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';"
border="0"></a>';
}
}
|
I had to make my figures much higher to work, but it does work. Is there a way to add text to the bottom of the pic if its too big saying "Picture has been resized, click for full size pic" . just so some will know its been resized?
Thank you and cool hack btw :squareeyed: