MyBB.de Forum
[img=1000x700] geht nicht - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Theme-Diskussionen (https://www.mybb.de/forum/forum-84.html)
+--- Thema: [img=1000x700] geht nicht (/thread-439.html)



[img=1000x700] geht nicht - sindbad123 - 03.11.2005

wenn ich eine Grafik mit mehr als 1000 Pixeln Größe darstellen will, wird nur der MyBB-Code gezeigt. z.B. bei [img=1000x700].
Soll das so sein?


RE: [img=1000x700] geht nicht - Michael - 03.11.2005

Das ist aber auch Übergröße! Toungue

Öffne die Datei functions_post.php im Ordner inc und suche nach:
PHP-Code:
$message preg_replace("#\[img=([0-9]{1,3})x([0-9]{1,3})\]([a-z]+?://){1}(.+?)\[/img\]#i""<img src=\"$3$4\" border=\"0\" width=\"$1\" height=\"$2\" alt=\"\" />"$message); 
Ersetzen durch:
PHP-Code:
$message preg_replace("#\[img=([0-9]{1,4})x([0-9]{1,4})\]([a-z]+?://){1}(.+?)\[/img\]#i""<img src=\"$3$4\" border=\"0\" width=\"$1\" height=\"$2\" alt=\"\" />"$message);