PDA

View Full Version : Spell Checker


05-01-2000, 07:40 AM
This is a remotely hosted solution that seems rather nice and easy to implement.

Step 1. Go To: http://www.spellchecker.net/ and sign up for a free account.

Step 2. Go To: http://www.spellchecker.net/install_nav/any_text_box.htm and follow the directions.

Here is a brief summary.

1. Add code to head tag right under CSS style sheet
2. Copy some more code next to the submit buttons.
3. Upload a cgi script to your cgi-bin and chmod it 755

:) Done

Anyhow its easy if anyone needs help let me know.

05-03-2000, 05:22 AM
Brian:

Glad to hear that it works with VB.

Parker

05-03-2000, 05:28 AM
Yes it works great and took about ohh half a minute to do :)

05-05-2000, 10:44 AM
Brain:

I put this on my board and all works great except it will not return the corrected text back to the textbox. When I try to have the corrected message returned it gives me an error saying that the url could not be found.

I copied the code exactly from UBB except I changed the script to f.message instead of f.ReplyMessage and f.Message that is is used in UBB.

I have written the author of the code but he just wants to look at this program.

Any ideas on anything else to change to get it to work with vBulletin?

Parker

05-05-2000, 02:53 PM
Did you upload the cgi script and enter its path in the code?

-Brian

05-05-2000, 06:53 PM
Yes I did. I just left it were it was in the cgi-bin and pointed to it in the button tag as with UBB.

Parker

05-06-2000, 12:02 AM
I wonder...try REPLIER.message in the new reply one.

In the newthread template, you may need to modify the <form> tag:

<FORM ACTION="newthread.php" name="REPLIER" METHOD="POST" NAME="postthread">


Again, use REPLIER.message .

John

05-06-2000, 09:19 AM
John:

In the UBB script the form tag is as follows.

<FORM ACTION="postings.cgi" NAME="REPLIER" METHOD="POST">

then in the textarea you have

<TEXTAREA NAME="ReplyMessage" ROWS=20 COLS=60 WRAP="VIRTUAL">$InsertPostMess$ReplyMessage</TEXTAREA>

and the code for the spellchecker is

<INPUT TYPE="BUTTON" VALUE="Spell Check" onclick="var f = document.forms[0]; doSpell( 'en', f.ReplyMessage, document.location.protocol + '//' + document.location.host + '/cgi-bin/spellcheck.cgi', true);">

So the spellcheck uses the Textarea name in its script.

In vB you use:

<TEXTAREA NAME="message" ROWS=20 COLS=60 WRAP="VIRTUAL">$message</TEXTAREA>

so the code for spellcheck would be:

<INPUT TYPE="BUTTON" VALUE="Spell Check" onclick="var f = document.forms[0]; doSpell( 'en', f.message, document.location.protocol + '//' + document.location.host + '/cgi-bin/spellcheck.cgi', true);">

Would maybe changing the name in the textarea to ReplyMessage like what is used in UBB make any difference.

Parker

[Edited by Parker Clack on 05-06-2000 at 05:58 PM]