You are missing the { and } to surround the IF statement.
This is a copy of my code... a few line above and below of the original insert.
Code:
* @param string The URL to the image.
*
* @return string HTML representation of the tag.
*/
function handle_bbcode_img_match($link)
{
$link = $this->strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(' ', '', $link);
{if (preg_match("/yourDomain.com/i", $link))
{
return '<img src="' . $link . '" border="1" />';
} else {
return '<img src="' . $link . '" border="1" height="100" width="100" />';
}
}
# return '<img src="' . $link . '" border="0" alt="" />';
}
/**
* Removes the specified amount of line breaks from the front and/or back
* of the input string. Includes HTML line braeks.
Note, I kept the old original code, just added the '#' to block the line.
UPDATE: I just checked the test posts, it appears it will effect the signatures. I'll update it to not effect sigs later tonight.
UPDATE 2: I found out why my test didn't catch the sig images... I have a custom BB code for Sig images.