Okay, as mentioned before, open the
functions_bbcodeparse.php file.
Find the following code:
PHP Code:
// ###################### Start bbcodeparseimgcode #######################
function handle_bbcode_img($bbcode, $dobbimagecode)
{
global $vboptions, $bbuserinfo;
if($dobbimagecode AND ($bbuserinfo['userid'] == 0 OR $bbuserinfo['showimages']))
{
// do [img]https://vborg.vbsupport.ru/[/img]
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"' . iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "handle_bbcode_img_match('\\1')", $bbcode);
}
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "handle_bbcode_url('\\1', '', 'url')", $bbcode);
return $bbcode;
}
Replace it with this (change the location to the image as needed):
PHP Code:
// ###################### Start bbcodeparseimgcode #######################
function handle_bbcode_img($bbcode, $dobbimagecode)
{
global $vboptions, $bbuserinfo;
if($dobbimagecode AND $bbuserinfo['userid'] == 0)
{
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"' . iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iU', "<a href=\"register.php\"><img src=\"/images/register.gif\" border=\"0\" alt=\"Please Register\" /></a>", $bbcode);
}
else if($dobbimagecode AND $bbuserinfo['showimages'])
{
// do [img]https://vborg.vbsupport.ru/[/img]
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"' . iif(!$vboptions['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "handle_bbcode_img_match('\\1')", $bbcode);
}
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "handle_bbcode_url('\\1', '', 'url')", $bbcode);
return $bbcode;
}
Keep in mind though, this also affects sigs with the IMG tag....