Last Revised: Febuary 22, 2002
This will instruct you in how to integrate WBOSS into CommuniGate Pro, running it from communigate, as opposed to from a separate Apache/mod_perl based web server.
Log in as root. Execute the following commands at a root prompt:
mkdir /var/CommuniGate/cgi-binchown root:mail /var/CommuniGate/cgi-binchmod 770 /var/CommuniGate/cgi-binLog into CommuniGate's administration port, and follow the below instructions
For Redhat 7.2 I had to install the following rpms (libtool-libs, pspell, aspell)
which can be found on Redhat 7.2 disc one, or on
www.rpmfind.net.
You may already have them. Verify if you do or not by running the following at
a root prompt:
rpm -qal | grep ispellrpm -qal | grep aspell (if you wish to use aspell instead of ispell)
(recommended)perl -e "use IPC::Open3;"mv spell.txt spell.plmv spell.pl /var/CommuniGate/cgi-binAdd the text that is in bold:
<BODY BGCOLOR="#ffffff" LINK="#330099 ALINK="#330099"
VLINK="#330099" onLoad="document.mail.Body.focus()">
<FORM action="Compose.wssp" method="post" enctype="multipart/form-data" name="mail">
Add your SpellCheck button somewhere on your compose page...location is up to you:
<input type="button" name="SpellCheck" value="SpellCheck" onclick="sendtext()">
Near the bottom of compose.wssp html between the lines:and
</FORM><!--%%INCLUDE "Navigation.wssi"-->
</BODY>
Insert the following: (You should first copy this into a plain text editor, otherwise the html will be scrambled)
<form id="spell" name="spell">
<script>
function sendtext() {
var semi = new RegExp("\;","g");
document.send.checkme.value = (document.mail.Body.value.replace(semi,"\;"));
document.send.form.value = "mail";
document.send.field.value = "Body";
window.open('','SpellChecker','width=480,height=360,top=150,left=150,scrollbars=1,location=true');
document.send.submit();
}
</script>
</form>
<form id="send" name="send" action="/cgi-bin/spell.pl" method="POST" target="SpellChecker">
<input type="hidden" id="checkme" name="checkme" value="">
<input type="hidden" id="form" name="form" value="">
<input type="hidden" id="field" name="field" value="">
<input type="hidden" id="spell" name="spell" value="check">
</form>