Spell Checker
 
Notifications
Clear all

Spell Checker

4 Posts
3 Users
0 Reactions
2,394 Views
(@somechick)
Posts: 33
Eminent Member
Topic starter
 

I have read all of the older threads about spell checkers in efiction. I attempted to do the one for tinymce but I couldn't get it to work. I saw there was a mod for sites that aren't using tinymce. I found this http://www.1001line.net/spell-check/ and wondered if anybody knew if it was good, or bad. Also, could I use that for both sites that use tinymce as well as users who opted not to use the function? If anybody has any other ideas, I'd love to hear them. I'm trying to help my friend get it going on her site. She was asking if there was a way to just install something that will automatically put a red line under missed spelled words like it does in browsers now a days. I told her I wouldn't sure, but would find out. Thanks, I appreciate any help.


 
Posted : 26/08/2010 5:47 am
 Pari
(@pari)
Posts: 18
Active Member
 

I know that with spell checker works on version 2 and version 3. I will assume that you are using the latest version in which case you'll need to alter includes/storyform.php (older versions it would simply be the stories.php)

1. download the checker
Spell_Checker.zip

2. Upload zip file, unzip it. It will unzip in it's own folder, you'll need to move these files/folder to your main eFiction folder/directory:
*personal_dictionary (folder)
*mootools-1.2-core-yc.js
*pspell_comp.php
*spell_checker.js
*spell_checker.php
*style.css
*submitTest.php

Then move all the images in the spell_cheker-3.3/images folder to you main eFiction images folder.

3. Next you add this code to you header php:

echo "<link rel="stylesheet" type="text/css" href=""styles.css"" />
  <script type="text/javascript" src=""mootools-1.2-core-yc.js"></script>"
      <script type="text/javascript" src=""spell_checker.js"></script>"
      <script type="text/javascript">";

I put it right above this code:

echo "<script language="javascript" type="text/javascript" src="""._BASEDIR."includes/javascript.js"></script>[/code"]

4. Finally in the includes/storyform.php file you need to find this code:

$output .= "<div><label for="storytext">"._STORYTEXTTEXT.":</label>".(!$storytext ? "<span style="font-weight: bold; color: red">*</span>" :
"")."<br><textarea class="textbox" rows="15" id="storytext" name="storytext" cols="58">".$storytext."</textarea></div>";

And change it to this code:

$output .= "<div><label for="storytext">"._STORYTEXTTEXT.":</label>".(!$storytext ? "<span style="font-weight: bold; color: red">*</span>" :
"")."<br><textarea class="spell_check" rows="15" id="storytext" name="storytext" cols="58">".$storytext."</textarea></div>";

Now you should see the little check mark w/ abc icon above the storytext form on your submission/posting pages  πŸ˜€


 
Posted : 18/06/2011 10:33 am
(@guest10726)
Posts: 0
 

The 'download the checker' zip link doesn't work and I get a 'not found' for the site it's said to be hosted on in the URL, Pari.


 
Posted : 09/08/2011 3:05 am
 Pari
(@pari)
Posts: 18
Active Member
 

The 'download the checker' zip link doesn't work and I get a 'not found' for the site it's said to be hosted on in the URL, Pari.

So sorry for the very late reply, but I have updated the link to the zip file, it should be working now.


 
Posted : 04/05/2012 1:30 am
Share: