Авторизуйтесь по паролю
kpecthbiu 21.02.2017 Все вопросы » Общие вопросы 1264
nowheremany - 2017-02-2121 февраля 2017 16:31 - #61953
kpecthbiu - 2017-02-2121 февраля 2017 16:36 - #61954
vitnet - 2017-02-2121 февраля 2017 17:10 - #61957
if( $config['allow_site_wysiwyg'] ) { $parse->allow_code = false;
if( preg_match( "#\[img\](.+?)\[/img\]#i", $_POST['short_story'], $matches ) ) { $image = $matches[1]; } elseif( preg_match( "#\[img=(.+?)\](.+?)\[/img\]#i", $_POST['short_story'], $matches ) ) { $image = $matches[1]; } elseif( preg_match( "'\[thumb\](.+?)\[/thumb\]'i", $_POST['short_story'], $matches ) ) { $image = $matches[1]; } elseif( preg_match( "'\[thumb=(.+?)\](.+?)\[/thumb\]'i", $_POST['short_story'], $matches ) ) { $image = $matches[1]; } if( isset($image) && strpos($image, 'мой сайт.нет') === false ) { // заменить на свое $stop .= "<li>В статье обнаружена ссылка на внешнюю картинку: <a href=\"" . $image . "\" target=\"_blank\">" . $image . "</a>, загрузите её на сервер и добавьте в новость.</li>"; }
kpecthbiu - 2017-02-2121 февраля 2017 17:40 - #61960
nowheremany - 2017-02-2122 февраля 2017 13:41 - #61982
kpecthbiu - 2017-02-2122 февраля 2017 14:58 - #61987
nowheremany - 2017-02-2122 февраля 2017 16:06 - #61988
Апельсин - 2017-02-2122 февраля 2017 20:44 - #61990
ПафНутиЙ - 2017-02-2123 февраля 2017 10:04 - #61995
.ui-dialog {
z-index: 9999;
$tpl->set( '{short-story}', $row['short_story'] );
$tpl->set( '{short-story}', $row['short_story'] ); $tpl->set_block("'\\[short_story\\](.*?)\\[/short_story\\]'si", $row['short_story'] ? '\\1' : '');
[short-story]Показать этот текст, если есть краткая новость[/short-story]
[not-short-story]Показать этот текст, если краткой новости нет[/not-short-story]