Integrating phpSpell

Started by fshagan, January 01, 2007, 05:36:31 PM

Previous topic - Next topic

fshagan

SMF has an internal spell checker, but the webhost must have PHP compiled with the "with -pspell" option in order for it to work. 

An alternative is to use phpSpell, an open source (free) spell checker from Master Technology, available at http://www.master-technology.com/demos/spell/download.php  Be sure to download the dictionary files you want to use also.

The zip file download includes a folder named "Simple Machines" that has the instructions to integrate it into your SMF installation.  You will have to configure one file in the phpSpell distribution to include the proper database name, user name and password.  You upload the files indicated, along with the dictionary files you want to use, and use your web browser to install the dictionaries.  Easy.

The SMF file "Post.template.php" file will have to be edited (it is found in the Themes/your_theme_name/ folder).  It is pretty straight forward if you have ever modified forum files before.  I did find that in my theme, the line you search for to start editing is at line 608 and not 503 as the instructions state, but that would vary depending on theme.

Overall, its a better solution than some of the reportedly less-secure, hard coded methods I've seen posted.

H

Looks good :). Maybe someone can package it as a mod
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

ching


citron

Quote from: ching on January 04, 2007, 11:54:23 PM
anyone else test this out?

Yesterday, I successfully installed this on two SMF 1.1.2 sites (default theme, various mods).  The installation instructions included with the ZIP are quite straight forward.  On the spelling admin screen, when uploading the English dictionary file, I did have to put a checkmark next to Safe Mode because my web server kept timing out.

naturalwoman

what does this mean

1. In the common folder - open spell_config.php & set:
        $Spell_Config["DB_Type"] = "MySQL";

does this mean that i removed the //

$Spell_Config['DB_Type'] = 'PHPBB';
//  $Spell_Config['DB_Type'] = 'SMF';

2. Change the $Spell_Config user name, password, & database settings.

not sure where to get this at all. sorry, can anyone point me in the right directions.

i'm using SMF forum

CHwebby

Is anyone currently using this? How is it?

warhonowicz

have just installed it and it seems to work, will see how well
Tell me and I will forget
Show me and I might remember
But involve me and I will understand

SMF 2.0.11 with TP 1.2

fshagan

Its still working fine on my site.


gspuppets

I was wondering if someone could help me with this install.  I have downloaded phpSpell, located the Simple Machines instruction file, and followed the steps it listed.

However, when I pull up the spell_admin.php file on the directory, I get the following errors:

Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/g/s/p/gspuppets/html/foambookcommunity/spelling directory/spell_MySQL.php on line 20

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/content/g/s/p/gspuppets/html/foambookcommunity/spelling directory/spell_MySQL.php on line 21

Notice: Undefined index: CSS in /home/content/g/s/p/gspuppets/html/foambookcommunity/spelling directory/spell_admin.php on line 37


I'm assuming that the username/password/database settings that I entered are not correct, but I don't know what they are supposed to be.  I used the database name and password that I used to set up the forum originally. 

The URL for our forum is hxxp:www.greysealpuppets.com/foambookcommunity. [nonactive]

Thanks in advance!

Shawn Sorrell

Check Settings.php file to make sure you are using the correct database configs.
Shawn

TomW

Is there another site to get phpSpell ? The one in this thread is no longer active.

TomW

Quote from: TomW on December 29, 2008, 11:52:52 PM
Is there another site to get phpSpell ? The one in this thread is no longer active.

Anyone ?

warhonowicz

Tell me and I will forget
Show me and I might remember
But involve me and I will understand

SMF 2.0.11 with TP 1.2

aishaweb

#13
Can someone please make a mod out of this...pwetty please...with a cherry on top.


File attached:
download ~ phpSpell.zip

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Blinker

I followed the instructions to the letter and it all works great. Thanks for the heads up.

I wish I'd found this post earlier when one of my members asked about spell check (our hosting server doesn't have pspell installed).


TomW

Thanks, I now have everything except for 'a dictionary word list'.  Where can I get one for the English language?

TomW

Can anyone tell me where dictionary word list for English would exist ?

Oldiesmann


TomW

Thanks !  I tried to access that site several days ago and it was down.  Thought that it was gone for good.

Advertisement: