Ersetze:durch:
PHP-Code:
function mycode_parse_img($url, $dimensions=array(), $align='')
{
$url = trim($url);
$url = str_replace("\n", "", $url);
$url = str_replace("\r", "", $url);
if($align == "right")
{
$css_align = " style=\"float: right;\"";
}
else if($align == "left")
{
$css_align = " style=\"float: left;\"";
}
if($dimensions[0] > 0 && $dimensions[1] > 0)
{
return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" alt=\"\"{$css_align} />";
}
else
{
return "<img src=\"{$url}\" border=\"0\" alt=\"\"{$css_align} />";
}
}
PHP-Code:
function mycode_parse_img($url, $dimensions=array(), $align='')
{
global $mybb;
$url = trim($url);
$url = str_replace("\n", "", $url);
$url = str_replace("\r", "", $url);
if(preg_match("#".preg_quote("*HIER EINE GEWÜNSCHTE URL*")."#", $url) || preg_match("#".preg_quote("*HIER EINE GEWÜNSCHTE URL*")."#", $url))
{
return "<a href=\"{$url}\" target=\"_blank\">{$url}</a>";
}
if($align == "right")
{
$css_align = " style=\"float: right;\"";
}
else if($align == "left")
{
$css_align = " style=\"float: left;\"";
}
if($dimensions[0] > 0 && $dimensions[1] > 0)
{
return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" alt=\"\"{$css_align} />";
}
else
{
return "<img src=\"{$url}\" border=\"0\" alt=\"\"{$css_align} />";
}
}
Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.