Seite 1 von 1
Bild im Textbody
Verfasst: 26.06.2005 18:25
von Mannix
Hallo,
gibt es einen Mod oder andere Möglichkeit, daß man in den Textbody ein Bild rein bringt, mittels uploaden? So wie es mit den Avatars gemacht wird.
danke & gruß
Verfasst: 26.06.2005 18:39
von Mannix
hat sich erledigt. Hab das gefunden, was ich suchte
Gruß
Lösung !
Verfasst: 26.06.2005 18:46
von gloriosa
Hallo,
falls Du derartiges
[ externes Bild ]
meinst ? Das bekommst Du mit dem IMG-Tag hin.
Wenn die User eigene Bilder verwenden sollen geht wie bereits beschrieben oder Du nimmst z.B. das
Photo Album v2.0.53 und die
bbcode.php-Datei ergänzt um Folgendes :
Latinoportal hat geschrieben: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\.example\.com/[^?[\]]*album_(pic|thumbnail)\.php\?pic_id=\d+)\[\/img\]#sie", "'[img:$uid]' . str_replace(' ', '%20', '\\1') . '[/img:$uid]'", $text);
//*****************************************************
IN THE ADDED LINE, FIND
example\.com
IN THE ADDED LINE, REPLACE WITH
<your_server_name>\.<your_server_domain>
(For example, to use "www.myserver.com", replace "example\.com" with
"myserver\.com".)
SAVE AND CLOSE ALL FILES
END OF HACK -----------------------------------------------------
Weitere Informationen findest Du hier im Board durch die Benutzung der Funktion
Suchen !