Yes, you can specify a width. For my needs i chose "500px"
Here?s the function:
PHP Code:
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="_self"><img src="' . $link . '" onload="if(this.width>500) {this.width=500;this.alt=\'Full View\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" border="2" border-style="risen"></a>';
}
else
{
return '<a href=' . $link . ' target="_self"><img src="' . $link . '" onload="if(this.width>650) {this.width=650;this.alt=\'Full View\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" border="0"></a>';
}
}
Many thanks to the author! I love it!
PS: Isn?t there a way of copying code from UEdit to vB so that one hasn?t got to edit every line break?