Многие наверное уже знают о Яндекс.Спеллер - проверке правописания.
Давайте подключим это дело к нашему движку.
Содержимое аттача заливаем на сервер.
Открываем viewtopic.tpl и
в самый вверх вставляем:
[php]<script type="text/javascript" src="speller/spell.js"></script>
<script type="text/javascript">
var speller = new Speller({ url: "speller", lang: "ru", options: Speller.IGNORE_URLS });
function spellCheck() {
speller.check([document.getElementById("message")]);
}
</script>[/php]
открываем posting_editor.tpl
находим[HTML]<input type="submit" name="preview" value="{L_PREVIEW}" id="post-preview-btn" onclick="$('#post-submit').remove();"> [/HTML]
перед вставляем
[HTML]<img src="./images/spell.gif" onclick="spellCheck()" style="width:20px;height:20px;cursor:pointer;" alt="Проверить" title="Проверить"/>[/HTML]
находим
[HTML]<input type="button" value="{L_AJAX_PREVIEW}" onclick="ajax.exec({ action: 'posts', type: 'view_message', message: $('textarea#message').val()});">[/HTML]
после вставляем
[HTML]<img src="./images/options.gif" style="width:20px;height:20px;cursor:pointer;" onclick="speller.optionsDialog()" alt="Параметры" title="Параметры"/>[/HTML]
Пользуемся!