Welcome, Guest. Please Login or Register.
May 14, 2025, 09:29:07 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  How bouta a speel cheker? « previous next »
Pages: 1 ... 3 4 [5] Reply Ignore Print
Author Topic: How bouta a speel cheker?  (Read 3144 times)
newbieyabbie
Jr. Member
**
Posts: 83


ahead warp nine

Re:How bouta a speel cheker?
« Reply #60 on: June 12, 2003, 05:42:49 PM »
Reply with quote

Quote from: groundup on July 24, 2002, 10:55:56 PM
edit your template and put this into the <head>
<script type="text/javascript" language="javascript"  src="../spellchecker.js">
</script>


"I believe this is Post.php"

search for:
   <input type="submit" name="$waction" value="$txt[507]" onClick="WhichClicked('$waction');" accesskey="p">

add after:
<input onclick="DoSpell('postmodify', 'message')" type="button" value="Check Spelling" name="SpellChk.x">

search for:
print <<<EOT
   <tr>
     <td align=center colspan=2>
      <input type="hidden" name="waction" value="imsend">
      <input type="submit" value="$submittxt" onClick="WhichClicked('imsend');" accesskey="s">
      <input type="submit" name="preview" value="$txt[507]" onClick="WhichClicked('previewim');" accesskey="p">
      <input type="reset" value="$txt[329]" accesskey="r">
     </td>
    </tr>
EOT;
}
print <<<EOT
<tr>
<td colspan=2></td>
</tr>
</table></form>


add after:

         <FORM name=SPELLDATA>
       <P><FONT face="Times New Roman, Times, serif"><INPUT type=hidden
       name=formname> <INPUT type=hidden name=subjectname> <INPUT type=hidden
       name=messagebodyname> <INPUT type=hidden value=body3 name=TextBox3>
       <INPUT type=hidden value=body4 name=TextBox4> <INPUT type=hidden
       name=companyID> <INPUT type=hidden name=language> <INPUT type=hidden
       name=opener> <INPUT type=hidden name=formaction>
     </FONT></P></FORM>


Hi, me again. It is so unusual for a thread of such usefulness to be so ignored, I wonder why? Alas, I Upgraded my forum to 1.5.3 and of course the spell checking is gone. Can you help again with converting the above code so it works with 1.5.3 code?
« Last Edit: June 12, 2003, 05:45:46 PM by newbieyabbie » Logged

Go beyond what you know!
newbieyabbie
Jr. Member
**
Posts: 83


ahead warp nine

Re:How bouta a speel cheker?
« Reply #61 on: June 14, 2003, 12:32:32 AM »
Reply with quote

Anyone? plese heeeelp. I reely ned my spell cheker :'(
Logged

Go beyond what you know!
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:How bouta a speel cheker?
« Reply #62 on: June 14, 2003, 06:11:56 AM »
Reply with quote

If you use IE then just install http://iespell.com/.
Logged
kirkman
Noobie
*
Posts: 7


I'm an Atarian!

WWW
Re:How bouta a speel cheker?
« Reply #63 on: June 15, 2003, 08:40:47 PM »
Reply with quote

Abbie, I'm not a PHP coder, but I like poking around in scripts and I really want this spell check mod on my 1.5.3 board.

The code you need to search for to make this spell check mod work did change from what was written in the previous posts. I'll show you my solution (so far) but it's not finished yet. I need someone who knows PHP to fix one problem.

1. In your post.php file, search for
                        <input type="submit" name="$waction" value="' . $txt[507] . '" onclick="WhichClicked' . "('$waction')" . ';" accesskey="p" />


add after that:
                        <input onclick="DoSpell('postmodify', 'message')" type="button" value="Check Spelling" name="SpellChk.x" />


2. Search for:
      echo '
               <tr>
                  <td align="center" colspan="2">
                     <input type="hidden" name="waction" value="imsend" />
                     <input type="submit" value="' . $submittxt . '" onclick="WhichClicked' . "('imsend')" . ';" accesskey="s" />
                     <input type="submit" name="preview" value="' . $txt[507] . '" onclick="WhichClicked' . "('previewim')" . ';" accesskey="p" />
                     <input type="reset" value="' . $txt[329] . '" accesskey="r" />
                  </td>
               </tr>';
   }

   echo '
               <tr>
                  <td colspan="2"></td>
               </tr>
            </table>
            <input type="hidden" name="sc" value="' . $sc . '" />
         </form>


add after it:
         <form name="spelldata" />
            <input type="hidden" name="formname" />
            <input type="hidden" name="subjectname" />
            <input type="hidden" name="messagebodyname" />
            <input type="hidden" value="body3" name="TextBox3" />
            <input type="hidden" value="body4" name="TextBox4" />
            <input type="hidden" name="companyID" />
            <input type="hidden" name="language" />
            <input type="hidden" name="opener" />
            <input type="hidden" name="formaction" />
         </form>



Okay, that's essentially the solution. However there is a PHP problem in step 1 that needs to be fixed before this will work.

The replacement line needs some sort of escape coding or something around the DoSpell('postmodify', 'message') part. That line is generating this error: parse error, unexpected T_STRING, expecting ',' or ';'

Can someone re-write that line in proper PHP and post it here for us?
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:How bouta a speel cheker?
« Reply #64 on: June 18, 2003, 02:37:13 AM »
Reply with quote

probably:<input onclick="DoSpell(\'postmodify\', \'message\')" type="button" value="Check Spelling" name="SpellChk.x" />


I haven't tried it yet.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
newbieyabbie
Jr. Member
**
Posts: 83


ahead warp nine

Re:How bouta a speel cheker?
« Reply #65 on: June 18, 2003, 03:55:37 AM »
Reply with quote

Quote from: groundup on June 18, 2003, 02:37:13 AM
probably:<input onclick="DoSpell(\'postmodify\', \'message\')" type="button" value="Check Spelling" name="SpellChk.x" />


I haven't tried it yet.
Yeah, that seem to work, it put the Check spelling button in place, but now there is another parse error in the first line of the "form" code
<form name="spelldata" />
           <input type="hidden" name="formname" />
           <input type="hidden" name="subjectname" />
           <input type="hidden" name="messagebodyname" />
           <input type="hidden" value="body3" name="TextBox3" />
           <input type="hidden" value="body4" name="TextBox4" />
           <input type="hidden" name="companyID" />
           <input type="hidden" name="language" />
           <input type="hidden" name="opener" />
           <input type="hidden" name="formaction" />
        </form>
Logged

Go beyond what you know!
newbieyabbie
Jr. Member
**
Posts: 83


ahead warp nine

Re:How bouta a speel cheker?
« Reply #66 on: June 18, 2003, 04:17:54 AM »
Reply with quote

Sorry, my fault. I was placing the code in the wrong area. Now I get no errors, but just nothing happens when I press "Check spell". On the bottom left of IE, it just says "error on page" "document.SPELLDATA.formname" is null or not an object. I think that is in the JS file.
Ideas?
I think the spellchecker.js needs tuning also?
« Last Edit: June 18, 2003, 04:27:34 AM by newbieyabbie » Logged

Go beyond what you know!
newbieyabbie
Jr. Member
**
Posts: 83


ahead warp nine

Re:How bouta a speel cheker?
« Reply #67 on: June 18, 2003, 11:58:22 PM »
Reply with quote

Alright, Its my stupid mistake again. It is working now. Fianaly I got my Spell checker going again.
Thanks guys for the help
Logged

Go beyond what you know!
Pages: 1 ... 3 4 [5] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  How bouta a speel cheker? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.151 seconds with 21 queries.