######################################
#   spell checker hack for ubb 6.1x+  
#   by:Daniel Collins                 
#=====================================
# Description: Adds a button in the   
#  new post/reply/edit/PM pages to    
#  Spellchecker.net (you need the     
#  Spellchecker.net javascript and    
#  perl files, as well as an account  
#  with Spellchecker.net to use this  
#  hack.                              
######################################

Open public_common.pl
Find the following text:
<TITLE>$vars_config{BBName}$title_wording</TITLE>
Before it add:
<script language="Javascript1.1" src=http://<your domain here>/spch.js></script>
###################

Open public_edit_post.pl
Find the following text:
<p><INPUT TYPE="SUBMIT" NAME="submit" VALUE="$vars_wordlets{edit_post}">

After it add:
<INPUT TYPE="BUTTON" VALUE="$vars_wordlets_mods{spell_check}" onclick="var f = 
document.forms[0]; doSpell ('en', f.message, '$vars_config{CGIURL}/sproxy.cgi', true);">
###################

Open public_new_reply_form.pl
Find the following text:
<p> <input type="SUBMIT" name="submit" value="$vars_wordlets{submit_new_reply}">

After it add:
<INPUT TYPE="BUTTON" VALUE="$vars_wordlets_mods{spell_check}" onclick="var f = 
document.forms[0]; doSpell ('en', f.message, '$vars_config{CGIURL}/sproxy.cgi', true);">
##################

Open public_new_topic_form.pl
Find the following text:
<p><INPUT TYPE="SUBMIT" NAME="submit" VALUE="$vars_wordlets{submit_new_topic}">

After it add:
<INPUT TYPE="BUTTON" VALUE="$vars_wordlets_mods{spell_check}" onclick="var f = 
document.forms[0]; doSpell ('en', f.message, '$vars_config{CGIURL}/sproxy.cgi', true);">
###################

Open public_pm_form.pl
Find the following text:
<p><INPUT TYPE="SUBMIT" NAME="submit" VALUE="$vars_wordlets{send_private_message}">

After it add:
<INPUT TYPE="BUTTON" VALUE="$vars_wordlets_mods{spell_check}" onclick="var f = 
document.forms[0]; doSpell ('en', f.message, '$vars_config{CGIURL}/sproxy.cgi', true);">
####################

Assuming the "Wordlets Modification" has been applied (if not, it should be)....
Open vars_wordlets_mods.cgi
Find the following text:
);
1;

Before it add:
q~spell_check~ => q~Spell Check~,
##################
end of hack
 
SpellChecker.net, PO Box 641697, Los Angeles, CA 90064 USA, Tel +1(310) 287-2001 x801, Fax +1(310) 287-2347
© 1999-2007 SpellChecker.net, Inc. All Rights Reserved.