Открываем файл formcode.js
Ищем код (строка 99)
code:JsHttpRequest.query('jsloader.php?loader=preview', {action: act, html: htmltags, text: TextArea.value}, function(data,text) {
который меняем на
code:JsHttpRequest.query('jsloader.php?loader=preview', {action: act, html: htmltags, shsmiles: form.showsmiles.checked, text: TextArea.value}, function(data,text) {
Затем открываем файл jsloader.php
Ищем код (строка 29)
code:$fm->_String('action');
после которого вставляем
code:$smiles = ($fm->input['shsmiles'] == '') ? FALSE : TRUE ;
Далее ищем два вхождения (строки 61 и 64)
code:echo $fm->formatpost($fm->input['text'],$fm->_Boolean($fm->input,'html'));
и в обоих случаях меняем на
code:echo $fm->formatpost($fm->input['text'],$fm->_Boolean($fm->input,'html'),$smiles);
Теперь вроде всё... |