Adding a hosted spellchecker...

Started by MarkJ, April 08, 2006, 06:45:56 AM

Previous topic - Next topic

MarkJ

Hi

I wanted to add a spell checker to my forum but the host I am with is reluctant to change any server setting so the smf spell checker wouldn't show.  I have found a very simple way of adding a spell checker though which is hosted elsewhere and works a treat  :).  All I did was to add this code:

<br><iframe frameborder=0 width=97% height=240 src="http://www.thesolutioncafe.com/public-spell-checker-embed2.html"></iframe>


into the default theme Post.template.php at line 940 or just after this line:

<textarea class="editor" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '"', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? ' style="border: 1px solid red;"' : '', '>', $message, '</textarea>


which is a part of the 'actual text box' so you will find it there.

Viola an online spell checker that only shows when you post.  Shows directly under the message box.  All anyone has to do then is copy the text they want to check and paste it into the box underneath.  Works a treat  :).  You can see it on my site but ofcourse you will have to register to do this.

Tested in explorer and firefox and no problems so far.

Wolfenrook

If your host is unwilling to change the settings so that something as basic as a spell checker will work then I would be looking for a new host to be honest.
Thoughts are free, it's their consequences that often have a cost.

MarkJ

QuoteIf your host is unwilling to change the settings so that something as basic as a spell checker will work then I would be looking for a new host to be honest.

Finding a good one is the problem.  I have 2 now to choose from.  One is stuck in the mud as far as settings are concerned and won't allow mp3 or video file storage.  Other one does allow everything but some times the video won't stream etc.  Hard to know what to do about web hosts.  Probably end up using a home server. 

Not sure what is required to run the smf spell checker but there is a warning when you try to activate it that it might not work.  Well whatever is required isn't available on my host and as I have only just paid my fees I am stuck whether I like it or not.  Anyways the spell checker integration that I have put in is as good as I could hope for.  Here is a picture of how it looks.  I have added a little text above the box now.




plyons66

We use GoDaddy - brutal trying to get them to change from any set procedures.  Went into an infinite loop while telling them about the spell checker.  They kept insisting the spell checker underlying functionality was the responsibility of the BBS software, not a concern of theirs.   Finally gave up.  They never "got it".   

plyons66

Quote from: MKJ on April 08, 2006, 06:45:56 AM
Hi

I wanted to add a spell checker to my forum but the host I am with is reluctant to change any server setting so the smf spell checker wouldn't show.  I have found a very simple way of adding a spell checker though which is hosted elsewhere and works a treat  :).  All I did was to add this code:

<br><iframe frameborder=0 width=97% height=240 src="http://www.thesolutioncafe.com/public-spell-checker-embed2.html"></iframe>


into the default theme Post.template.php at line 940 or just after this line:

<textarea class="editor" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '"', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? ' style="border: 1px solid red;"' : '', '>', $message, '</textarea>


which is a part of the 'actual text box' so you will find it there.

Viola an online spell checker that only shows when you post.  Shows directly under the message box.  All anyone has to do then is copy the text they want to check and paste it into the box underneath.  Works a treat  :).  You can see it on my site but ofcourse you will have to register to do this.

Tested in explorer and firefox and no problems so far.


How bad are the ads?  It looks like this free spell checker is supported by ads from google.  Is that correct? 

Thank you - Regards, Phil

MarkJ

#5
QuoteHow bad are the ads?  It looks like this free spell checker is supported by ads from google.  Is that correct? 

Practically nonexistant if you choose the setting I did.  You can log into my forum and have a look by using visitor as name and password.  Just attempt to either create a new topic or reply to something.  If your host won't allow a spell checker I can't see how you will get a better external one that works like this one does.  Just try it out is best I think.  Click on the link on my signature to visit my forum.

Visit here to find out more:

http://www.thesolutioncafe.com

plyons66

Wow.  Very clean.  No ads.  Thanks - I may have to implement this.

Best Regards, Phil

Advertisement: