Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMF Customization Team on November 11, 2006, 02:14:12 AM

Title: Spell Check Custom Words
Post by: SMF Customization Team on November 11, 2006, 02:14:12 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=536)

Spell Check Custom Words



Supported Languages: English
Link To Mod (https://custom.simplemachines.org/mods/index.php?mod=536) | Mod Discussion (http://www.simplemachines.org/community/index.php?topic=126181.0) | Other SMF Customization Team Mods (https://custom.simplemachines.org/mods/index.php?action=profile;u=1)



Summary:
This mod will allow you to add custom words to the sites spell check dictionary.

For members with the appropriate permission an added option "add" will be visible in the spell check window.  Click this will add that word to the dictionary for all users.  Subsequent spell checks on that word will show as spelled correctly.

You will need to add permission to the groups that you wish to be able to add works.

Compatibility:
Compatible with SMF 1.1 2.0RC3 (Comma separated list with text box entry in the admin panel)
SMF 2.0.x utilizes spell check window Add to dictionary button available to member groups with permission

Installation Information:
The Package Manager should work in most cases, if you have problems installing please use the discussion thread as well as Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)

Change Log:
1.3 - 26 February 2011
! Updated for RC4/5
! Changed mod to utilize Add button in the spell check window instead of a comma separate text box in the admin panel

1.2 - 20 October 2010
+ Added support for 2.0 RC3

1.1
! Check to see if $modSettings['knownWordsExtras'] is set before exploding the array. (Subs-Post.php)

1.0 - November 11, 2006
  Initial release



Copyright (c) 2015, Simple Machines, under BSD 3-Clause License.
All rights reserved.
Title: Re: Custom Spell Check Words
Post by: Vinspire on November 11, 2006, 02:16:27 AM
I dont understand the descriptions of what is this mods suppose to do.

Care to elaborate more regarding this mods ? Thanks :)
Title: Re: Custom Spell Check Words
Post by: JayBachatero on November 11, 2006, 02:19:50 AM
Well lets say you have "JayBachatero".  If you use spell check it will mark it as a mis-spelled word.  So what this mod is if you add "JayBachatero" to the list it will show "JayBachatero" as being spelled correctly.
Title: Re: Custom Spell Check Words
Post by: Vinspire on November 11, 2006, 02:25:11 AM
Quote from: JayBachatero on November 11, 2006, 02:19:50 AM
Well lets say you have "JayBachatero".  If you use spell check it will mark it as a mis-spelled word.  So what this mod is if you add "JayBachatero" to the list it will show "JayBachatero" as being spelled correctly.

Oh i c ... Thanks a lot for the explaination Jay. Now I understand :)
Title: Re: Spell Check Custom Words
Post by: marinelife on November 11, 2006, 11:16:27 AM
where do you add the words?
Title: Re: Spell Check Custom Words
Post by: Kindred on November 11, 2006, 12:26:54 PM
problems:


8: Undefined index: knownWordsExtras
File: /sitedirectory/forum/Sources/Subs-Post.php
Line: 1276
Title: Re: Spell Check Custom Words
Post by: JayBachatero on November 11, 2006, 02:14:48 PM
Ok fixed.  That error is shown when knownWordsExtras is not net.  I added a check to see if it's set or not.
Title: Re: Spell Check Custom Words
Post by: Xarcell on November 11, 2006, 07:49:45 PM
Nice mod. Is this one a back port as well?
Title: Re: Spell Check Custom Words
Post by: JayBachatero on November 12, 2006, 12:11:36 AM
Well some what.  It hasn't been added but it was discussed, so I went and wrote it and see people's reaction of it and see if it's useful or not.
Title: Re: Spell Check Custom Words
Post by: SaikoJosh on November 18, 2006, 06:21:52 PM
Cool MOD, cheers. :)
Title: Re: Spell Check Custom Words
Post by: diegolyanky on November 19, 2006, 06:40:30 PM
Hi all:

I have a question related to this topic ...

Know someone where can I find the SPELL CHECK mod ?? ...

I searched ever and I can't found it :(

Regards !!  ;)
Title: Re: Spell Check Custom Words
Post by: JayBachatero on November 19, 2006, 09:13:14 PM
The spellcheck is a built in feature.  Your host must have pspell installed in order for it to work.  Go to Admin > Posts and Topics.  Enable it there.
Title: Re: Spell Check Custom Words
Post by: Brettflan on December 07, 2006, 07:59:41 AM
I find this mod quite useful for the fair-sized game forum I admin. It's nice to have the different locations and names not pop up as misspelled when someone runs the spellchecker. :-)
Title: Re: Spell Check Custom Words
Post by: curtiskline on December 19, 2006, 09:58:43 AM
Sounds like a great mod, but I have the same question as an earlier unanswered post: Where do you input the words? I've installed the mod on my 1.1.1 forum, and when I run a spell check no new features show up. I can't find a spot in the admin area for this.

I seem to always find myself wandering around the admin area in SMF looking for features I've heard about but have no clue where they are....

Thanks,
Curtis
Title: Re: Spell Check Custom Words
Post by: curtiskline on December 19, 2006, 10:01:40 AM
Quote from: curtiskline on December 19, 2006, 09:58:43 AM
Sounds like a great mod, but I have the same question as an earlier unanswered post: Where do you input the words? I've installed the mod on my 1.1.1 forum, and when I run a spell check no new features show up. I can't find a spot in the admin area for this.

Found it, after some more digging around. Admin | Forum | Posts and Topics, right under the box that says "Enable Spell Checking", there is one that says "Spell check custom words: (Separate each word with a comma)".

Good stuff.

Curtis
Title: Re: Spell Check Custom Words
Post by: JayBachatero on December 19, 2006, 03:20:03 PM
Quote from: curtiskline on December 19, 2006, 09:58:43 AM
Sounds like a great mod, but I have the same question as an earlier unanswered post: Where do you input the words? I've installed the mod on my 1.1.1 forum, and when I run a spell check no new features show up. I can't find a spot in the admin area for this.

I seem to always find myself wandering around the admin area in SMF looking for features I've heard about but have no clue where they are....

Thanks,
Curtis
Earlier unanswered post?  How about you read the posts before posting ;).  Look at two posts before the one you made.
Title: Re: Spell Check Custom Words
Post by: RoarinRow on December 20, 2006, 12:02:16 AM
Got this error message:

2: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
File: /forum/Sources/Subs-Post.php
Line: 1299

Anyway I can fix?

After uninstalling I get the same error message, same file. 
Title: Re: Spell Check Custom Words
Post by: JayBachatero on December 20, 2006, 12:04:09 AM
Did the spellcheck work before installing this mod?
Title: Re: Spell Check Custom Words
Post by: RoarinRow on December 20, 2006, 12:05:09 AM
Quote from: JayBachatero on December 20, 2006, 12:04:09 AM
Did the spellcheck work before installing this mod?

as far as I recall.

edit - oh maybe not.  I restored that file using a snapshop copy and had the same issue.  this was done on a test site, so no big deal.  I'll try again on another site of mine. 
Title: Re: Spell Check Custom Words
Post by: JayBachatero on December 20, 2006, 12:13:12 AM
Get your host to install a dictionary for pspell.
Title: Re: Spell Check Custom Words
Post by: RoarinRow on December 20, 2006, 12:13:56 AM
Quote from: JayBachatero on December 20, 2006, 12:13:12 AM
Get your host to install a dictionary for pspell.

you're right.  i'll get that fixed.  works on my other server   8)   thank you, very cool mod.
Title: Re: Spell Check Custom Words
Post by: jacbier on December 28, 2006, 04:59:32 AM
I have installed the mod but he does not work. After adding words the words I have add seems not to be recognized.
Title: Re: Spell Check Custom Words
Post by: JayBachatero on December 29, 2006, 12:11:58 AM
Quote from: jacbier on December 28, 2006, 04:59:32 AM
I have installed the mod but he does not work. After adding words the words I have add seems not to be recognized.
What version of SMF are you using?
Title: Re: Spell Check Custom Words
Post by: jacbier on December 29, 2006, 02:55:19 AM
I am using 1.1.1.
There were two lines with 'Separate each word with a comma.' in my Admin panel.
After uninstall one line was left and this one works!  ::)
Title: Re: Spell Check Custom Words
Post by: veldfire on April 21, 2007, 01:49:32 PM
Is there anyway to have it so that when a word is highlighted in the spell check a button for "Add" can be clicked and that word added to the list ? This way I don't have to go into the admin panel each and every time I have to add a word.
Title: Re: Spell Check Custom Words
Post by: veldfire on April 24, 2007, 11:02:42 PM
Quote from: veldfire on April 21, 2007, 01:49:32 PM
Is there anyway to have it so that when a word is highlighted in the spell check a button for "Add" can be clicked and that word added to the list ? This way I don't have to go into the admin panel each and every time I have to add a word.
Title: Re: Spell Check Custom Words
Post by: Kindred on April 24, 2007, 11:09:00 PM
repeating the same question is not going to get you a different answer....

Since no one answsered, I think you can assume that, for the moment, the answer is no.
Title: Re: Spell Check Custom Words
Post by: veldfire on April 25, 2007, 07:27:24 AM
Quote from: Kindred on April 24, 2007, 11:09:00 PM
repeating the same question is not going to get you a different answer....

Since no one answsered, I think you can assume that, for the moment, the answer is no.
Repeating the same question is much easier then typing "bump" however. Since no one answered I don't ass-u-me anything as I see hundreds of "no answers" across this board daily.

Incidentally, it would behoove SMF to have "support specialist" that have some bedside manner or tact as 90% of you suck with your belligerent attitudes and sarcasm. Take a look at iB and you will find a direct correlation between their demise and their lack of customer service.
Title: Re: Spell Check Custom Words
Post by: TrueSatan on April 25, 2007, 08:48:04 AM
Veldfire...I assure you that, having done it elsewhere myself, the support specialist role is one of the toughest around...it grinds down those who do it with a workload that is simply enormous. It's inevitable that answers given with be as brief as possible when those giving them may have umpteen a day to type in. You have to do it to know how tough it really is. If anything the more work we can take off these people by answering others when we know the answers to their questions the better IMHO. Rather than complaining why not try to help?

Given that the coders here are doing what they do voluntarily any request for extra features (meaning extra coding and thus extra work) depends on the freely given time and effort of those coders...we can't expect or demand it. You've asked if somebody can do you a favour and write some extra code for you in their free time...so far nobody has offered to do so. Nobody has to do it and asking again is more likely to annoy than to get somebody to volunteer to help you.

Please be patient and if somebody wants to take on the task you're asking them to do they'll do so...if not then that's just how it is.

BTW I also admin a rather large site running on iBp and offering support for some parts of same....you wouldn't think it was dying if you saw the size of active membership there....personally I prefer SMF.
Title: Re: Spell Check Custom Words
Post by: veldfire on April 25, 2007, 09:39:38 AM
Quote from: TrueSatan on April 25, 2007, 08:48:04 AM
Veldfire...I assure you that, having done it elsewhere myself, the support specialist role is one of the toughest around...it grinds down those who do it with a workload that is simply enormous. It's inevitable that answers given with be as brief as possible when those giving them may have umpteen a day to type in. You have to do it to know how tough it really is. If anything the more work we can take off these people by answering others when we know the answers to their questions the better IMHO. Rather than complaining why not try to help?

Given that the coders here are doing what they do voluntarily any request for extra features (meaning extra coding and thus extra work) depends on the freely given time and effort of those coders...we can't expect or demand it. You've asked if somebody can do you a favour and write some extra code for you in their free time...so far nobody has offered to do so. Nobody has to do it and asking again is more likely to annoy than to get somebody to volunteer to help you.

Please be patient and if somebody wants to take on the task you're asking them to do they'll do so...if not then that's just how it is.

BTW I also admin a rather large site running on iBp and offering support for some parts of same....you wouldn't think it was dying if you saw the size of active membership there....personally I prefer SMF.
Actually, I have first hand knowledge of it as I too started as a "support specialist" and worked my way to to coder. While I agree that it is a thankless job it is also a job that requires a certain level of compassion. Anyone doing the job knows that for the most part you dealing with "newbies" who haven't a clue about the code and when given crass or "brief" responses it in no way encourages them to learn nor offer help in the future. While in a perfect world your astute observation would be valid sadly it is not when it comes to issues such as these. As I said before, iB died due to the neglect of it's users via it's customer "support specialists" as they too had the same idea as yourself which is severely flawed.

IPB is not iB. Invision Power Board is run and coded by Matthew Mecham and Charles Warner who both were at iB which is Ikonboard when it was started but left shortly thereafter to start IPB so lets not confuse the issue.
Title: Re: Spell Check Custom Words
Post by: Kindred on April 25, 2007, 10:08:11 AM
this is getting rather off topic from the thread subject...
Title: Re: Spell Check Custom Words
Post by: Orstio on April 25, 2007, 10:13:07 PM
Back on topic then...  ;)

Quote from: veldfire on April 21, 2007, 01:49:32 PM
Is there anyway to have it so that when a word is highlighted in the spell check a button for "Add" can be clicked and that word added to the list ? This way I don't have to go into the admin panel each and every time I have to add a word.

It should be possible....

http://www.zend.com/zend/spotlight/spellchecking.php?article=spellchecking&kind=sl&id=4792&open=1&anc=0&view=1#notes

QuoteAdding words to the wordlist
Beyond the normal spell-checking dictionaries, PHP also supports the ability to create custom personalized dictionaries on a case-by-case (or user-by-user) basis. This is accomplished through the use of two functions: pspell_add_to_personal() and pspell_save_wordlist(). Their syntax is as follows, and should be self-explanatory:

int pspell_add_to_personal (int dictionary_link, string word)

int pspell_save_wordlist (int dictionary_link)

Note that these functions should only be used in conjunction with pspell_config_personal() (or similar). In order for a specific wordlist to be saved, the pspell_save_wordlist() function must be called.


http://ca3.php.net/manual/en/function.pspell-add-to-personal.php

Perhaps a mod could be written, or this functionality could be added to the current mod in a future release.
Title: Re: Spell Check Custom Words
Post by: phpmycoder on April 30, 2007, 05:27:48 PM
thanks for this mod!
Title: Re: Spell Check Custom Words
Post by: synaptyx on July 20, 2007, 04:49:26 AM
Hello, does this mod work for 1.1.2 and 1.1.3?
Title: Re: Spell Check Custom Words
Post by: TrueSatan on July 20, 2007, 05:50:31 AM
Yes it does...it has no version limiting.
Title: Re: Spell Check Custom Words
Post by: synaptyx on July 23, 2007, 02:22:38 PM
Thanks! :)
Title: Re: Spell Check Custom Words
Post by: ghscardinals on August 08, 2007, 02:03:23 PM
Hi I have a question, I installed the mod, but in the quick reply and reply there's not Spell Check button? 
Title: Re: Spell Check Custom Words
Post by: Kindred on August 08, 2007, 03:29:11 PM
you have to turn on spell check in the first place, before adding custom words...
Title: Re: Spell Check Custom Words
Post by: ghscardinals on August 08, 2007, 03:31:12 PM
I did turn on, but the SPELL CHECK button don't show on the reply and quick reply. =(
Title: Re: Spell Check Custom Words
Post by: Kindred on August 08, 2007, 03:32:32 PM
this mod won't affect the button showing up or not...
Title: Re: Spell Check Custom Words
Post by: ghscardinals on August 08, 2007, 03:58:29 PM
How? I want to have a spell check like here in this forum.  Isn't that mod?
Title: Re: Spell Check Custom Words
Post by: Kindred on August 08, 2007, 04:11:46 PM
no...   the spell check in this forum is the basic spell check
Title: Re: Spell Check Custom Words
Post by: ghscardinals on August 08, 2007, 04:20:22 PM
Sorry, but where I can get that mod?
Title: Re: Spell Check Custom Words
Post by: Kindred on August 08, 2007, 04:28:44 PM
it is not a mod!!!
Title: Re: Spell Check Custom Words
Post by: JayBachatero on August 10, 2007, 12:44:29 AM
Seems like your host doesn't have pspell installed on the server.  Ask them to see if they can install it.
Title: Re: Spell Check Custom Words
Post by: Col on August 18, 2007, 02:30:16 PM
Jay,

Can you extend the functions of this mod (as an option) so that the spellchecker skips quotes, code boxes and URLs?

Thanks.
Title: Re: Spell Check Custom Words
Post by: JayBachatero on August 19, 2007, 01:25:42 AM
Quote from: Col on August 18, 2007, 02:30:16 PM
Jay,

Can you extend the functions of this mod (as annn option) so that the spellchecker skips quotes, code boxes and URLs?

Thanks.
I don't ave the time to develop this mod any further.  Sorry.
Title: Re: Spell Check Custom Words
Post by: dansmark on June 15, 2009, 04:39:08 PM
Quote from: JayBachatero on November 19, 2006, 09:13:14 PM
The spellcheck is a built in feature.  Your host must have pspell installed in order for it to work.  Go to Admin > Posts and Topics.  Enable it there.

Excuse me,

I've looked at many Mods, and their explination of them, but where do you upload the mod after unzipping it?

Like the "Spell Check Custom Words" for instance.
Do I create a directory for it?
I'm guessing I have to edit multiple .php's to get it to work.

I tried the "help for this mod", it lead me here...

Also, you mentioned my host has to create a directory for spell check.
They told me they don't support any form of spell check...
What now?
Title: Re: Spell Check Custom Words
Post by: Kindred on June 15, 2009, 10:54:05 PM
1- you don't unzip mods.   You use the package manager in your admin panel to upload and apply mods.

2- If your host won't install PSpell/Aspell, then you are out of luck (and I might suggest getting another host, since my host installed it with one simple request)
Title: Re: Spell Check Custom Words
Post by: dansmark on June 17, 2009, 01:48:16 PM
Thanks for the package manager info.
I will try and contact my host again to see if they will install PSpell or Aspell.
I just simply don't have time to search for evrything.

Thanks again!
Title: Re: Spell Check Custom Words
Post by: Matthew Schenker on June 28, 2009, 09:56:11 AM
Hello,
What are the options for custom spell checking in 1.1.9?  This mod seems only compatible with earlier versions.
Thanks,
Matt
Title: Re: Spell Check Custom Words
Post by: vbgamer45 on June 28, 2009, 09:58:37 AM
If it works on 1.1.5 it should work ok on 1.1.9
Title: Re: Spell Check Custom Words
Post by: ZUMZUM on November 01, 2009, 08:37:07 AM
is there a spell check compatable with 1.1.10 ?
Title: Re: Spell Check Custom Words
Post by: Norv on March 09, 2010, 08:21:34 PM
The spell check is working in SMF, provided that you enable it and your host has the PHP pspell library installed.
This mod is not the spell check, however, but it should work along the spell checking, improving it.

It should work with SMF 1.1.11 as well.
Title: Re: Spell Check Custom Words
Post by: jacbier on September 25, 2010, 06:18:39 AM
I like this mod very much!

Recently I moved from SMF 1.1.11 to SMF 2.0 RC3.

Please update this mod to SMF 2.0 RC3, so I can use it on my new forum.
I will be very grateful
Title: Re: Spell Check Custom Words
Post by: Brettflan on September 25, 2010, 09:37:27 PM
I was going to say it works fine for me in 2.0, but I just checked and realized I updated it myself for 2.0 some time ago. So, I've gone ahead and attached my unofficial SMF 2.0 update of the mod to this post.
Title: Re: Spell Check Custom Words
Post by: Kindred on September 25, 2010, 10:44:46 PM
please note: Mods should not be "attached" in the thread...     Either the mod author updates to mod officially, or the mod is taken over by someone else and is submitted officially.   Mods attached in threads bypass all of the checks and reviews that we apply to officially submitted mods. :(
Title: Re: Spell Check Custom Words
Post by: Brettflan on September 25, 2010, 10:52:46 PM
I figured it was better that than leave people no option for using it in 2.0 other than trying to figure out how to update it themselves, and I did mention it was unofficial.

So much for trying to be helpful? :P
Title: Re: Spell Check Custom Words
Post by: Kindred on September 25, 2010, 10:57:00 PM
we appreciate trying to be helpful... however, this is a continual and bothersome problem. People posting versions of a mod in a thread may (first of all) be violating the copyright of the original author (second) are bypassing the mod approval process which protects users from badly coded, insecure or hack-prone mods.

mentioning it is unofficial does not address either of those problems
Title: Re: Spell Check Custom Words
Post by: Brettflan on September 25, 2010, 11:01:20 PM
Eh, fair enough; I've gone ahead and removed the attachment from my earlier post. Apologies to anyone unable to get the mod working in 2.0.
Title: Re: Spell Check Custom Words
Post by: Coyote Keith on June 08, 2011, 12:41:14 PM
I recently installed this mod on 2.0 RC4. It installed without error but when I click the Add button on new words, it does not remember them next time. Any thoughts on this? Where are the custom words stored?

Thanks,
Title: Re: Spell Check Custom Words
Post by: Spuds on June 08, 2011, 06:03:37 PM
It should be saving them in a file named custom_words in your forum root directory.  The first time it runs if the custom spellings file doesn't exist, PHP will attempt to create it.   PHP will need the relevant permissions to create a file in this directory.  You might try to create a blank file with 755 permissions and see if that helps.
Title: Re: Spell Check Custom Words
Post by: Coyote Keith on June 09, 2011, 11:18:02 AM
That fixed my issue. Thank You!
Title: Re: Spell Check Custom Words
Post by: steve911 on June 14, 2011, 01:12:36 PM
I too installed this potentially useful MOD but my problem is that only the administrator gets to see the ADD button - anyone any ideas?
Title: Re: Spell Check Custom Words
Post by: Spuds on June 14, 2011, 01:29:41 PM
It should be an assignable permission so you can give it to moderators or even regular members.   Admin->permissions->choose your group->modify and look for a add words to custom dictionary or the like, can't remember what its called and I don't have it installed where I am right now.
Title: Re: Spell Check Custom Words
Post by: jacbier on July 20, 2011, 07:00:31 PM
Quote from: Spuds on June 08, 2011, 06:03:37 PM
It should be saving them in a file named custom_words in your forum root directory.  The first time it runs if the custom spellings file doesn't exist, PHP will attempt to create it.   PHP will need the relevant permissions to create a file in this directory.  You might try to create a blank file with 755 permissions and see if that helps.

Don't work for me.
Title: Re: Spell Check Custom Words
Post by: Spuds on July 20, 2011, 09:08:27 PM
QuoteDon't work for me.
Must be something with your host or how they have pspell configured as this only uses functions available in pspell to create the custom dictionary.

You can uninstall, then set emulation to 2.0 RC3 and re-install.  This will install the older version of the mod which required you to enter a comma separated list of custom words in the admin panel.  Not as user friendly but will work on all systems, assuming spell checking works to begin with.
Title: Re: Spell Check Custom Words
Post by: blakilox on April 02, 2013, 10:55:13 AM
Hi, This mod has died for me in SMF 2.0.4
I have created a custom_words file in my site root, chmod it 777, it does not put any custom words in there

there was a suggestion to chmod 755 therefore is this custom_words a directory not a file?? I tried making that directory then tried creating a file in there called en
(The code looks like it wants /custom_words/en something or other)

I also tried removing the mod, setting the emulation to a prior version as suggested, and re-installing the mod, though the mod just installed same as before
   
I really like this mod, Surely everybody uses this one? it is a cool little mod, for Niche Topics you really need this one, you need it on this forum, haha,
is it broken for others?

Thank you for any suggestions, Garry


Title: Re: Spell Check Custom Words
Post by: marcie3 on October 24, 2016, 11:39:54 PM
Hi, I installed the mod on our site and I see the ADD button. I'm sorry if this is obvious but I'm not sure where  you are supposed to add the new word. Do you first type it in your message and have it come up in the big text box in the Spell Check window (I can't type directly into that part of the window) or do you type it in the Change TO box? I'm also not seeing the custom_words file.

Another question: Would this mod work with words that have macrons?  A macron (/ˈmækrɒn, ˈmeɪ-/) is a diacritical mark, a straight bar (¯) placed above a letter, usually a vowel.

Thanks for any help.