was ganz sicher und ohne großartiges Anpassen des Codes funktioniert ist Folgendes:
Code: Alles auswählen
öffne includes/bbcode.php
suche:
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?)\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
ersetze es durch:
// [img]image_url_here[/img] code..
if (substr_count( $text, $_SERVER["SERVER_NAME"]) && substr_count( $text, "album_pic.php"))
{
$text = preg_replace("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
}
else
{
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
}
Ist übrigens auch von Smartors Seite aus irgendeinem Thread.
Gruß Max