Quote:
Originally Posted by joanne862
Great hack!
Amazed myself by getting it installed without any major hitches.
Just one problem- it doesn't work in writing a new PM. Clicking the spell check box has no effect, nothing happens.
I've changed the USERCP_SHELL template as instructed. In the pm_newpm template, there was no $navbar to put the code in (B) under. I've tried putting it in a couple of different places, but it still doesn't work. Any ideas what I've done wrong?
thanks
|
I didn't even bother with the USERCP_SHELL. In the PM_NEWPM template, I did the following:
Find:
Code:
return validatePost(formname, formname.title.value, 0, $vboptions[pmmaxchars]);
}
</script>
Below it add:
Code:
<script src="spellcheck.js"></script>
<form name="spell_form" id="spell_form" method="POST" target="spellWindow"
action="checkspelling.php">
<input type="hidden" name="spell_formname" value="">
<input type="hidden" name="spell_fieldname" value="">
<input type="hidden" name="spellstring" value="">
</form>
Find:
Code:
[preview_message]" accesskey="p" name="preview" tabindex="1" onclick="this.form.dopreview = true; return true;" />
Below it add:
Code:
<CENTER>
<if condition="DOTOOLBAR!=2">
<input type="hidden" name="toolbar" value="1" />
<input type="button" class="button" value="Spell Check" onClick="spellCheck( 'vbform', 'message', '1');">
<else />
<input type="hidden" name="toolbar" value="2" />
<input type="button" class="button" value="Spell Check" onClick="spellCheck( 'vbform', 'WYSIWYG_HTML', '2');">
</if>
</CENTER>