I agree with Dismounted, however as a temp solution here you go:
PHP Code:
if (!function_exists('check_image_src'))
{
function check_img_src($tag, $src)
{
static $blacklisted;
if (!$blacklisted)
{
$blacklisted = array(
'website1.com',
'website2.com',
'website3.com',
);
}
foreach ($blacklisted as $bl)
{
if (strstr($src, $bl))
{
return '';
}
}
return stripslashes($tag);
}
}
$this->post['message'] = preg_replace("#(<img src=\"(.*[^\"])\" border=\"0\" alt=\"\" />)#e", "check_img_src('\\1', '\\2')", $this->post['message']);
I would not recommend using this long-term, just adjust the array in the code to add additional websites to the blacklist. Your smilies should be unaffected even if you block your own forums domain.