UBB.Dev
Posted By: luuker Disable spell check from quick reply box? - 08/13/2003 2:16 PM
Spell Check doesn't work well with finnish.

How do I get rid of it?

I tried to delete lines code
<input type="button" name="spellcheck" value="{$ubbt_lang['SPELL_CHECK']}" onclick="window.open('http://www.spellcheck.net/cgi-bin/spell.exe?action=checkpg&string='+escape(document.replier.Body.value + '\\r\\n\\r\\n'), 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=400,height=500');" class="buttons" />

from showflat and threaded, but no luck.

So far my trial and error has been just error...

Thanks for your patience!
Posted By: AKD96 Re: Disable spell check from quick reply box? - 08/13/2003 2:30 PM
So you're saying that after deleting that from the tmpl files, the button is still there?
Posted By: luuker Re: Disable spell check from quick reply box? - 08/13/2003 7:11 PM
No. There are some error in addpost.php.

I don't remember what it said, and now I've put the code back.

I was wondering if that code is exactly what I should delete?




Posted By: Ian_W Re: Disable spell check from quick reply box? - 08/13/2003 7:33 PM
Why not just rem it out - you can always then un-rem it if required.

Use // for a php code or <!-- text --> for a template or HTML code.

Always a good way of trying things before physically deleting code.

Posted By: JoshPet Re: Disable spell check from quick reply box? - 08/13/2003 7:54 PM
Yes, that code is the spell check button. It shouldn't have anything to do with addpost though.... the spellcheck button just opens up a window to another site.
Posted By: luuker Re: Disable spell check from quick reply box? - 08/13/2003 9:11 PM
Yeah Josh, I tried that too, but it gave me error.

I'm not 100% sure it was addpost thing.

Well I'll try again.

Thanks.

(to be contiuned...)

Posted By: luuker Re: Disable spell check from quick reply box? - 08/13/2003 9:19 PM
Ok. I put those <!-- --> marks and this is what I get..

Parse error: parse error, unexpected '"' in /data/www/ylexubb/ubbthreads/templates/default/showflat.tmpl on line 293

What's on line 293 of your showflat.tmpl ?
Posted By: Ian_W Re: Disable spell check from quick reply box? - 08/14/2003 1:36 AM
Post a few lines before and after the code in question.
Posted By: luuker Re: Disable spell check from quick reply box? - 08/14/2003 8:59 AM
<br />
<br />
<input type="submit" name="textcont" value="{$ubbt_lang['TEXT_CONT']}" class="buttons" />
<input type="submit" name="preview" value="{$ubbt_lang['PREVIEW_REPLY']}" class="buttons" />
<input type="button" name="spellcheck" value="{$ubbt_lang['SPELL_CHECK']}" onclick="window.open('http://www.spellcheck.net/cgi-bin/spell.exe?action=checkpg&string='+escape(document.replier.Body.value + '\\r\\n\\r\\n'), 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=400,height=500');" class="buttons" />
</form>
</td></tr>
$tbclose
<!-- UBBTPRINT; -->
<!-- } //UBBTREMARK -->


This is strange. Now when I remove those <!-- --> marks it gaves me the same error.

Line 293:
<!-- } //UBBTREMARK -->
Posted By: JoshPet Re: Disable spell check from quick reply box? - 08/14/2003 9:21 AM
Have you been using the online template editor (under Admin)? There's currently a bug with that adding extra space and causing errors.

Try starting with a clean template.... use a regular text editor to do changes and leave that spell check button out. I think the online editor has munged it up.
Posted By: luuker Re: Disable spell check from quick reply box? - 08/14/2003 9:46 AM
Kiitos Josh! (Thanks Josh!)

I'll try that.
Posted By: luuker Re: Disable spell check from quick reply box? - 08/14/2003 9:56 AM
All right, now it works!

Thanks!
© UBB.Developers