View Full Version : Free Spellchecking is Here
Parker Clack
04-13-2002, 10:00 PM
There has been a PERL script out for some time that allows you to make use of aspell libraries that you can have installed on your server with PHP.
I have also included a text file that has the javascript that you insert into your editpost, newthread and newreply templates to add spell checking to your forums. The edited text is then inserted into the original document when submitted.
You need to have a cgi-bin, or similar directory, set up on your server and the aspell or ispell libraries for PHP on your server. (Do a look up for aspell or ispell on google, etc. on these libraries if you don't know about them.)
If someone wants to look over the enclosed PERL script and write it in PHP that would be great and make it to were you didn't have to have PERL on your server.
Enjoy!
Parker
Thanks, I'd love it if someone rewrote it in PHP :D
Unknown553
04-14-2002, 02:29 AM
Originally posted by Dade
Thanks, I'd love it if someone rewrote it in PHP :D
I second that
*misses spellchecker.net* :(
Parker Clack
04-14-2002, 03:02 AM
Unknown553.
This works just like spellchecker.net but it also gives you a pull down menu for each misspelled word to chose from. The other difference is its free. :)
Parker
Psychdrone
04-14-2002, 03:42 AM
that is so wierd guys One of the forums I am at, uses spellchecker, and has never payed for it.... yet it still functions 100%
there is another free spellchecker released. i saw it before but i dont use it..
Unknown553
04-14-2002, 04:32 AM
Ok I installed it, works pretty well. However, the spell check button does not match the color/size of the other buttons, so I went ahead and fixed it (and I suggest you update the original file too ;)).
I changed this
<input type="button" name="SpellCheck" value="SpellCheck" onclick="sendtext()">
to
<input type="button" name="SpellCheck" value="Spell Check" onclick="sendtext()" class="bginput" tabindex="5" accesskey="c">
This works great! I used Unknown's button fix, too. Thanks! :)
Parker Clack
04-14-2002, 11:34 AM
Unknown:
Thanks for the fix on the button. I have uploaded a new .zip file with the updated code.
Parker
chazman
04-14-2002, 02:07 PM
any more help on the libraries needed. I found the sourceforge.net stuff but got a little confused when I downloaded what I thought I needed and where to put them. Am I looking for library files or word files or what.
Just a little more help in this area would be great.
Chazman
diettalk
04-14-2002, 02:50 PM
Hm.. I never get a dropdown box to select the "right spelling".. of a word.
Does someone have an example please?
Unknown553
04-14-2002, 06:56 PM
It's fully functional on my site, but guests can only post in the feedback forum :) Also, the dropdown box will onyl show up on misspelled words, so if you don't see a drop down box, then you spelled everything correctly.
http://unknown553.bojangle.net/forum/forumdisplay.php?s=&forumid=5
Parker Clack
04-14-2002, 06:57 PM
chazman:
Sorry. My ISP put the libraries on my server for me. I am not sure of what all you need to install them.
Parker
Parker Clack
04-14-2002, 07:00 PM
diettalk:
Here ya go.
diettalk
04-14-2002, 07:16 PM
Thanks.. I go not get those dropdown boxes... All the other windows I get fine.
I think I have an issue with aspell.
Unknown553
04-14-2002, 07:29 PM
Hmm, are you sure you have the aspell or ispell libraries on your server?
diettalk
04-14-2002, 07:31 PM
Yea... Got it working... the only thing is when you try to "Insert in Document"... it doesn't work.
Unknown553
04-14-2002, 07:43 PM
And the path to your spell.pl file is correct? (<form name="send" action="/cgi-bin/spell.pl" method="POST" target="SpellChecker">) And make sure the directory has write access (0777).
Hooper
04-14-2002, 11:46 PM
This is sweet and works super. I am very curious as to why Jelsoft or no one else has taken it upon themselves to even look at this idea.
It installs in 1 minute and checks spelling just as well as the services that were incorporated into the older vBulletin versions.
This is fantastic. Why is it that no one has done this, or thought about it till now?
Thanks Parker.
Parker Clack
04-15-2002, 02:22 AM
diettalk:
Make sure your paths to the spell.pl are correct, that the path to your aspell libraries are correct and that both the cgi-bin directory and spell.pl file are chmod 777. The spell.pl file has to be in the cgi-bin directory and not in the root or the vbulletin directory. (I am sure you have already done this but just to double check).
Hooper:
The spell.pl file has been available for some time that utilizes the aspell libraries with PHP. I just got the javascript code to work or I would have had this up a couple of months ago.
Hopefully someone will write the spell.pl file in PHP and jelsoft will incorporate it in the next version of vBulletin.
Parker
diettalk
04-15-2002, 02:28 AM
Got it totally working. Thanks...
fyi.. you should also add it to priv_sendprivmsg template as well for the PM's.
Parker Clack
04-15-2002, 02:33 AM
diettalk:
Glad to hear that you have it working. I added it to my priv_sendprivmsg template already but forgot to add it to the list of templates to modify.
Thanks for reminding me. I will update the .zip file.
Parker
Unknown553
04-15-2002, 03:35 AM
Originally posted by Parker Clack
The spell.pl file has to be in the cgi-bin directory and not in the root or the vbulletin directory. (I am sure you have already done this but just to double check).
Actually, it doesn't have to. My spell.pl file is in /forum and it works fine. Just chmod'd the directory to 777 and changed the path (/forum/spell.pl).
Originally posted by Unknown553
Actually, it doesn't have to. My spell.pl file is in /forum and it works fine. Just chmod'd the directory to 777 and changed the path (/forum/spell.pl). I know some servers only let you run PERL files out of the cgi-bin. Chmod 777 can also be bad news for PERL files depending on the server setup. I have the spell.pl file in the cgi-bin and the directory and file are chmodded to 755. Of course, all of this is one of the reasons I much prefer PHP to PERL. :)
Fortunately, this very cool hack works fine. :cool:
Hooper
04-15-2002, 03:42 AM
Originally posted by Parker Clack
Hooper:
The spell.pl file has been available for some time that utilizes the aspell libraries with PHP. I just got the javascript code to work or I would have had this up a couple of months ago.
Hopefully someone will write the spell.pl file in PHP and jelsoft will incorporate it in the next version of vBulletin.
Parker
That's what I was thinking earlier. (http://www.vbulletin.com/forum/showthread.php?s=&threadid=44073)
:laugh:
Parker Clack
04-15-2002, 03:48 AM
Yeah the server has to be set up to allow PERL files in directories other than a cgi-bin directory or similar. I will try changing my spell.pl to 755.
I prefer PHP over PERL myself I just wish I knew how to convert from one to the other.
Parker
Hooper
04-15-2002, 04:01 AM
Ok. Perl to PHP. Who's a doin it?
Perl / Php conversion (http://www.cs.wcupa.edu/~rkline/csc417/Perl2Php/)
Parker Clack
04-15-2002, 12:06 PM
Hooper:
Unless someone has written a program that will convert one into the other for you I won't be doing it. I am lucky if I get have the stuff that I write to work as it is.
Parker
Chris M
04-15-2002, 12:10 PM
Double Post...
Satan
Chris M
04-15-2002, 12:10 PM
How accurate is the Spelling?
Satan
Parker Clack
04-15-2002, 12:24 PM
hellsatan:
As far as I can tell it pretty acurate.
If you guys want to keep up with changes that the author of the script has done to the program then go to:
WBOSS (http://www.dontpokebadgers.com/spellchecker/). The javascript is included on the same page.
Parker
Chris M
04-15-2002, 12:58 PM
Good Good...
If you say it is fairly accurate, it might be worth installing...
Satan
chazman
04-15-2002, 01:38 PM
seems that everyone is having good luck. Can we get more information on getting the libraries installed on the server. I haven't done this yet. Is this something for the server administrator to do?
Chazman
Darren Lewis
04-15-2002, 01:48 PM
Parker, this looks like a very good addition (I've seen and used it over at HTF). Congratulations on another excellent addition.
Chazman, I'm wondering about this too. I'm on a shared web hosting package. I've just been on the Live Chat of my web host's support team, and they don't seem to think that it's installed (not much chance of getting it installed either I don't think). The web link Parker listed above seems to suggest that ispell may be installed by default (??as part of PHP4 - not sure about this). My web host gave me the link to the output of their PHP options and it's not listed there. I've got PHP installed on my own home machine and I didn't install Ispell then.
To the people who have this script working, did you install Ispell or Aspell yourself as a user option, or did your webhost have to insall it in their PHP or Perl setup?
Thanks.
Darren.
kushtiUK
04-15-2002, 05:42 PM
Excellent addition, thanks very much.
Parker Clack
04-15-2002, 06:18 PM
My ISP installed the aspell libraries on my server with PHP. If you already have PHP on your server I don't see any reason why they wouldn't install the libraries for you too. They are freeware so it would just be a matter of getting them to do it.
We all need to thank the author of WBOSS. I have emailed him and asked him if he would be willing to write this in PHP too. One of the nice things about the newest version of the script is that you can add a custom dictionary server side so it won't try to correct things with apostrophies and words that you might see a lot of on your site.
Parker
Hooper
04-15-2002, 06:22 PM
Originally posted by chazman
seems that everyone is having good luck. Can we get more information on getting the libraries installed on the server. I haven't done this yet. Is this something for the server administrator to do?
Chazman
If your on a dedicated, you can install the libraries yourself.
If your on a shared account, just ask your host to install the
libraries. They should be more than willing to help you in this
area.
diettalk
04-15-2002, 06:42 PM
ispell, which is the other one spellchecker used.. may already be on the server (if it's red hat)..... Not sure about the other flavors of linux.
chazman
04-15-2002, 07:19 PM
My Shared Hosting Administrator is looking into it he said. I looked at the installed PERL modules and didn't see ispell or aspell listed. So I guess I am now at the mercy of the ADMIN.
Chazman
mvigod
04-16-2002, 11:44 PM
Parker - How can you add words like "don't" which seem to get flagged?
Parker Clack
04-17-2002, 02:42 AM
mvigod:
I would go to the WBOSS site, listed in at http://www.dontpokebadgers.com/spellchecker/
and get the latest version of spell.pl. Or if you would rather not just put in words like can't don't, etc. in the $wordignore= in the spell.pl file. Don't separate the words with a comma though just use spaces.
Parker
Darren Lewis
04-17-2002, 01:07 PM
Well my web hosts won't install it - they say it will use up to many resources on my shared server. I have the option to try to install it in the root of my webspace, but only if I upgrade my package to allow SSH access (and of course pay more).
So I'm moving web hosts (they would only give me one MySQL database too).
My new hosts are more than happy to help, but want to know which version of Aspell to install. Is it the one listed as "old" Latest Source: Aspell .33.7.1, Aspell Patch .33-fix2 (download and apply to Aspell tree),
Thanks.
Darren.
Hooper
04-17-2002, 01:45 PM
Originally posted by Darren Lewis
Well my web hosts won't install it - they say it will use up to many resources on my shared server. I have the option to try to install it in the root of my webspace, but only if I upgrade my package to allow SSH access (and of course pay more).
So I'm moving web hosts (they would only give me one MySQL database too).
My new hosts are more than happy to help, but want to know which version of Aspell to install. Is it the one listed as "old"
Thanks.
Darren.
Darren,
I just installed this on a shared account and my host had no problems with it. They installed it in 5 minutes. It will not eat up bandwidth no more than any other program that barely gets used. Plus.... Look at the code. All it's doing is using what comes in Red Hat Linux.
I'de have a talk with them. They "should" have absolutley no problem with it. Id'e ask them again, If you move hosts, be sure to tell them the why(s).
Hooper
Parker Clack
04-17-2002, 02:03 PM
Darren:
I would tell them to just go to http://aspell.sourceforge.net/ and have them get the latest version. From reading over the site (briefly) it looks like they will have to install pspell too. I would just have your new web host look over the aspell page and make a determination from there.
Parker
Darren Lewis
04-17-2002, 08:33 PM
I've got it!! :)
I had to move my web host to a decent one but I've got it!!
Hooper, I think you were correct in the first version of your reply ;)
They didn't seem that bothered about helping me and didn't know a thing about vBulletin.
Parker, thank you for making this script known to us.
And a final thank you has to go to Karl at KDA Web Services (http://www.kdawebservices.com/) for sorting it all out (and reinstalling the MySQL database) - a truly first rate service.
Darren
Parker Clack
04-17-2002, 08:41 PM
Darren:
Glad to hear that you got it working.
Parker
Hooper
04-17-2002, 08:53 PM
Ya, I edited the post to be a bit nicer to your *hidden host flame* host.
Glad you moved and have it working Darren. ;)
bitbender
04-18-2002, 04:40 PM
OK.. I installed this puppy on my test server, and it allworks with the exception that no drop down boxes appear as described in diet's post above.
I went back and double checked the Win32 permissions I have set, and they appear to be fine. (stripped W2K w/SP2 and current SP bundles)
What does stand as a question is that do I have to compile the Aspell libraries after they have been d/led from Sourceforge ?
I know it's something silly, as it appears to work for most just fine. I run Apache with Perl mod so this shouldnt be an issue.
Any Ideas ??
Parker Clack
04-20-2002, 08:52 AM
bitbinder:
I am not sure but I think you have to compile the Aspell libraries in order for them to work.
Parker
jjj0923
05-10-2002, 11:27 AM
I have a question for everyone - is there any advantage when using this hack to compile aspell into php, because it is a compile time option...???
- jeff
Is there a way to verify that aspell is installed? The script works except that I don't get any drop down boxes, and my host says aspell is installed. All my permissions are set correctly.
You could try checking the output of the following:
<?
phpinfo();
?>
Here is the url to the php info file, where should aspll be listed at? I don't see it anywhere.
http://www.jcsworld.net/info.php
Actually, that's incorrect. While there is php support for aspell (built into pspell), the spelling script uses perl. Sorry, I neglected to realize that.
I believe there is a perl script out there that let's you check for installed perl modules. I can't seem to find it though.
Have you tried the Ispell support to see if that works?
They told me ispell wasn't installed but I'll check.
Apparently my host tech support doesn't know much because ispell works. Thanks for all the help :)
Lucrecia
05-28-2002, 03:08 AM
I can't find this aspell and ispell to d/l
ixian
06-02-2002, 07:55 AM
Parker, THANKS
This little trick works GREAT. Btw, the code in your post is an older script from http://www.dontpokebadgers.com/spellchecker/ - the latest on on there also works fine. Just thought I'd mention it.
The latest script has custom dictionary support, although it's a little cumbersome right now.
I am running this on 2.2.6 with no problems at all so far. Finally, a Spellchecking solution again for vb!
ixian
06-02-2002, 07:59 AM
Originally posted by Lucrecia
I can't find this aspell and ispell to d/l
http://aspell.sourceforge.net
The link is also in an earlier post in this thread.
You don't need both. One or the other will do, and if you have the choice, by all means take Aspell, as it is basically a better version of iSpell in the first place.
If you're using a linux distro based off Redhat (such as Mandrake) you can probably get away with installing via RPM. There's a Win32 binary for you MS guys too. Why anyone would use either of those when there's FreeBSD is beyond me, but different strokes for different folks I guess :)
There's also a FreeBSD/BSD source port for BSD folks like me. Took about 1 minute to install, then Parkers little hack on top. Up and working great on my 2.2.6 install!
Lucrecia
06-02-2002, 08:54 PM
Thanks
Parker Clack
06-02-2002, 08:56 PM
Guys I didn't write this. This will all done by the author of the script. I just made it available to all to use. I am still trying to get the script written in PHP instead of PERL.
Parker
Lucrecia
06-03-2002, 12:03 AM
Once I upload it, how do I install it?
Chris Blount
06-16-2002, 08:03 PM
I would love to get this to work but I keep getting a server error. It says this:
Premature end of script headers
Any ideas?
Make sure you upload in ASCII mode.
Chris Blount
06-17-2002, 02:25 AM
Never mind. I figured it out. Dopey me had the spell.pl file on CHMOD 655. Duh!
Chris Blount
06-18-2002, 05:14 PM
One other question and I'm not sure if it was covered in this thread. Is there a way to input custom words? We have a satellite forum with a lot of "non-words" only used while talking about satellite like DirecTV and such. It would be nice if the spell check didn't keep identifying those as misspelled.
You can add exceptions within the .cgi file itself. Open it up in notepad and you'll see where to put things in. If memory serves me correctly, I believe it's a list of words with spaces.
Paul
This script worked great ...thanks :-)
Chris Blount
06-20-2002, 12:52 PM
Originally posted by LoveShack
You can add exceptions within the .cgi file itself. Open it up in notepad and you'll see where to put things in. If memory serves me correctly, I believe it's a list of words with spaces.
Paul Thanks Paul! I found the list of words that the spell checker ignores and added to it. What's really funny is that I had to add contraction words like hadn't, couldn't, shouldn't and so on becuase the spell checker would pick up the first part of the word as misspelled.
Anyway, thanks for the help. Great hack! My users love it.
Chris Blount
06-20-2002, 01:11 PM
I found one bug and I'm not sure how to fix it. When someone encloses something in quotes like this,
"quoted word"
After spell checking, the checker returns it like this:
!QUOT!quoted word!QUOT!
Anyone else having this problem?
rfdesq
11-08-2002, 09:28 PM
Has anyone found Chris' bug? I am registered at dbstalk.com and earlier emailed Chris about which spell checker he uses. I am a licensed user of vb 2.2.8 and after only two weeks of use I'm getting complaints about the lack of a spell checker. Also, I have read all the posts here but can someone point me to the latest install information. There have been many modifications but the posts all seem so dated. I do have a request into my hosting company (ventures online) to determine if they have aspell installed.
Thanks,
Robert
Hi,
I used this hack on Ventures Online for a long time without problems. Recently, I've worked on modifying the php spell checker released by Raz in the beta hacks forum--I find it's interface to be more user-friendly. See the last posts in that thread for an attached zip file I uploaded that fixes fundamental design issues with the hack he developed.
Hope this helps,
Paul
Edit: Here's a direct link to my post. You'll need to download the original zip file for installation instructions. The files in my zip are to be uploaded over the files in the original release. https://vborg.vbsupport.ru/showthread.php?postid=319200#post319200
rfdesq
11-10-2002, 11:52 PM
Thanks Paul,
Here is the message I received from Ventures Online:
Yes aspell is installed on the server.
The version that is installed is: aspell-0.33.7.1-9
I downloaded your .zip file and it extracted one file spellcheckerv2. I've gone through the beta forum and the full releases forum but I'm still not sure which original .zip I'm supposed to download and where the install instructions are. If you could help me weed through the 10 pages of posts to find just the original files and install information I need, that would be much appreciated.
Thanks,
Robert
Hi Robert,
I edited my post to be a bit more clearer.
The original files and install instructions can be found here (https://vborg.vbsupport.ru/showthread.php?postid=272580#post272580).
The files in my update to the hack need to be used in place of the original hack release by Raz. Essentially, follow his instructions, but use my files.
You can find the files inside of the spellcheckerv2 folder.
:)
rfdesq
11-11-2002, 12:02 AM
Unzipped it and reading it now.
Thanks,
Robert
rfdesq
11-11-2002, 12:56 AM
Paul:
Uploaded all six files in your latest .zip to a new folder I created called spellcheck. Edited all four templates, example below. Do not see the spell check button anywhere. Sorry, I'm new at this stuff, what did I do wrong? Thanks, Robert
{htmldoctype}
<html>
<head><title>$bbtitle - Reply to Topic</title>
$headinclude
<!--<script type="text/javascript" language="javascript" src="$bburl/spellcheck/spch_v2.js"></script>
<script language="javascript">
<!--
var postmaxchars = $postmaxchars;
function validate(theform) {
if (theform.message.value=="") {
alert("Please complete the message field.");
return false; }
if (postmaxchars != 0) {
if (theform.message.value.length > $postmaxchars) {
alert("Your message is too long.\n\nReduce your message to $postmaxchars characters.\nIt is currently "+theform.message.value.length+" characters long.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = "\nThe maximum permitted length is $postmaxchars characters."; }
else { message = ""; }
alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>
</head>
<body>
$header
<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td width="100%">$navbar</td>
</tr>
</table>
<!-- /breadcrumb -->
$postpreview
<br>
<form $enctype action="newreply.php3" name="vbform" method="post" onSubmit="return validate(this)">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="$threadid">
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
$logincode
<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Post subject:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="title" value="$title" size="40" maxlength="85" tabindex="1"></normalfont> <smallfont>(Optional)</smallfont></td>
</tr>
$posticons
$vbcode_buttons
<tr>
<td bgcolor="{secondaltcolor}" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont>
<p><smallfont>
See Forum Rules (below) for<br>
more information about what<br>
codes you are allowed to use<br>
in your posts.</smallfont></p>
$vbcode_smilies</td>
<td bgcolor="{secondaltcolor}">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td><textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2">$message</textarea><br>
<smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" valign="top"><normalfont><b>Options:</b></normalfont></td>
<td bgcolor="{firstaltcolor}" valign="top"><smallfont>
<input type="checkbox" name="parseurl" value="yes" $parseurlchecked> <b>Automatically parse URLs:</b> automatically adds and around internet addresses.
<br><input type="checkbox" name="email" value="yes" $emailchecked> <b>Email Notification:</b> emails sent to you whenever someone replies. Only registered users are eligible.
$disablesmiliesoption
<br><input type="checkbox" name="signature" value="yes" $signaturechecked> <b>Show Signature:</b> include your profile signature. Only registered users may have signatures.
</smallfont></td>
</tr>
$attachmentoption
$threadratingoption
</table>
</td></tr></table>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td align="center"><normalfont>
<input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="3">
<input type="submit" class="bginput" name="preview" value="Preview Reply" accesskey="p" tabindex="4">
<!--<input type="button" class="bginput" value="Spell Check" onclick="var f=document.forms['vbform']; doSpell(f.message, '$bburl/spellcheck/spellcheck.php');">
</normalfont></td>
</tr>
</table>
</form>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td><smallfont><b>Forum Rules:</b><br>$forumrules</smallfont></td>
</tr>
</table>
<br>
<!-- end main table from header -->
</td>
</tr>
</table>
<!-- /end main table from header -->
<!-- spacer -->
<table cellpadding="0" cellspacing="0" border="0" width="{tablewidth}" bgcolor="{pagebgcolor}"><tr>
<td><img src="{imagesfolder}/clear.gif" alt="" width="10" height="1"></td><td width="100%">
<!-- /spacer -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2" align="center"><normalfont color="{tableheadtextcolor}"><b>Topic Review (Newest First)</b></normalfont></td>
</tr>
</table>
</td></tr></table>
<!-- spacer -->
</td><td><img src="{imagesfolder}/clear.gif" alt="" width="10" height="1"></td></tr></table>
<!-- /spacer -->
$threadreviewbits
<!-- restart main table -->
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="10" cellspacing="0" border="0">
<tr>
<td>
$footer
</body>
</html>
Dynamic One
11-11-2002, 06:24 AM
Thanks need this 1. make a lot of error latley :D.
rfdesq
11-11-2002, 06:18 PM
Paul:
I don't think I mentioned that I am using version 2.2.8.
Thanks,
Robert
?J?stMe?
11-26-2002, 05:41 PM
I am an Admin on a forum and we are trying to get this hack activated.
The server is a Win2K server with VBull 2.2.8 running. We have a few hacks installed and all are running smoothly. My question revolves around the use of Perl. We have ActiveState Perl installed in the C:\Perl directory.
What I am confused about is how to 'point' the HTML files to the Perl directory.
For example:
<form name="send" action="/cgi-bin/spell.pl" method="POST" target="SpellChecker">
I am thinking I need to create a virtual DIR in IIS that points to the C:\Perl DIR, but I am not sure. Then the spell.pl and other Perl files would be placed in to that DIR.
Has anyone put this hack on to an IIS server with ActiveState that could offer someone some guidance ?
Thanks in advance.
JustMe
:)
94supratt
01-14-2003, 07:06 AM
I get no drop down box for misspelled words. HELP!
rstark
01-22-2003, 07:40 AM
My host has the aspell libraries installed at /usr/bin/aspell. I put the spell.pl file in the cgi-bin folder and CHMOD the folder and file to 777. When I click on the spell check button, I get an internal server configuration error.
hpsonline
01-23-2003, 01:42 PM
Greetings!
I am one of those computer illiterate people, who don't know anything about computers, and constantly make spelling mistakes too...
i want to install the spelling checker at my forum at http://www.hpscleansing.com
can somebody here guide me through it (hacks, smaks) step by step so that i can get it up and running... it will help a lot of people at my group....
please advise.
btw, i don't see it used here at this forum, why, is it so problematic?
peace
Steve St.Lauren
02-10-2003, 06:24 PM
Got this hack installed last night - AWESOME hack!! Real easy to install and runs great - THANKS
USODJA
03-15-2003, 05:27 PM
Not working for me in 2:30
Any suggestion on how to add this to quick reply box?
01-14-03 at 03:06 AM 94supratt said this in Post #80 (https://vborg.vbsupport.ru/showthread.php?postid=341949#post341949)
I get no drop down box for misspelled words. HELP!
Do you have the aspell dictionary installed? The dictionary files are available at http://ftp.gnu.org/gnu/aspell/dict/.
Or, if you're using the newer version of spell.pl, from http://www.dontpokebadgers.com/spellchecker/ , it comes with a custom.dic file. Try deleting that file, and see if that works.
Ninth Dimension
07-17-2003, 10:31 AM
great hack, got it working with a little help from my host. i had the same problem as 94supratt but was easily fixed once the dictornary files where installed.
94supratt
08-12-2003, 07:21 PM
I've done everything and all I get is INTERNAL SERVER ERROR.
Today at 02:21 PM 94supratt said this in Post #88 (https://vborg.vbsupport.ru/showthread.php?postid=425496#post425496)
I've done everything and all I get is INTERNAL SERVER ERROR.
1. check permissions; I would chmod it to 777 first, and if that works, turn it down to 755 and see if it works
2. make sure the path to perl is correct in the first line of spell.pl
3. make sure the script is in a directory where your host allows CGI scripts to run
Otherwise, check your error logs, and find the exact error text that corresponds to the internal server error.
94supratt
08-12-2003, 07:57 PM
Today at 09:46 PM ice9 said this in Post #89 (https://vborg.vbsupport.ru/showthread.php?postid=425499#post425499)
1. check permissions; I would chmod it to 777 first, and if that works, turn it down to 755 and see if it works
2. make sure the path to perl is correct in the first line of spell.pl
3. make sure the script is in a directory where your host allows CGI scripts to run
Otherwise, check your error logs, and find the exact error text that corresponds to the internal server error.
I tried 777 but not 755. It is in the correct path to perl. I verified that with my webhost. The shell.pl file is in the CGI-BIN directory.
If it doesn't work at 777, then changing it to 755 won't help.
By shell.pl, you mean spell.pl, right? Also, check to make sure that your server will run CGI scripts that end in ".pl". Sometimes a ".cgi" suffix is required.
The next step I would take is to look at my server error logs, and find the exact, specific error that corresponds to your attempt to access the script.
94supratt
08-12-2003, 11:12 PM
Today at 12:55 AM ice9 said this in Post #91 (https://vborg.vbsupport.ru/showthread.php?postid=425573#post425573)
If it doesn't work at 777, then changing it to 755 won't help.
By shell.pl, you mean spell.pl, right? Also, check to make sure that your server will run CGI scripts that end in ".pl". Sometimes a ".cgi" suffix is required.
The next step I would take is to look at my server error logs, and find the exact, specific error that corresponds to your attempt to access the script.
Yeah typo on my part the shell.pl thing.
Chris Blount
09-13-2003, 12:29 PM
Does anyone know how to get this spell check to work with a WYSIWYG editor?
Chris Blount
10-27-2003, 01:52 PM
Anyone?
UberX
10-30-2003, 11:00 PM
I'm trying to figure that out right now...
I'll get back to you if I'm successful.
lierduh
11-04-2003, 07:52 PM
Just installed and works great.
Seeing some people are having problem with the perl script. Here is my note.
1)Making sure your server support cgi-bin in the location you want.
I have:
ScriptAlias /cgi-bin/ /var/www/html/forums/cgi-bin/
under my virtual host setting. It assigns the location of the cgi-bin alias as well as allowing script excuting under that directory.
2) Permissions
For cgi-bin I have 711 (I never use 755, don't like the idea of people going through my cgi-bin directory)
for the perl script I have 755.
There is no need to have 777. It is very dangerous to say the least. eg. Anyone on the server can put their own cgi script in your cgi-bin directory. Also if you have 777 for the script, anyone on the server can alter it's contents!
3)Line wrapping.
Perl does not like Windows line wrapping: \r\n.
Under Unix, the line wrapping is \n. So you either need to upload your script in text mod, or if you unzip the file on the server as I do. Fix the script using:
dos2unix spell.pl
(If you open the file under a consol, and discovered a M at the end of each line. You have windows line wrapping!, naturally you can manually remove it under the consol one by one)
atomic fireball
11-08-2003, 02:47 AM
If it doesn't work at 777, then changing it to 755 won't help.
Strangely, for my server this isn't true.
I had it set to 777, thinking this would be fine for the testing and always got an INTERNAL SERVER ERROR. Then, chmod to 755, and whammo, it worked like a charm.
So for anyone getting an internal server error, be sure to check your paths to the spell.pl as stated, and also be sure to chmod the file itself to 755. Worked like a charm, great hack!
This can also be applied to the Quick Reply box with ease.
Just made a small addition to the showthread_replybox template that you needed to custom create for the quick reply hack.
Add the same "form" text from this spellcheck hack to the showthread_replybox template, right after the Reset Form button line.
Great hack, thanks again!
Keith
01-03-2004, 12:35 AM
This solution works very well once you make sure everything is done correctly. Every failure or problem I experienced during installation was generated by my own errors and mistakes.
The only thing I noticed is the custom.dic doesn't work and affects the spell.pl application if you're on a shared host with the aspell library installed. I removed custom.dic and now it works fine now. Thanks for the solution/hack.
jojok
01-13-2004, 01:22 AM
I really want to use this hack. I followed the directions, uploading the file to my cgi-bin and CHMODing it. I also modified my templates correctly. I'm receiving this error:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@treehillhigh.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.29 Server at www.treehillhigh.net Port 80
atomic fireball
01-13-2004, 03:25 AM
I really want to use this hack. I followed the directions, uploading the file to my cgi-bin and CHMODing it. I also modified my templates correctly. I'm receiving this error:
Did you try CHMODing the file to 755 and NOT 777?
As I posted a few messages above, I got the same error on 777, but CHMODing to 755 worked perfectly.
jojok
01-13-2004, 04:21 PM
Yeah, I tried that.
I sent a ticket to my host, and apparently they don't have aspell and would charge me extra for installing it. :(
atomic fireball
01-13-2004, 10:04 PM
that's weak. I'd find another host and tell them exactly why you are switching.
Our shared host has the aspell stuff loaded in at no extra cost. Email me if you want the details, thanks.
DigitalCrowd
03-02-2004, 02:58 AM
I am trying to get this setup, have the latest version 2.5i from the site. I can run the ./spell.pl just fine, it just displays a bunch of HTML, no errors or anything. But I get the Internal Server error as others have gotten. Everything is configured correctly permissions wise, tried 755 & 777, check the apache conf file for ScriptAlias, perl paths and aspell all correct.
Error_log: Premature end of script headers: spell.pl
Access_log: "GET /cgi-bin/spell.pl HTTP/1.1" 500 514 "-" "
Running it from the command line, I get no errors whatsoever. However, via Apache... the above error shows up.
Any other suggestions?!
Did you first download spell.pl to your home computer? If so, verify that the spell.pl file has proper UNIX line-ending characters, and not Windows/Mac line ending characters. That is one thing that could cause the error you're getting.
DigitalCrowd
03-03-2004, 03:23 AM
I should have mentioned I covered that aspect too. :) It runs great on the command line, just not via apache.
NexVision
03-03-2004, 04:36 AM
wuts the chance of getting this to work with rc4
Yuneek
03-04-2004, 04:58 PM
I know I'm probably just an idiot, but what is a shebang line? Where is it?
"Be sure to check the shebang line of the spell.pl file to make sure that it is pointing to the correct location for perl on your server."
I'm lost.
ChuanSE
03-11-2004, 02:12 AM
Any chance to implement this in vB 3.0 ???
Sure would love to have it ;)
lucky64
05-28-2004, 12:30 AM
Any chance to implement this in vB 3.0 ???
Sure would love to have it ;)
Ditto.
Bubble #5
04-21-2005, 09:22 PM
Any chance of an update so it will work with 3.0.7? :rolleyes:
Marco van Herwaarden
04-21-2005, 09:41 PM
vB2 and vB3 are completly different. Not much chance it will work, and updating would probably be a lot of work.
Bubble #5
04-21-2005, 09:44 PM
OK thanks :(
We've got it working on vb3. Since the spellchecking function is largely external, integrating it shouldn't be too tough for different vb versions.
The posting screen is setup a little bit differently in vb3, so you have to watch out for complications that arise from nesting forms. You can see how it was done by checking out the site in my profile.
Bubble #5
04-23-2005, 06:30 AM
Just a heads up... there is a security issue with this. The script does not check to see if it is being called from the domain name it runs on, so anyone can easily link directly to your spell check script.
Follow the original instructions, just watch out for the proper form nesting. You can also add spellchecking to your PM screens. Pick up the latest version of spell.pl from http://dontpokebadgers.com/spellchecker/ . The script has a tendency to be a little trouble-prone -- some javascript and perl knowledge is helpful.
Bubble #5
04-24-2005, 04:51 AM
Could someone PLEASE help us with the button size?
The spell check button is much bigger then any of the other buttons. Could someone PLEASE show us how to fix this? You can see a picture of it below, and our button code is also below. Thank you.
<input type="button" name="SpellCheck" value="Spell Check" onclick="sendtext()" class="bginput" tabindex="5" accesskey="c">
My first thought is that it is a stylesheet setting. Can you post a url?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.