here are some recommended changes for this template modification (i edited the quoted text)
Quote:
Originally Posted by cclaerhout
Your hack is really great and it works with french language. Thanks you very much.
I've just modified the installation process. I find it easier.
Code installation
Put
Code:
<script type="text/javascript" src="vbspell.js"></script>
at the end of your headinclude template.
Put
Code:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
<input type="hidden" name="spell_formname" value="" />
<input type="hidden" name="spell_fieldname" value="" />
<input type="hidden" name="spellstring" value="" />
</form>
at the end of your header template.
Link to the dictionnary
editor_toolbar_on:
Find
Code:
<if condition="is_browser('ie') AND !is_browser('mac')">
<td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
</if>
Replace with
Code:
<td><div class="imagebutton" id="{$editorid}_cmd_spelling(null)"><img onclick="spellCheck('vbform', '$editorid', '2');" src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
postbit_quickedit AND showthread_quickreply :
Find
Code:
<if condition="is_browser('ie')">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
</if>
Replace with
Code:
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_spelling(null)"><img onclick="spellCheck('vbform', '$editorid', '2');" src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
What does it do ?
It replaces vB spell check with this one. I'm so happy it works with french language
Precision : i've got vB Gold Version
|
this will make the code XHTML 1.0 Transitional
it will also make it so when you hover your mouse over the image it changes colors like the normal buttons, and still works when you click on it without opening the iespell dialog
*note*
this was tested on 3.6, but should still work on 3.5
P.S. fresh installing into 3.6 took some time (the installer needed lots of tweaking) and i still dont have my ACP working
it shows the fields and whatnot but not the text that tells me what im editing