vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB Spell :: Spell Checker in WYSIWYG and Standard Modes (https://vborg.vbsupport.ru/showthread.php?t=92202)

lierduh 09-14-2005 12:29 AM

Quote:

Originally Posted by tamarian
Try this file as a replacement to vbspell.js and let me know if it works (change the txt to js)

This fixed the problem! Thanks.

tamarian 09-14-2005 12:38 AM

Quote:

Originally Posted by lierduh
This fixed the problem! Thanks.

Perfect. I'll add it to the zip file.

diettalk 09-14-2005 11:00 PM

Fixed my problem as well.. Thanks Tamarian.

Quote:

Originally Posted by tamarian
Try this file as a replacement to vbspell.js and let me know if it works (change the txt to js)


sim tech 09-30-2005 05:48 PM

Anyone try this on 3.5 Gold yet?? :ninja:

cclaerhout 09-30-2005 06:01 PM

Can someone tell me where to find a french dictionnary please ?
Thank you.

tamarian 09-30-2005 08:05 PM

Quote:

Originally Posted by cclaerhout
Can someone tell me where to find a french dictionnary please ?
Thank you.

http://www.master-technology.com/dem...l/download.php

Make sure you rename the file to DICTIONARY.DIC

Give it a try, and let me know if it spells properly or not, I have not tried it and I'd be interested to know.

lefthome 09-30-2005 09:36 PM

Great program but you are not very clear on a couple of things for us "Non-coder" types...

First, do I assume the dic is placed in admincp or what?

second, you are not very clear on these instructions:

Other templates:

Optional: Other Templates that contain edit boxes are:

USERCP_SHELL just add A before the </head section and B after it. Required for pm_newpm and modifysignature.
editpost
Calendar Templates: calendar_edit
New Posting Templates: newreply, newthread

Quick reply: . Put change A and B in showthread, as the rest, and use this for step C:


Can you say that in stupid english? :o

cclaerhout 09-30-2005 10:25 PM

Your hack is really great and it works with french language. Thanks you very much.

I've just modified the installation process. I find it easier.

Code installation
Put
Code:

<script src="vbspell.js"></script>
at the end of your headinclude template.

Put
Code:

<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
        <input type="hidden" name="spell_formname" value="">
        <input type="hidden" name="spell_fieldname" value="">
        <input type="hidden" name="spellstring" value="">
</form>

at the end of your header template.



Link to the dictionnary

editor_toolbar_on:

Find
Code:

                        <if condition="is_browser('ie') AND !is_browser('mac')">
                                <td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
                        </if>

Replace with
Code:

                                <td onclick="spellCheck('vbform', '$editorid', '2');"><div class="imagebutton"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>



postbit_quickedit AND showthread_quickreply :

Find
Code:

        <if condition="is_browser('ie')">
                        <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                        <td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
                </if>

Replace with


Code:

               
                <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
                <td onclick="spellCheck('vbform', '$editorid', '2');"><div class="imagebutton"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>


What does it do ?
It replaces vB spell check with this one. I'm so happy it works with french language :)

Precision : i've got vB Gold Version

tamarian 09-30-2005 11:30 PM

Quote:

Originally Posted by cclaerhout
Your hack is really great and it works with french language. Thanks you very much.
Precision : i've got vB Gold Version

Good to know :up:

Aeolian_X 10-01-2005 04:10 AM

I have it working on 3.5 gold. Great job. I love this tool!

Akex 10-01-2005 04:55 PM

Instead of editing template files, I made a plugin who does template edit given by cclaerhout (except for postbit_quickedit, if I try to edit it the same way, quick edit no longer works)

Moparx 10-02-2005 02:51 AM

thanks for vbspell :D
it's not working for me in postbit_quickedit on 3.5 gold though :(

tamarian 10-02-2005 03:14 AM

Quote:

Originally Posted by Moparx
it's not working for me in postbit_quickedit on 3.5 gold though :(

In what way is it not working? The button is not there, or it's there but does nothing, in standard or WYSIWYG mode. Note that the template changes are different for quick edit.

Moparx 10-02-2005 03:22 AM

the button is there but it doesnt do anything (i use standard)

i used:
PHP Code:

<input type="button" class="button" value="Spell Check" onClick="spellCheck('qeform', '$editorid', '2');" /> 


Lea Verou 10-02-2005 02:14 PM

Quote:

Originally Posted by Moparx
the button is there but it doesnt do anything (i use standard)

i used:
PHP Code:

<input type="button" class="button" value="Spell Check" onClick="spellCheck('qeform', '$editorid', '2');" /> 


What if I want to remove the buttons to external links? Is it easy?
Also can I permit certain usergroups from entering words in the database?

tamarian 10-02-2005 02:18 PM

Quote:

Originally Posted by Moparx
the button is there but it doesnt do anything (i use standard)

Might want to revert the template, and re-apply ythe edits. Have the header templates been changed inbetween RC's? Might need a revert,

tamarian 10-02-2005 02:19 PM

Quote:

Originally Posted by Loukrhtia
Also can I permit certain usergroups from entering words in the database?

You can remove, or change the external dictionary links from the vbspell template.

The database is never updated with new (learned) words. It done in the browser cookies :)

Lea Verou 10-02-2005 02:24 PM

Thanks for such a quick reply!! :D

Also, can I have 2 dictionaries? One for greek and one for english?

tamarian 10-02-2005 03:01 PM

Quote:

Originally Posted by Loukrhtia
Thanks for such a quick reply!! :D

Also, can I have 2 dictionaries? One for greek and one for english?

No, not as is. If you like to experiment, try using vB Spell for English, and install PungoSpell (link in my profile) to use for Greek.

Lea Verou 10-02-2005 03:04 PM

Ouch. That hurts.

What if I merge the 2 dictionaries?

edit: Or could I use vbSpell for greek and vBs built-in one for english? Will they work together? And WHERE is vbs built in dictionary that everyone is talking about???

Thanks in advance

Moparx 10-02-2005 03:16 PM

Quote:

Originally Posted by tamarian
Might want to revert the template, and re-apply ythe edits. Have the header templates been changed inbetween RC's? Might need a revert,

i just looked over the code and it looks fine to me.. it seems to be a problem with the spellcheck's input button code for postbit_quickedit.

if i change 'qeform' to 'vbform' the spell checker comes right up instead of doing nothing. of course the spell checker can't do any spell checking because 'vbform' obviously isn't supposed to be used there.

any ideas? :(

tamarian 10-02-2005 03:18 PM

Quote:

Originally Posted by Loukrhtia
Ouch. That hurts.

What if I merge the 2 dictionaries?

edit: Or could I use vbSpell for greek and vBs built-in one for english? Will they work together? And WHERE is vbs built in dictionary that everyone is talking about???

Thanks in advance

If you use vB's built-in spell checker, they should work together with no problems. Note that vB's built-in only works for IE browsers.

Then you can use vB Spell for Greek.

Not sure about merging the dictionaries. It is an interesting idea. If you have try it, let me know the results.

Lea Verou 10-02-2005 03:20 PM

So I decided I wont use the built in (What's the point of using something that only works with IE? IE sucks!!! :P) and I'll use vbSpell and merge the dictionaries.
I'll let you know of the results!! :D

Lea Verou 10-02-2005 03:51 PM

The script requires the admincp to have the name admincp!!!
Ours doesn't for security reasons!
What should I do???
I'm in the last step and I get:

Warning: filesize(): Stat failed for ./admincp/DICTIONARY.DIC (errno=2 - No such file or directory) in /arxigeio/vbspell_install.php on line 396

Warning: fopen(./admincp/DICTIONARY.DIC): failed to open stream: No such file or directory in /arxigeio/vbspell_install.php on line 397
Unable to open dictionary file: ./admincp/DICTIONARY.DIC

tamarian 10-02-2005 04:02 PM

Quote:

Originally Posted by Loukrhtia
The script requires the admincp to have the name admincp!!!
Ours doesn't for security reasons!
What should I do???
I'm in the last step and I get:

Warning: filesize(): Stat failed for ./admincp/DICTIONARY.DIC (errno=2 - No such file or directory) in /arxigeio/vbspell_install.php on line 396

Warning: fopen(./admincp/DICTIONARY.DIC): failed to open stream: No such file or directory in /arxigeio/vbspell_install.php on line 397
Unable to open dictionary file: ./admincp/DICTIONARY.DIC

open the install file, and do a search/replace for admincp and replace it with the correct directory.

Lea Verou 10-02-2005 04:11 PM

Now when I run step 5 the browser loads and after a while it stops loading!
Is it because the dictionary is 8MB?
I have an ADSL connection 384/128, is it too slow for this?

tamarian 10-02-2005 04:35 PM

Quote:

Originally Posted by Loukrhtia
Now when I run step 5 the browser loads and after a while it stops loading!
Is it because the dictionary is 8MB?
I have an ADSL connection 384/128, is it too slow for this?

Nothing to do with your connection, it might be due to the time it takes greater than your php.ini max time setting. If you are on a shared host, you probably can't do anything about it.

Lea Verou 10-02-2005 04:37 PM

What is a shared host?
And what can I do to fix this?
Thanks in advance :)

tamarian 10-02-2005 04:51 PM

Quote:

Originally Posted by Loukrhtia
What is a shared host?
And what can I do to fix this?
Thanks in advance :)

Shared host, means many sites reside on the same server by the hosting company, where you don't have access to change your PHP setup. As opposed to a dedicated server, where you can change PHP setup.

If you are on a shared hsot, you cannot change it without asking your host to change it.

Lea Verou 10-02-2005 04:53 PM

Oh, then yes it is a shared host.
How can I find out what the limit is?
Anyway, I removed the english entries so it went from 9MB to 7MB...
I hope it does the trick... :(

Lea Verou 10-02-2005 05:02 PM

Damn didn't work now either :( :( :(
Isn't there another way to do this? I really like this hack and I have many members that do terrible mistakes... :(

Moparx 10-02-2005 05:08 PM

Quote:

Originally Posted by Moparx
i just looked over the code and it looks fine to me.. it seems to be a problem with the spellcheck's input button code for postbit_quickedit.

if i change 'qeform' to 'vbform' the spell checker comes right up instead of doing nothing. of course the spell checker can't do any spell checking because 'vbform' obviously isn't supposed to be used there.

any ideas? :(

tamarian 10-02-2005 10:12 PM

Quote:

Originally Posted by Loukrhtia
How can I find out what the limit is?

In admincp, there's a phpinfo tool, under maintenance I think, where you can see all your PHP variables.

If you still can't load the dictionary, use the original dictionary file, which worked before (didn't it?)

Lea Verou 10-02-2005 10:14 PM

Quote:

Originally Posted by tamarian
In admincp, there's a phpinfo tool, under maintenance I think, where you can see all your PHP variables.

If you still can't load the dictionary, use the original dictionary file, which worked before (didn't it?)

What's the use of having english spellcheck in a greek forum? :eek:
Which variable should I see?

tamarian 10-02-2005 10:14 PM

Quote:

Originally Posted by Moparx
any ideas? :(

I have no idea why it wouldn't work for your setup, that's why I suggested a revert and re-apply the edits (all 3 of them).

tamarian 10-02-2005 10:17 PM

Quote:

Originally Posted by Loukrhtia
What's the use of having english spellcheck in a greek forum?
Which variable should I see?

I did not suggest that, you did. You said you wanted to use both :) I'm still not sure what setup worked for your before, and why it doesn't work now. So just repeaet the steps that worked. :)

Lea Verou 10-02-2005 10:20 PM

If you are replying to me, no setup worked for me! I could never get past the 5th step!
And I want to use both IF and only IF I have greek spellcheck. If I can't have both then I'll go with just greek. It totally useless to have only english... :(

tamarian 10-02-2005 10:25 PM

Quote:

Originally Posted by Loukrhtia
If you are replying to me, no setup worked for me! I could never get past the 5th step!
And I want to use both IF and only IF I have greek spellcheck. If I can't have both then I'll go with just greek. It totally useless to have only english... :(

O.k., so if it never worked, it's probably just the PHP max time setting. Which depends on your hosting company. :)

lierduh 10-02-2005 10:46 PM

Quote:

Originally Posted by tamarian
Might want to revert the template, and re-apply ythe edits. Have the header templates been changed inbetween RC's? Might need a revert,

Gold has changed the quick_edit's AJAX code. It used to send the quick_edit form by html. It seems now sending it using xml.

I have been trying to find the form name for the quick_edit form but have failed so far.

Lea Verou 10-02-2005 11:09 PM

Quote:

Originally Posted by tamarian
O.k., so if it never worked, it's probably just the PHP max time setting. Which depends on your hosting company. :)

Yes but what should I tell them to change?

I really want this hack, I'll do anything I can to install it! :)


All times are GMT. The time now is 09:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01665 seconds
  • Memory Usage 1,848KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete