1. скачиваем архив с этой страницы http://api.yandex.ru/speller/doc/dg/tas ... ck-web.xml или с прямой ссылки на файл http://speller.yandex.net/speller/1.0/spell-1.0.zip, распаковываем его в директорию /speller/, загружаем эту директорию в корень форума
2. в файле /language/ru/posting.php перед
Код: Выделить всё
));
Код: Выделить всё
'SPELL_CHECK' => 'Орфография',
'SPELL_CHECK_HELP' => 'Проверить орфографию в сообщении',
'SPELL_OPTIONS' => 'Орфография - настройки',
'SPELL_OPTIONS_HELP' => 'Изменить настройки проверки орфографии в сообщении',
Код: Выделить всё
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
Код: Выделить всё
<script type="text/javascript" src="speller/spell.js"></script>
<script type="text/javascript">
// <![CDATA[
var speller = new Speller({ url:"speller", lang:"ru", options:Speller.IGNORE_URLS});
function spellCheck()
{
speller.check([document.getElementById("message")]);
}
// ]]>
</script>
Код: Выделить всё
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
Код: Выделить всё
<!-- BEGIN custom_tags -->
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
<!-- END custom_tags -->
Код: Выделить всё
<input type="button" class="button2" name="bbspellcheck" id="bbspellcheck" value="{L_SPELL_CHECK}" onclick="spellCheck();" title="{L_SPELL_CHECK_HELP}" />
<input type="button" class="button2" name="bbspelloptions" id="bbspelloptions" value="{L_SPELL_OPTIONS}" onclick="speller.optionsDialog();" title="{L_SPELL_OPTIONS_HELP}" />
Код: Выделить всё
<!-- BEGIN custom_tags -->
<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> />
<!-- END custom_tags -->
Код: Выделить всё
<textarea style="height: 9em;" name="message" rows="7" cols="76" tabindex="3" class="inputbox"></textarea>
Код: Выделить всё
<textarea style="height: 18em;" name="message" id="message" rows="14" cols="76" tabindex="3" class="inputbox"></textarea>
Код: Выделить всё
<textarea name="message" rows="7" cols="76" tabindex="3" style="width: 98%;">
Код: Выделить всё
<textarea name="message" id="message" rows="7" cols="76" tabindex="3" style="width: 98%;">
Скриншоты получившегося: