Skip to content

img bbcode edit by KhanhDinh (7.1.0)

8 posts · 1.4K views

Posts
KhanhDinh Edited
First, search this line:
'[* ]'        => '',
            '[/* ]'       => '',

Add this line below:
'[img]'   => '',
            '[/img]'   => '',

Next, search this line:
// Спойлер

Add this line below:
'img' => [
                'from' => '#\[img](.+?)\[/img]#is',
                'to'   => '<center><img src="' . $homeurl . '/system/resize.php?image=$1" alt="IMG" /></center>',
                     ], //IMG

Final, upload the attachment and unzip it to system
ViROSS Edited
4 8 15 16 23 42
Вопрос про resize.php

Как сделать что бы если размер изображения не белее 100x100 px то выводим оригинал размер, если больше 100х100 то присваеваем свой размер 90x80 к примеру
Sign in to answer in the topic. Log In