phpbb Problem
Verfasst: 25 Dez 2005, 21:27
Ich will in meinem Forum ein Script einbauen was die Bilder Automatisch kleiner macht von der grössse und das man einfach dann nur das Bild anglicken muss um es in seiner vollen grösse zu sehen nur verstehe ich eines nicht.
Links des Mod
http://www.xbots.de/manual_image_resize.txt
Es geht um diese hier.
Allso was ich fragen wollte wo soll ich jetzt die grösse des Bilder eingeben dammit ich es sehen kann wie ich es haben will sagen wir 500 x600
Danke für Hilfe schonmal
Links des Mod
http://www.xbots.de/manual_image_resize.txt
Es geht um diese hier.
Code: Alles auswählen
#
#-----[ AFTER, ADD ]------------------------------------------
#
# "([0-5]?[0-9]?[0-9])" limits the maximum width or height to 599 by limiting the digits
# It is important to know that for example "([0-6]?[0-4]?[0-0])" forbids the height '656' because the digits 5 (2. position) and 6 (3. position) are not allowed
# So please limit the specifications to 599, 699, ...
#
// BEGIN Resize Images
// [img width= height=] and [/img]code..
$patterns[] = "#\[img width=([0-5]?[0-9]?[0-9]) height=([0-5]?[0-9]?[0-9]):$uid\](.*?)\[/img:$uid\]#si";
$replacements[] = $bbcode_tpl['resized_img'];
// END Resize Images
Danke für Hilfe schonmal