PDA

View Full Version : PHPSpellchecker for VB2.x! (Beta)


Raz
14 Jul 2002, 23:25
OK, finally here is the code for the PHPSpellchecker!
If you find any bugs, please post your findings here

Check out the Zip file for more info.

Enjoy!
Raz

Note: You will require PSpell (inc ASpell) installed.

Velocd
14 Jul 2002, 23:30
Another one?? Heh heh (hopefully this one works) :P
*is trying now*

Raz
14 Jul 2002, 23:36
It might work, it might not - thats why its in beta at the moment ;)

Paul
14 Jul 2002, 23:37
Thanks for offering this to the community, Raz. While I won't be installing this in the immediate future, I'm interested to hear how this works for others.

Velocd
14 Jul 2002, 23:45
Raz have you tried it? How about some support on installing this Pspell thing you need to have, I'm a bit confused on how to install it. I've already downloaded it, and looked at the instructions...but it's not much help..:p

Prince
14 Jul 2002, 23:51
I just installed it, and everything works except it will not submit the changes, when I hit Finshed Checking it just blinks and comes back again.

Raz
14 Jul 2002, 23:52
OK, to install PSpell do that following (taken from php.net):
Configuration
RedHat 7.2 (installed without pspell/aspell)
php4.2.1 (DSO), pspell .12.2, aspell .33.7.1, Apache 1.3.24 (mod_ssl)

cd aspell
# I did not specify a prefix
./configure
make
make install

cd pspell
# I did not specify a prefix
./configure
make
cd modules
./add-modules
cd ..
make
make install
# For ldconfig /usr/local/lib was not in itís path, so I had to edit
/etc/ld.so.conf and add: /usr/local/lib
ldconfig -v
cd ..

cd php
./configure --with-pspell=/usr/local \
--other config options etc
make
make install

Raz
14 Jul 2002, 23:54
Originally posted by Prince
I just installed it, and everything works except it will not submit the changes, when I hit Finshed Checking it just blinks and comes back again. Prince, upload the contents of the new zip - and it should be fine :)

Velocd
14 Jul 2002, 23:54
Heh, I'm no expert when it comes to this command stuff. Is this done in Telnet? Also, the Pspell files, do I upload them all to that spellcheck folder?

Raz
14 Jul 2002, 23:56
Velocd, you will need to rebuild your PHP installation.

If you've never done it before, I suggest you do some reading up before you attempt this.

Do you have root access to your server?

Prince
14 Jul 2002, 23:58
Originally posted by Raz
Prince, upload the contents of the new zip - and it should be fine :)

I did. :confused:

Velocd
14 Jul 2002, 23:59
rebuild my PHP installation? that doesn't sound like fun :(

I have root access to my server, yes, I believe. I was hoping this spellchecker wasn't going to involve so much other stuff... hmm..Prince seemed to install it quite fast...

Raz
15 Jul 2002, 00:01
Prince, re-upload this one (I just updated it).

Velocd, it looks like Prince has already had PSpell installed. You might also have it pre-installed - just upload the files and see if they work for you.
Alternately you can use a phpinfo() file and it should have pspell listed there if you have it installed.

Velocd
15 Jul 2002, 00:06
I tried out the spellchecker on my forum and the pop-up window just gives a database error. I then checked phpinfo() and Pspell came up nowhere, so I don't think it's installed. Do you have ICQ or AIM, we could possibly talk there and you could give a walkthrough on how to install this..;)

Or here, is fine also.

Prince
15 Jul 2002, 00:08
Raz, it is submitting now, however it gives blank pages every once in awhile.

(btw, I just asked my web host to install the pspell libraries and they had it done within 24 hours.)

Velocd
15 Jul 2002, 00:09
Originally posted by Prince

(btw, I just asked my web host to install the pspell libraries and they had it done within 24 hours.)

hmm...sounds like a fitting idea, I will try. My host (vervehosting) seems to be fairly quick on their support.

Prince
15 Jul 2002, 00:21
any ideas on the blank pages Raz?

JJR512
15 Jul 2002, 01:01
Question: I thought I had understood from the earlier thread that this would require aspell. Maybe I misunderstood. Now you say it requires pspell. What's the difference? I've also heard of ispell. Will any of them work? Does it have to be specifically pspell? I already asked my webhost to install aspell.

Velocd
15 Jul 2002, 01:18
I've only read in this thread (and also the readme) that it requires Pspell. No where does it mention Aspell or Ispell ...

Can anyone explain the differences, I'm not aware of them either..

Paul
15 Jul 2002, 01:28
http://www.php.net/manual/en/ref.pspell.php

aspell, an open source library, includes pspell support for php. You can get it at aspell.sourceforge.net or www.aspell.net. I believe, although I may be incorrect, that ispell was originally intended for use with perl. Installing the aspell libraries is all you need to do. The aspell developers call it "A More Intelligent Ispell".

Installing it depends entirely on your server platform, version of php, and the level of access you have with your server. If you host your own site on your own server that you have full, unrestricted access to, then you should understand how to add libraries to php. If you have no idea how any of this works, chances are you have a shared server or managed account that you're paying someone else to maintain for you. If that's the case, contact your hosting company's support staff and request that pspell support be compiled into php by compiling with the --with-pspell[=dir]. Direct them to the aspell.sourceforge.net site as well.

If they do not understand how to do this, or are unwilling to do this for you, then take this as a wake up call that you need a more competent host and switch to a company that is more responsive to your needs and is more familiar with the technology they are using to host your web site. It might seem like more trouble than it's worth for a spell checker, but in all honesty, if they don't understand this stuff, they're in the wrong business.

You cannot add pspell support to php without root access to your machine. If you are mailing out a monthly check to some company for their "web hosting plan" then chances are you cannot do this yourself, unless you have a dedicated server with root access.

Velocd
15 Jul 2002, 02:10
Thnx for sharing us that info LS :D

Velocd
15 Jul 2002, 07:14
Wow this is pro, I just got a response back from my host saying they installed Pspell, sweeeet. Defiantly fast. ^_^

edit:

ack! drat, they told me it's installed but the pop-up window is giving me this error:

Fatal error: Call to undefined function: pspell_new() in /home/velocd/public_html/forums/spellcheck/check.php on line 10

help?

Chen
15 Jul 2002, 07:40
That error means they didn't install the library correctly. :)

Raz
15 Jul 2002, 09:00
They may have installed the pspell libraries, but they will also need to recompile PHP with pspell support i.e. with the --with-pspell[=dir] directive.

Raz
15 Jul 2002, 09:03
Originally posted by Prince
any ideas on the blank pages Raz? Send me a test account (via PM) and I'll check it out.

Prince
15 Jul 2002, 16:13
Hey Raz, is it possible to run the spell check from another domain?
I have two sites (a separate domain/account for my forums) and I was wondering if I could run the spell checker from my other account to save resources on the forums account.

Raz
15 Jul 2002, 21:35
Nope, it has to be installed on the domain that it will be used on.

The only reason for this is because of the way IE has set permissions for modifying forms.

diettalk
15 Jul 2002, 22:26
Do you have a screenshots?

Virix
16 Jul 2002, 02:52
Originally posted by LoveShack
http://www.php.net/manual/en/ref.pspell.php
If they do not understand how to do this, or are unwilling to do this for you, then take this as a wake up call that you need a more competent host and switch to a company that is more responsive to your needs and is more familiar with the technology they are using to host your web site. It might seem like more trouble than it's worth for a spell checker, but in all honesty, if they don't understand this stuff, they're in the wrong business.

I disagree, if the host is this willing to just try something out on a production box, then I wouldn't trust my data with them...

What if they install something that causes wide spread data coruption, 'whoops, it was a customers request...'

You don't install everything a customer wants.. Thats why it shared hosting.. If you want certain software, get a dedicated box...

Paul
16 Jul 2002, 03:44
Originally posted by Virix


I disagree, if the host is this willing to just try something out on a production box, then I wouldn't trust my data with them...

What if they install something that causes wide spread data coruption, 'whoops, it was a customers request...'

You don't install everything a customer wants.. Thats why it shared hosting.. If you want certain software, get a dedicated box...

I don't want to continue on an irrelevant tangent, but I think it's understood that a hosting provider is not going to put untested modifications on their servers without doing proper research and testing.

A decent hosting company will certainly try to cater to their customer's needs as much as they can to a certain extent. There are competent services out there that will do this for you.

And with regard to data, any half-decent company will regularly backup your data.

If anyone is interested in finding such companies, try the hosting forum over at vBulletin.com.

Raz
16 Jul 2002, 08:55
Originally posted by Virix


I disagree, if the host is this willing to just try something out on a production box, then I wouldn't trust my data with them...

What if they install something that causes wide spread data coruption, 'whoops, it was a customers request...'

You don't install everything a customer wants.. Thats why it shared hosting.. If you want certain software, get a dedicated box... PSpell has no known problems.

Prince
16 Jul 2002, 14:44
Originally posted by Virix
I disagree, if the host is this willing to just try something out on a production box, then I wouldn't trust my data with them...

What if they install something that causes wide spread data coruption, 'whoops, it was a customers request...'

You don't install everything a customer wants.. Thats why it shared hosting.. If you want certain software, get a dedicated box...

If your web host is competent there should not be any problems installing the aspell libraries.

Steve St.Lauren
19 Jul 2002, 01:20
I'm running FreeBSD 4.5 and have done the make install on pspell and aspell. When I run phpinfo() it doesn't show pspell as being installed. When I click on spell check I just get a blank window. It seems as though pspell isn't compiled into php yet (I'm running on a stand alone box btw). Looking at your instructions it looks like I should go to my /usr/ports/www/mod_php4 directory and run you the configure command to add pspell along with the rest of the config commands listed in phpinfo - however, there's no configure command in the mod_php4 directory. Any ideas?

Paul
19 Jul 2002, 02:23
You need to compile php --with-pspell. See my earlier post in this thread.

Velocd
19 Jul 2002, 08:05
Well my great webhost finally (I was in no rush) compiled PHP with the pspell libraries. So quickily I uncommented my code and gave the spellchecker a shot, and it defiantly worked different this time--but, I'm still getting database errors! Help!

In the attachment are the errors I am getting, any help would be most appreciative because this hack is SOOO needed on my forums ^_^

Raz
19 Jul 2002, 14:29
The prerequistes of pspell are that aspell are installed (usually are on linux).

Tell your host to install pspell in the aspell dir so it can use its words list.

Velocd
19 Jul 2002, 18:06
*dies* Ok, dang, they're not going to be happy :(
Wish I knew this earlier...

Velocd
19 Jul 2002, 18:08
Being that it's a prerequiste, you may want to edit your first post saying aspell also is required...

Velocd
19 Jul 2002, 22:52
Sorry for the triple post..

I finally got everything working together and I must say this hack looks great, thanks for releasing it again Raz.

Now if this only had a grammar check....;)

Attached is a screehshot of what this spellcheck looks like, for those interested. You can see what I mean by grammar check by the word "wit" (commonly used on forums) that is passed up, since it is a real word.

Steve St.Lauren
19 Jul 2002, 23:55
I'm still having one heck of a time getting this to run. I've install aspell and pspell on our server and I've recompiled PHP with pspell included and have verified it through phpinfo.php that it is there in the config command (did this on our backup server so I didn't have problems on the main site). I've restarted apache and when I click on the spell check button I just get an empty window. Anyone have any ideas?

Velocd
20 Jul 2002, 00:35
Blank page eh? How strange....you seem to have done everyone I could have suggested, so I'm not sure. Maybe Raz will get back to you.

Steve St.Lauren
20 Jul 2002, 01:00
When I run phpinfo.php here is what I show on the Configure Command line:

'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-regex=system' '--with-pspell=/usr/local/share/pspell' '--without-gd' '--with-zlib' '--with-mysql=/usr/local' '--enable-ftp' '--with-pspell=/usr/local' '--prefix=/usr/local' 'i386-portbld-freebsd4.6'

pspell is actually installed at /usr/local/share/pspell which is the default for FreeBSD's port install - I've tried setting the destination to that as well but it also didn't work.

Paul
20 Jul 2002, 02:49
Originally posted by Steve St.Lauren
When I run phpinfo.php here is what I show on the Configure Command line:

'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-regex=system' '--with-pspell=[b]/usr/local/share/pspell' '--without-gd' '--with-zlib' '--with-mysql=/usr/local' '--enable-ftp' '--with-pspell=/usr/local' '--prefix=/usr/local' 'i386-portbld-freebsd4.6'

pspell is actually installed at /usr/local/share/pspell which is the default for FreeBSD's port install - I've tried setting the destination to that as well but it also didn't work.

Aren't they the same? To change the directory where it's installed, compile --with-pspell=/path/to/pspell. See the pspell docs on www.php.net ... it's clearly outlined there.

I seem to remember an issue with a user of this hack getting blank pages because they did not upload blank.html (or a similar file--I haven't looked in the archive to see what it's called) thinking that it was not a part of the hack. Did you perhaps do this as well?

Paul

Steve St.Lauren
20 Jul 2002, 02:50
I got it working! Don't ask me how though.

Velocd
20 Jul 2002, 05:17
Hey Raz, or anybody else, what is the easiest way to get this to also check the title field of the post. I'm sure most of us have experienced when you mispell a word in a thread title, mostly new threads, and then you feel like an idiot because everyone see's the title is wrong and there is nothing you can do to change it. (unless you're the admin/mod).

So, any thoughts of how this could be done?

Raz
20 Jul 2002, 19:40
Originally posted by Steve St.Lauren
When I run phpinfo.php here is what I show on the Configure Command line:

'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-regex=system' '--with-pspell=/usr/local/share/pspell' '--without-gd' '--with-zlib' '--with-mysql=/usr/local' '--enable-ftp' '--with-pspell=/usr/local' '--prefix=/usr/local' 'i386-portbld-freebsd4.6'

pspell is actually installed at /usr/local/share/pspell which is the default for FreeBSD's port install - I've tried setting the destination to that as well but it also didn't work. Why do you have two --with-pspell directives?

Raz
20 Jul 2002, 19:42
Originally posted by Velocd
*dies* Ok, dang, they're not going to be happy :(
Wish I knew this earlier...
Hmm....did they not even bother to read the documentation???

Raz
20 Jul 2002, 19:44
Originally posted by Velocd
Hey Raz, or anybody else, what is the easiest way to get this to also check the title field of the post. I'm sure most of us have experienced when you mispell a word in a thread title, mostly new threads, and then you feel like an idiot because everyone see's the title is wrong and there is nothing you can do to change it. (unless you're the admin/mod).

So, any thoughts of how this could be done? Adding support for that will be pretty difficult.

The easiest way to do that would be to create two spellchecking buttons - one that checks the title, and the other that checks the message body.

Steve St.Lauren
20 Jul 2002, 21:18
That was a mistake Raz. I was adding it with the configure command and when I ran make install after a make clean it popped up a menu where I could turn pspell on there too. So it was enabled in both places. So far it seems to be working great for the majority of users on my site. However, there are some people that are just getting blank windows still. I'm having them check to make sure Java is enabled and that their anti-virus software isn't blocking Java. If that doesn't fix it for them I'm going to try to figure out what they have in common and let you know. Great mod for vBulletin BTW!! Thanks for the work.

Steve St.Lauren
21 Jul 2002, 02:46
I had a user run into a problem today and I have verified it myself. On long messages it works fine until you get to the finished checking part. Then it either goes into a continuous loop or it goes to a blank screen with a dnserror. The test message I used was ~4,000 characters long with spaces to replicate this problem.

Steve St.Lauren
21 Jul 2002, 21:29
Anyone know how to add words to the aspell dictionary? I've looked through the aspell documentation and can't make sense of it. It looks like I need to do a "aspell dump <wordlist>" and output that to a file to get the existing word list and then add to it. But when I try to do an aspell dump it give me an error that says that aspell dump is an unknown action. Thanks in advance.

Chris Marks
23 Jul 2002, 18:35
I've just installed and and will give it a try. I just have to get PHP recompiled with pspell support now. I'll let you know how it works.

Prince
29 Jul 2002, 04:16
Raz, have you had a chance to look over this code yet?

It's a little buggy, sometimes you get blank pages, other times when you try to "finish checking" it does not do anything.

button
21 Oct 2002, 17:11
Raz,

Thank you for the hack. I am getting this error message.

Fatal error: Call to undefined function: pspell_new() in /home/moriel/www/html/forum/spellcheck/check.php on line 10

Any suggestions?

Thanks,

Carol

Prince
21 Oct 2002, 17:30
I get the same error and can no longer use this hack.

I wonder if there was a PHP patch that has made something incompatible.

edwardandtubbs1
31 Oct 2002, 21:38
I have the same error but I have sent all the info from this thread to my host and they are sorting it for me.

maybe someone should write some info to give to the hosts so they know what is required from them

Paul
02 Nov 2002, 05:42
errors with the pspell_new() function are indicative that pspell is not installed correctly on the server and/or php has not been compiled with pspell. Chances are, they upgraded php and forgot to include --with-pspell when compiling.

Paul
02 Nov 2002, 05:45
On another note, has anyone tested this hack with Netscape? Using the latest 7.x build, it appears that the popup-spell check window remains blank. I don't know enough javascript to troubleshoot it, so I hope someone else here does. :)

Testing on Opera shows the same result--just a cute little blank.html screen ;)

Ideas?

Prince
02 Nov 2002, 15:00
I deinstalled this hack and gave up on it since Raz does not seem interested in fixing it.

Paul
02 Nov 2002, 15:35
No one other than your host can compile php properly. If you're getting errors with pspell_new(), have them fix it.

Paul
02 Nov 2002, 19:21
Well, this script needs a couple of security modifications--it's open to XSS vulnerabilities big time.

I don't have time to look at the code right now, but perhaps someone who's more familiar with javascript could take a look at this. Using the word "javascript" in the text of a message you're spell checking will let you run whatever you'd like. This needs to be htmlspecialchars()'d and properly handle the word javascript in a message.

Raz
02 Nov 2002, 19:27
Originally posted by Prince
I deinstalled this hack and gave up on it since Raz does not seem interested in fixing it. Sorry about that, been busy with other stuff.

The error message means you don't have pspell compiled into PHP.

Raz
02 Nov 2002, 19:28
Originally posted by LoveShack
Well, this script needs a couple of security modifications--it's open to XSS vulnerabilities big time.

I don't have time to look at the code right now, but perhaps someone who's more familiar with javascript could take a look at this. Using the word "javascript" in the text of a message you're spell checking will let you run whatever you'd like. This needs to be htmlspecialchars()'d and properly handle the word javascript in a message. Can you give an example?

I can't seem to reproduce what you're saying.

The line "$outtext = htmlentities(stripslashes($checktext));" should prevent what you are experiencing.

Paul
02 Nov 2002, 19:33
Try the following condition:

<misspelt word> javascript </script>

I.e.

d0gzasdf javascript </script>

Raz
02 Nov 2002, 19:37
This is the output I get:<font face="Verdana, Arial, Helvetica, sans-serif" size="2">d0gzasdf <a href="javascript:submitWord('javascript')" name="word2"><font color=red><b>javascript</b></font></a> &lt;/script&gt;</font></body></html>Seems harmless.

Paul
02 Nov 2002, 19:43
Oops. I mixed up examples :) Appending </script> to the body will cause an error when pressing "Finished Checking" ... to see the javascript issue, remove the </script>.

Try asdfasdf javascript asdfasdf

Raz
02 Nov 2002, 19:45
Yep got some malformed output. But still can't understand how this can be exploited.

The reason its malformed is because it replaces all javascript references, including the ones the spellchecker creates to a link to be corrected.

Paul
03 Nov 2002, 02:47
Hrmm. I haven't been able to come up with a way to exploit it myself, but seeing as input text is being processed as part of the script, a bunch of red flags go up.

How can we sandbox it?

Any luck with Netscape/Opera?

Paul
03 Nov 2002, 03:30
Just a note on the NS/Opera issue--I have a suspicion that the hidden form being called in spellcheck.php is the problem here--specifically, I think forms are only recognized by NS/Opera within <body></body> tags--since this form is hidden in a frameset page, I believe that's where the problem is arising.

I'll let you know what I find out.

Paul
03 Nov 2002, 04:28
Unfortunately, you can't have <body> and <frameset> tags in the same page. I've been able to confirm that the issue with Netscape and Opera is the <form> code being placed in the frameset in spellcheck.php--this is illegal html. According to w3c specifications, <form> can only be placed within <body> tags.

I don't know enough javascript to get this thing to work -- would it be possible to move the form to the templates instead?

Raz
03 Nov 2002, 21:28
I'm sorry but I don't have the time I used to, to work on this anymore. If anyone else is willing to continue this, feel free.

About the XSS issue, its not. Only [a-z] characters are parsed, so if it has a non alpha character it ignores it.

Paul
04 Nov 2002, 05:38
Well okay :) Here's where I'm at with trying to fix this. My intial idea was to move the <form> information out of spellcheck.php and into a third 1 pixel big frame called formcode.php. However, I can't figure out the javascript needed to get the checktext over to the formcode script.

This is something that someone who knows a bit more (anything) about javascript needs to look at ;) Until then, it's a miracle this thing works at all--apparently IE takes W3C standards pretty loosely.

Paul
06 Nov 2002, 05:42
Attached you'll find a version of this spellchecker that works in the latest versions of both Netscape and Internet Explorer. I am by no means an expert in javascript, however with the help of a few kind folks around the 'net and a lot of google groups searching, I managed to come up with something that at the very least, works. :)

I was not able to get it to work properly in Opera, however I did get a report that it works with Mozilla v1. I have not tested that configuration myself.

It'd be really great if someone could take this and improve upon it to ensure maximum efficiency and compatiblity with W3C standards.

There are no instructions in this zip file. Overwrite your existing spellchecker files (Available on the first post in this thread: http://www.vbulletin.org/forum/showthread.php?postid=272580#post272580) with the ones in this zip. No modifications to the templates are needed to upgrade.

To install, make the template changes discussed in Raz's original release.

Regards,
Paul

Edit: I updated the attachment which removes a stripslashes() function from the finished text--not including slashes will cause an error with messages that contain certain characters. check.php was updated.

Edit #2: I made it a bit clearer on where to get the original files from.

Harken
26 Nov 2002, 19:02
in the instructions it says to edit templates.. newreply, newthread, ...is it meaning the .php files? because i dont see those templates..

diettalk
03 Dec 2002, 15:18
When trying to spell check a post with a full URL in it, the post disappears when you finish checking.

Paul
03 Dec 2002, 15:27
Harken: templates are under the New Posting Templates group.

diettalk: What do you mean a full URL? Can you provide the exact text you're spell checking so I can see if I can reproduce it?

diettalk
03 Dec 2002, 15:50
Try spellchecking in the quote...


For the best diet support visit http://www.diettalk.com


and it's true by the way.. :D

Paul
03 Dec 2002, 16:25
As Spammy as that sounds, it doesn't result in any problems on my site. Are you using the version I released or the version Raz did?

diettalk
03 Dec 2002, 16:31
LOL... It is spammy.. but it was the only thing I could think of... always thinking of advertising.. <VBG>

I thought I was.. I will check.

diettalk
03 Dec 2002, 16:38
I'm using this version.


Originally posted by LoveShack
Attached you'll find a version of this spellchecker that works in the latest versions of both Netscape and Internet Explorer. I am by no means an expert in javascript, however with the help of a few kind folks around the 'net and a lot of google groups searching, I managed to come up with something that at the very least, works. :)

I was not able to get it to work properly in Opera, however I did get a report that it works with Mozilla v1. I have not tested that configuration myself.

It'd be really great if someone could take this and improve upon it to ensure maximum efficiency and compatiblity with W3C standards.

There are no instructions in this zip file. Overwrite your existing spellchecker files (Available on the first post in this thread: http://www.vbulletin.org/forum/showthread.php?postid=272580#post272580) with the ones in this zip. No modifications to the templates are needed to upgrade.

To install, make the template changes discussed in Raz's original release.

Regards,
Paul

Edit: I updated the attachment which removes a stripslashes() function from the finished text--not including slashes will cause an error with messages that contain certain characters. check.php was updated.

Edit #2: I made it a bit clearer on where to get the original files from.

Prince
06 Dec 2002, 18:27
Originally posted by diettalk
Try spellchecking in the quote...

and it's true by the way.. :D

nope, www.ironmagazineforums.com

:D

Paul
06 Dec 2002, 19:13
Originally posted by diettalk
I'm using this version.




Well, I haven't seen that problem at all. I'd reapply the hack and template changes from scratch.

Paul

rstark
08 Feb 2003, 09:03
Nice hack, and thanks! I did have one problem spellchecking a post, when I hit finish checking the spell checker window turned black (but still had the finish checking and other buttons), it did not close and it did not update the text in my post. All of the other times I used it, it worked like a charm.

Steve St.Lauren
10 Feb 2003, 00:52
I have this running on one of our servers (FreeBSD 4.5 running PHP 4.1.1) but can't get it running on the other one (FreeBSD 4.6 running PHP 4.2.1). When the spell check window opens I get a "Page cannot be displayed" error in the upper part of the window and a blank on the lower part of the window. pspell and aspell are both working from the command line and pspell is shown on a phpinfo() screen as being configured. Any ideas? I'm at a loss.

Steve St.Lauren
10 Feb 2003, 06:42
I gave up on this hack. Found this one on here - http://www.vbulletin.org/forum/showthread.php?s=&threadid=37398&highlight=spellcheck . It's MUCH easier to configure and is more compatible with browsers other than IE. It took me all of 3 minutes to get it installed and running.

350Chevy
13 Feb 2003, 21:48
Originally posted by Steve St.Lauren
It took me all of 3 minutes to get it installed and running.

That's obviously not including the installation of the ispell or aspell which is required for that particular hack that you installed. ;)

Steve St.Lauren
14 Feb 2003, 00:39
pspell and aspell were already installed as a result of trying to get this hack up and running. I just couldn't get this one to run, installed the other one no problem.

Raz
02 Mar 2003, 14:37
LoveShack,

You should have:

a) Asked for my permission before modifying and releasing the code.
b) Made a new thread as two versions can be confusing for people (as is evident)

Paul
02 Mar 2003, 14:47
Originally posted by Raz
I'm sorry but I don't have the time I used to, to work on this anymore. If anyone else is willing to continue this, feel free.

As for starting a new thread, I haven't made any fundamental changes to the code--I've only fixed the bugs that you yourself claimed not to have enough time to fix.

rstark
09 Mar 2003, 22:04
Loveshack, when I upload your code and try to use the spellcheck, all I get is a blank window that pops up. I had to revert back to the original code. Any ideas?

fury
30 Mar 2003, 16:26
Awesome hack. *install*

I'm using LoveShack's version because a lot of people use Mozilla on my site.

rstark
03 Apr 2003, 06:18
I love this hack! I do have a bug that one of my users found. He states that after spellchecking his post, and clicks on Finish, the original text in the post gets erased! This appears to be a problem with AOL 8.0 (I know, I know), no problem when accessing the site from a machine loaded with Win XP, Win98 or Win 2000 using AOL 7.0.

cnczone
22 May 2003, 20:08
Any fixes for this yet I still get

Fatal error: Call to undefined function: pspell_new() in /home/cnczone/public_html/spellcheck/check.php on line 3

Raz
26 May 2003, 13:37
LoveShack, it would have been nice of you to let me know you were taking it on. Oh well...

rstark, I'm sure LoveShack will look into that problem for you.

cnczone, that means to you don't have aspell install, or don't have it compiled into PHP.

Don't forget guys, this is still BETA! Although it works fine on my site, it was designed specially for my needs.

gmarik
05 Jun 2003, 16:44
Where do I get PSpell?
And can I make it spell Jugoslavian?

Ian Cunningham
08 Jun 2003, 15:53
Is there any way to change the language of the spell checker to British (en_gb) on a shared server?

I read :

http://www.fifi.org/doc/libpspell-dev/man-html/4_Library.html

with no luck, but found it is possible

TheEnd
08 Jul 2003, 11:09
I was reading it and to install gnu spell I think its linux. I am on windows now, but my server is linux. I don't know what to do cause I got a unzipped .tar thats all linux files with no known readme (or I just can't open it cause its freggin' linux.) Is there a easier one? or any suggestions?

NexDog
02 Oct 2003, 04:58
I installed this but LoveShack's version doesn't work with the latest Mozilla. So I'm going with Raz's version.