hier mal einige neue Ideen, natürlich auch wieder ohne Garantie auf Funktion

1.)
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, "modules/mx_smartor/album.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);
}
2.)
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, "modules/mx_smartor/album.php?smartor_mode=album_pic))
{
$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);
}
nun wieder einen generellen Machartwechsel:
3.)
Code: Alles auswählen
BEGINNING OF HACK -----------------------------------------------------
HACK NAME: BJB1
HACK VERSION: 1.0
PHPBB2 VERSION: 2.0.11
PHOTO ALBUM VERSION: 2.0.53
OPEN
includes/bbcode.php
FIND
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
AFTER, ADD
//*****************************************************
// HACK: Allow embedded images from this server's photo album
// [img]http://www.example.com/forum_image_url[/img] code.
// Option 1:
$text = preg_replace("#\[img\](http://www\.sttweb\.de/mx/modules/mx_smartor/[^?[\]]*album\.php\?smartor_mode=album_pic&pic_id=\d+)\[\/img\]#sie", "'[img:$uid]' . str_replace(' ', '%20', '\\1') . '[/img:$uid]'", $text);
//*****************************************************
und wenn das nicht klappt, dann das:
4.)
Code: Alles auswählen
BEGINNING OF HACK -----------------------------------------------------
HACK NAME: BJB1
HACK VERSION: 1.0
PHPBB2 VERSION: 2.0.11
PHOTO ALBUM VERSION: 2.0.53
OPEN
includes/bbcode.php
FIND
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
AFTER, ADD
//*****************************************************
// HACK: Allow embedded images from this server's photo album
// [img]http://www.example.com/forum_image_url[/img] code.
// Option 1:
$text = preg_replace("#\[img\](http://www\.sttweb\.de/mx/modules/mx_smartor/[^?[\]]*album_(pic|thumbnail)\.php\?pic_id=\d+)\[\/img\]#sie", "'[img:$uid]' . str_replace(' ', '%20', '\\1') . '[/img:$uid]'", $text);
//*****************************************************
Wobei ich hier meine, dass 4.) sehr sicher nix bringen wird, 1.) wahrscheinlich auch ein Reinfall ist und 2.) und 3.) die Favoriten sein könnten.
Und wenn das nix bringt, liegt das an dem Modulegedönse, dann habe ich erstmal keine Idee mehr.
Gruß Max