1

Тема: [Запрос] Разрешить в сообщении html

Предполагается для определенных групп. В БД уже создано поля у групп allow_html от старых расширений.
Раньше реализовано было топорно:
в файле parser.php функция parse_message:

//function parse_message($text, $hide_smilies)
function parse_message($text, $hide_smilies, $allow_html = false)
        //$text = pun_htmlspecialchars($text);
        if(!$allow_html) $text = pun_htmlspecialchars($text);

viewtopic.php
в запрос добавляем g.g_allow_html

        //$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
        $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies'], $cur_post['allow_html']);

Может кто поможет автоматизировать с помощью developer_helper?

Поделиться