PDA

View Full Version : vB Spell :: Spell Checker in WYSIWYG and Standard Modes


Pages : [1] 2

tamarian
07-13-2005, 10:00 PM
A 3.6 version by cynix2 is posted here:
https://vborg.vbsupport.ru/showthread.php?t=124578

What this does: vB Spell allows you to install a dictionary (English dictionary included) into your MysQL database, and provide a spell checking window that works in both of vB's editor modes, standard and WYSIWYG.

Background: Many of you liked PungoSpell, but didn't like recompiling PHP for it. Many liked PHPSpell, but didn't like the lack of WYSIWYG support and browser compatibility. vB Spell solved both problems, I hope, by combining the best of each.

Features:
o Supports most recent versions of browsers. Tested on IE, Firefox, Mozilla/Netsacpe, Opera and Konqueror (Konqueror implies Safari, but please confirm Mac folks)
o Learn Feature uses cookies, so it won't increase the database size
o Admin panel options
o Works in WYSIWYG toolbar, Standard toolbar, and no toolbar
o Can be added in full edit mode, quick edit and quick reply.
o Skips quoted text and other tags (PHP, code, etc.)
o Usergroup permisisons
o Template based interface, and uses your default style.
o Link buttons (Thesarus and Lookup) with links to Merriam Webster's online thesarus and dictionary links with the suggestion for misspelled words.

Installation:
Note: There is a french version of vB Spell, by cclaerhout posted here (https://vborg.vbsupport.ru/showpost.php?p=835541&postcount=206)

1. Upload files and run vbspell_install.php
2. Go to AdminCP > vBulletin Options > vB Spell and edit your usergroup permisisons.
3. Template edits: (see alternative method, if you don't mind removing the ieSpell button made by vB : https://vborg.vbsupport.ru/showpost.php?p=782989&postcount=48)

For each template where you would like to add a vB Spell, do the following edits (Example: editpost, newreply, newthread, etc.)

A. Find:
</head>
Add before:
<script src="vbspell.js"></script>

B. Find: (or anywhere in the body)
$navbar
Add after:
<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>

C. Find the submit and preview buttons:
<input type="submit" class="button" name="sbutton" value="$vbphrase[save_changes]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_changes]" accesskey="p" tabindex="1" />
Add below:

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



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:

<input type="button" class="button" value="Spell Check" onClick="spellCheck('qrform', '$editorid', '2');" />
Right after this (also in showthread):
<input type="submit" class="button" value="$vbphrase[go_advanced]" accesskey="x" title="(Alt + X)" name="preview" tabindex="3" id="qr_preview" onclick="this.form.clickedelm.value = this.value" />

For quick edit in postbit_quickedit, use this for step C (A and B are in showthread):
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', '$editorid', '2');" />

After this:
<input type="button" class="button" tabindex="1" accesskey="p" value="$vbphrase[go_advanced]" id="{$editorid}_adv" />


History:
December 25, 2005: Security fix for cases where you allow HTML posts and they contain malicious code (Credit goes to Brendan Donahue for finding the issue and alerting TechGuy, and to TechGuy for alerting me to it)
November 2nd. 2005: Fixes a bug with slashes in text.
October 17. 2005: Check for primary and secondary group for permission. Bug fix for quoted words.
September 13, 2005: v0.9.9 Bugfix for JS on IE with RC3
July 15, 2005: v0.9.8 Bugfix for JS code mismatch with template.
July 14, 2005: v0.9.7 Initial release for vB 3.5 beta-4

Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=92202) if you have installed this mod.

Scrrenshots: (from the 3.0.7, but it's identical)

jesus likes pie
07-14-2005, 09:53 PM
Could be useful. Do you have the option not to spell check your posts? For example i was on a board and it annoyed the crap out of me to HAVE to go through every word that triggered an incorrectly spelled word.

So is it an option to just not spell check it?

tamarian
07-14-2005, 10:05 PM
Could be useful. Do you have the option not to spell check your posts? For example i was on a board and it annoyed the crap out of me to HAVE to go through every word that triggered an incorrectly spelled word.

So is it an option to just not spell check it?

Yes. It will only check spell the post if you click on the "Spell Check" button.

theArchitect
07-15-2005, 01:03 AM
Yes. It will only check spell the post if you click on the "Spell Check" button.

I loved this in 3.0 and am glad to have it back in 3.5.0.

Only one problem. I have installed it and the checking of spelling is working. But it is not correcting the words. The corrections happen in the pop-up window but then when I click done and quit or just quit the post is not changed.

Any thoughts as to what I have done wrong?

tamarian
07-15-2005, 01:07 AM
I loved this in 3.0 and am glad to have it back in 3.5.0.

Only one problem. I have installed it and the checking of spelling is working. But it is not correcting the words. The corrections happen in the pop-up window but then when I click done and quit or just quit the post is not changed.

Any thoughts as to what I have done wrong?

What version of vB 3.5 are you running? Each beta is quite different :)

If you have beta-4, whivh page are you getting this with? What editor mode, and what browser and version?

theArchitect
07-15-2005, 01:12 AM
Sorry.

I am running beta 4. And I get this with the WYSIWYG and standard editor in both the advanced mode and quick reply.

tamarian
07-15-2005, 01:14 AM
Sorry.

I am running beta 4. And I get this with the WYSIWYG and standard editor in both the advanced mode and quick reply.

And your browser? Have you tried on different browsers?

theArchitect
07-15-2005, 01:31 AM
And your browser? Have you tried on different browsers?

Sorry. I am stuck between a number of projects.

I am on a Mac and running FireFox.

I have also tested it in the latest versions of Netscape, Opera, IE and Safari and all come up the same.

tamarian
07-15-2005, 01:36 AM
Sorry. I am stuck between a number of projects.

I am on a Mac and running FireFox.

I have also tested it in the latest versions of Netscape, Opera, IE and Safari and all come up the same.

Have you reverted all the temlates that need reverting after upgrading to beta4? The client scripts and tool bar templates have changed in beta4.

Feel free to PM a test account (regular user), and I'll check and see what's going on.

theArchitect
07-15-2005, 09:59 PM
Just one more question about enabling it for quickedit. I must be missing the TFO because I can't work out where I should put the button line. I have got it working for quickreply but can't for quickedit.

Apart from that I have to say that this system totally rocks.

I would recommend everyone to put it on their boards. And for those server load Nazis who are worried about it pulling resources, you can enable/disable it per user group. So you could make it available to your paid members which gives them an added incentive to join up.

tamarian
07-15-2005, 10:08 PM
Just one more question about enabling it for quickedit. I must be missing the TFO because I can't work out where I should put the button line. I have got it working for quickreply but can't for quickedit.

My mistake. The instructions should say to put step C in postbit_quickedit, not showthread. (A and B go in showthread)

You can put it right after this, for example:
<if condition="$show['deletepostoption']">
<input type="button" class="button" tabindex="1" value="$vbphrase[delete]" id="{$editorid}_delete" />
</if>

theArchitect
07-15-2005, 10:16 PM
Many thanks. It is all up and running now.

Also, I would suggest that if you want to spell check your PMs that B should be put in USERCP_SHELL and not in pm_newpm as it stops all the other buttons from working.

Or maybe that was what you meant and I just misread it.

tamarian
07-15-2005, 10:23 PM
Also, I would suggest that if you want to spell check your PMs that B should be put in USERCP_SHELL and not in pm_newpm as it stops all the other buttons from working.

I haven't tested PM's :) Instructions updated.

eXtremeTim
07-15-2005, 10:57 PM
Umm vb has its own built in spell checker now. ;) Since beta 3.

But good work.

tamarian
07-15-2005, 11:24 PM
Umm vb has its own built in spell checker now. ;) Since beta 3.

Only for those on Windows, and if they like using Internet Explorer, and speak English only :)

I personally like client based spell checking, and there are client based spell checkers for other browsers. I use SpellBound for Mozilla.

But a server based spell checker is needed for those on the road, and don't have their home PC setup, or the many users who don't know about client-side spell checkers, or those on other browsers.

eXtremeTim
07-16-2005, 12:52 AM
Thats why I said good work. ;)

tamarian
07-16-2005, 07:29 AM
Thats why I said good work. ;)

Oh yes, I got that part :)

It's just that I've heard this comment at vb.com, and some people think ieSpell solves all the problems :)

FASherman
07-16-2005, 01:53 PM
Umm vb has its own built in spell checker now. ;) Since beta 3.

But good work.

Since when is a button which is nothing more than a link to an external program "its own built in spell checker"?

Look! VB now has its own built-in sports site (http://www.espn.com)!

:ermm:

jesus likes pie
07-17-2005, 08:31 PM
i cant get quick reply to work because i cant find any of that in showthread_quickreply......

shiva
07-17-2005, 10:52 PM
The instructions are wrong for that.

You should have both A and B in the showthread template.

Add the code (to replace "C") at the bottom of the showthread_quickreply. It doesn't look very nice, but it works.

tamarian
07-17-2005, 11:24 PM
The instructions are wrong for that.

You should have both A and B in the showthread template.

Add the code (to replace "C") at the bottom of the showthread_quickreply. It doesn't look very nice, but it works.

Are they still wrong?

It should work without editing showthread_quickreply. Check the latest edit of the template instructions, and if it's still wrong let me know :)

jesus likes pie
07-18-2005, 12:58 AM
The instructions are wrong for that.

You should have both A and B in the showthread template.

Add the code (to replace "C") at the bottom of the showthread_quickreply. It doesn't look very nice, but it works.



Thanks ;)

Gary King
07-22-2005, 04:31 PM
I get this error on the vbspell.php page when spellchecking:
Notice: Only variable references should be returned by reference in /home/garyking/public_html/maloria.com/includes/class_core.php on line 1736

Notice: Only variable references should be returned by reference in /home/garyking/public_html/maloria.com/includes/class_core.php on line 1683

Notice: Only variables should be assigned by reference in /home/garyking/public_html/maloria.com/includes/class_core.php on line 1423

Anyways, I simply added error_reporting(0); on the page, since they seem to only be Notices.

tamarian
07-22-2005, 06:36 PM
I get this error on the vbspell.php page when spellchecking:

Anyways, I simply added error_reporting(0); on the page, since they seem to only be Notices.

Ah, this is because I forgot to update debug code before uploading :)

In vbspell.php and vbspell_iframe.php

Chenge this:
error_reporting(E_ALL);
To this:
error_reporting(E_ALL & ~E_NOTICE);

I've update the zip file in case anyone else if getting this.

lierduh
07-28-2005, 11:48 PM
Not sure if you need to do this.

After upgrading to RC1. The spellcheck popped up as a blank page.
I had to uninstall and reinstall using the installation script before it started to work again.

tamarian
07-28-2005, 11:53 PM
Not sure if you need to do this.

After upgrading to RC1. The spellcheck popped up as a blank page.
I had to uninstall and reinstall using the installation script before it started to work again.

No need to do this. I think that was due to the new JS code in vB RC1. A hard refresh of the browser should fix this.

lierduh
07-29-2005, 12:02 AM
No need to do this. I think that was due to the new JS code in vB RC1. A hard refresh of the browser should fix this.

Things I tried before doing that (IE 6):

1) Refresh at Edit Post page.
2) Ctrl-Refresh at Edit Post page.
3) Delete all offline contents.

My problem could be caused by other reasons. I thought too I wouldn't need to reinstall.:)

tamarian
07-29-2005, 12:25 AM
Things I tried before doing that (IE 6):

1) Refresh at Edit Post page.
2) Ctrl-Refresh at Edit Post page.
3) Delete all offline contents.

My problem could be caused by other reasons. I thought too I wouldn't need to reinstall.:)

Hmmm, I'm wondering if this might be template dependant. When I tested RC1, I only tested one template (new thread). I'll do more tests to see if anything might cause a problem with RC1.

Let's hear from others if the RC1 upgrade went fine, or if they also had problems. If anyone else encountered problems, let me know which templates work and which ones didn't. But at leat we know that a re-install will fix the problem, if it happens :)

lierduh
07-29-2005, 12:31 AM
Hmmm, I'm wondering if this might be template dependant. When I tested RC1, I only tested one template (new thread). I'll do more tests to see if anything might cause a problem with RC1.

Let's hear from others if the RC1 upgrade went fine, or if they also had problems. If anyone else encountered problems, let me know which templates work and which ones didn't. But at leat we know that a re-install will fix the problem, if it happens :)

I forgot to confess.:) I reverted all templates after RC1 and inserted spellcheck stuff afterwards.

lierduh
07-29-2005, 06:13 AM
I have noticed spellcheck removes all the line breaks. Is this an intended feature?:)

tamarian
07-29-2005, 12:28 PM
I have noticed spellcheck removes all the line breaks. Is this an intended feature?:)

It shouldn't.

lierduh
08-14-2005, 02:27 AM
I have lost the vBSpell functionalities as before again -- an empty pop up form. An uninstall and reinstall fixes that without even needing the reload of IE. So more likely is a server side issue, or some java stuff which I don't know anything about.:) Also the line breaks are still removed by the spellcheck as soon as I click "Done". If no one else has this problem, then I will start to look for the reasons caused in my forums.

diettalk
09-13-2005, 12:51 AM
I scanned through but I don't think anyone mentioned this but when you preview a post and use the spell checker, it strips out the paragraph spacing and jumples up the thread.

tamarian
09-13-2005, 01:10 AM
I scanned through but I don't think anyone mentioned this but when you preview a post and use the spell checker, it strips out the paragraph spacing and jumples up the thread.

Which RC version?

diettalk
09-13-2005, 01:11 AM
3 ... thanks Tamarian.

tamarian
09-13-2005, 03:59 PM
3 ... thanks Tamarian.

O.k., I've just installed RC3 and tested it. I was unable to reproduce where it would strip any line breaks.

Would you recount the exact steps where this would happen, in which template, edit or new thread/reply, and what mode, WYSIWYG, or standard, etc.

Brinnie
09-13-2005, 08:12 PM
maybe a browser compatability issue?????

diettalk
09-13-2005, 08:34 PM
IE, vBulletin RC3, Standard Editor, "post reply" or "post new thread".

When your done with your post (that contains some paragraph's), hit preview post and then do a spell check. When it's done spell checking, it will remove all paragraph's.

lierduh
09-13-2005, 10:41 PM
O.k., I've just installed RC3 and tested it. I was unable to reproduce where it would strip any line breaks.

Would you recount the exact steps where this would happen, in which template, edit or new thread/reply, and what mode, WYSIWYG, or standard, etc.

I have had this problem ever since I installed (RC2, RC1?). Many of my users also reported the same. See my post before this.

The error occurs as soon as I click DONE. The post text area gets rewritten, but all the paragraph marks were stripped.

I am using IE6 (SP2) with MS Java Virtual Machine.

I reported another bug before, but I will repeat here:

Every time I upgrade to a newer version of vB. The vbSpell pop up box will come up with empty contents. A trick to fix this is to unstall templates and reinstall templates using the bundled installation routine. What might have fixed the problem probably is: build_all_styles() function.

tamarian
09-14-2005, 12:08 AM
IE, vBulletin RC3, Standard Editor, "post reply" or "post new thread".

When your done with your post (that contains some paragraph's), hit preview post and then do a spell check. When it's done spell checking, it will remove all paragraph's.


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

lierduh
09-14-2005, 12:29 AM
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
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.

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
Can someone tell me where to find a french dictionnary please ?
Thank you.

http://www.master-technology.com/demos/spell/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 <script src="vbspell.js"></script> at the end of your headinclude template.

Put <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
<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
<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
<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



<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
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
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:
<input type="button" class="button" value="Spell Check" onClick="spellCheck('qeform', '$editorid', '2');" />

Lea Verou
10-02-2005, 02:14 PM
the button is there but it doesnt do anything (i use standard)

i used:
<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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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! :)

tamarian
10-02-2005, 11:16 PM
Yes but what should I tell them to change?

The PHP script max execution time setting.

tamarian
10-02-2005, 11:19 PM
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.

My test server is a bit messed up, so I'll test this in a couple of days when my environment is back to a clean 3.5 gold state. Feel free to bump this in a couple of days if this is still not sorted out.

Lea Verou
10-02-2005, 11:19 PM
This is what my phpinfo says:
max_execution_time 30 30
What should I tell them to put it to?

tamarian
10-02-2005, 11:21 PM
This is what my phpinfo says:
max_execution_time 30 30
What should I tell them to put it to?

It would be hard to say, as it differs from server to server. If I tell you 60 or 90, it may still not be enough.

Lea Verou
10-02-2005, 11:23 PM
Ok I'll tell them 100... I hope they do it even temporarily...

lierduh
10-02-2005, 11:23 PM
The PHP script max execution time setting.

Or include this in the beginning of the installation script::)

set_time_limit(3600);

The script can run for 1 hour before timing out.

(Also check http log to see if there is any error. It shows if it had timed out.)

Lea Verou
10-04-2005, 07:45 PM
Thanks lerduh.
However, I'm trying to uninstall so that I perform a clean install now that safemode is off and When I click step 4 for the table I get a database error that the table exists although I have uninstalled!
How can I solve this?

edit: Where can I find this http log??

tamarian
10-04-2005, 07:51 PM
Thanks lerduh.
However, I'm trying to uninstall so that I perform a clean install now that safemode is off and When I click step 4 for the table I get a database error that the table exists although I have uninstalled!
How can I solve this?

Hmm, run un-install again and see. It should remove it. There's only one table "vbspell".

Lea Verou
10-04-2005, 07:54 PM
Hmm, run un-install again and see. It should remove it. There's only one table "vbspell".

I uninstalled many times, it doesn't do it. Can I delete the table from the database myself?

Also, they told my in the host that if they disable safemode I will be able to control myself the max execution time, how will I do it??

tamarian
10-04-2005, 08:10 PM
I uninstalled many times, it doesn't do it. Can I delete the table from the database myself?

Also, they told my in the host that if they disable safemode I will be able to control myself the max execution time, how will I do it??

Yes, you can delete the vbspell table manually, there shouldn't be a problem with that.

To change the execution time, you just update it in php.ini file. But you should ask your host where yours is. You just edit this cvalue in it max_execution_time = 30

Lea Verou
10-04-2005, 08:18 PM
Yes, you can delete the vbspell table manually, there shouldn't be a problem with that.

To change the execution time, you just update it in php.ini file. But you should ask your host where yours is. You just edit this cvalue in it max_execution_time = 30

Oh thanks a lot.
Will what lerduh said work if I don't change php.ini? Where will I place this line of code?

tamarian
10-04-2005, 08:42 PM
Oh thanks a lot.
Will what lerduh said work if I don't change php.ini? Where will I place this line of code?

You man this " set_time_limit(3600);"? It won't make a difference if your server's host doesn't allow it. The installation script already tries to disable the limit.

Lea Verou
10-04-2005, 08:44 PM
You man this " set_time_limit(3600);"? It won't make a difference if your server's host doesn't allow it. The installation script already tries to disable the limit.

Oh what a pity...
Then I 'll have to wait the host's reply...
Damn, and I was so happy that I'd finally install it... :(

tamarian
10-04-2005, 09:45 PM
Oh what a pity...
Then I 'll have to wait the host's reply...
Damn, and I was so happy that I'd finally install it... :(

Another alternative, is to have your host import the dictionary table directly for you (if you don't have ssh access). The dictionary table dump is posted in the 3.0.9 version of vB Spell.

Lea Verou
10-04-2005, 11:15 PM
What is ssh access?
They offered to do so, but how will they import it? It's just a list of words!
Oh, I guess I'll nag them till they increase it or let me do so :p

tamarian
10-04-2005, 11:17 PM
What is ssh access?
They offered to do so, but how will they import it? It's just a list of words!
Oh, I guess I'll nag them till they increase it or let me do so :p

They will definitly know what ssh is, they can't be a host without it. And the MySQL dump in the other thread I mentioned is not a list of words, it's a MySQL sump of the dictionary.

Lea Verou
10-04-2005, 11:19 PM
They will definitly know what ssh is, they can't be a host without it. And the MySQL dump in the other thread I mentioned is not a list of words, it's a MySQL sump of the dictionary.

Yes but I will not be using the english included dictionary but a greek one, did you forget? ;)

tamarian
10-04-2005, 11:21 PM
Yes but I will not be using the english included dictionary but a greek one, did you forget? ;)

Yes, I did forget :) Send me your Greek dictionary file, and I'll make you a MySQL dump out of it. Email is webmaster at the domain in my profile.

Lea Verou
10-04-2005, 11:24 PM
Yes, I did forget :) Send me your Greek dictionary file, and I'll make you a MySQL dump out of it. Email is webmaster at the domain in my profile.

It's much easier for you to download it straight from a link:

www.e-steki.com/forum/arxigeio/DICTIONARY.DIC (http://www.e-steki.com/forum/arxigeio/DICTIONARY.DIC)

(put encoding at 8859-7 if you view it online)

if you like, paste the english one too, I removed it to make the filesize smaller.

Tell me when you download it to remove the link. :)

tamarian
10-04-2005, 11:31 PM
It's much easier for you to download it straight from a link:

www.e-steki.com/forum/arxigeio/DICTIONARY.DIC (http://www.e-steki.com/forum/arxigeio/DICTIONARY.DIC)

(put encoding at 8859-7 if you view it online)

if you like, paste the english one too, I removed it to make the filesize smaller.

Tell me when you download it to remove the link. :)

It didn't show up right, compress the file, so that I can download it properly, without browser screwing it up. Send me the link by PM.

Lea Verou
10-04-2005, 11:33 PM
It didn't show up right, compress the file, so that I can download it properly, without browser screwing it up. Send me the link by PM.

If you right-click on the link and select "Save link as..."??

I'm trying to avoid uploading a zip/rar version as it will take some time...

csidlernet
10-05-2005, 02:30 AM
/me installs

Lea Verou
10-05-2005, 05:53 AM
An idea!
It would be nice if a member clicks on "Learn" instead of using only cookies to also add the word to a list that is moderated and the admin will choose if the word will be added in the database or not.
Wouldn't it be nice? :jumpy:

Lea Verou
10-05-2005, 06:27 AM
If you right-click on the link and select "Save link as..."??

I'm trying to avoid uploading a zip/rar version as it will take some time...

So finally were you able to download it or I should make a zipped version? :)

ProperMethodz
10-05-2005, 07:01 AM
Installed... Thanks!

ProperMethodz
10-05-2005, 07:05 AM
An idea!
It would be nice if a member clicks on "Learn" instead of using only cookies to also add the word to a list that is moderated and the admin will choose if the word will be added in the database or not.
Wouldn't it be nice? :jumpy:
You can manually add words to the dictionary.

/yourforumdir/admincp/DICTIONARY.DIC


Open this file in notepad or whatever... add the words you'd like manually.

What I did for the last version I installed was create a notepad doc and put it on my desktop. I added common words which spell check didn't catch that I'd see around the site and update it manually once a month or so.

agiacosa
10-05-2005, 09:49 AM
It works for me but in newpost I get this line showing up before the post box:

"form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">"

Any thoughts?

tamarian
10-05-2005, 10:39 AM
So finally were you able to download it or I should make a zipped version? :)

I think it won't work, due to the character encoding.

tamarian
10-05-2005, 10:40 AM
It works for me but in newpost I get this line showing up before the post box:

"form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">"

Any thoughts?

This might be due to a missing < when cutting and pasting. Re-check the edit for the buttom code in the template.

Lea Verou
10-05-2005, 07:15 PM
The host finally answered!


This is really a programing issue. You are able to control the PHP timeout by adding the PHP function to control it in the script set_time_limit(). For further information please see:

http://php.speedbone.de/manual/da/function.set-time-limit.php

We will be happy to provide you with all the server information you need to help you configure your script.

There can literally be hundreds of reasons why a certain script may not be working and the absolutely best thing to do is to contact the person or company who made the script as they will be able help you install their script.

Many scripts come with a ?README? file which contains installation instructions. If you are still having difficulty we recommend contacting the programmer who wrote the script.

Thank you for your understanding.

So this means I will add the line that lerduh said??

tamarian
10-05-2005, 07:18 PM
So this means I will add the line that lerduh said??

Give it a go without it, first, then try with it, if you get problems.

Lea Verou
10-05-2005, 07:22 PM
Give it a go without it, first, then try with it, if you get problems.

It didn't :( :(
Where should I place lerduh's code? (or a different one if you think it's more suitable)

tamarian
10-05-2005, 08:06 PM
It didn't :( :(
Where should I place lerduh's code? (or a different one if you think it's more suitable)

It won't make a difference. I mentioned a few posts above that the code is already there, but sets the time to zero (means unlimited). If you want to try it, just place it under that line (they look alike).

Lea Verou
10-05-2005, 08:43 PM
It won't make a difference. I mentioned a few posts above that the code is already there, but sets the time to zero (means unlimited). If you want to try it, just place it under that line (they look alike).

The problem persists although I saw myself that safemode is off and according to the above link if safemode is off I should be able to control max execution time via the script...
So I think the problem is elseware... Any ideas??

(damn, why should everything I try to do go totally wrong?? :()

tamarian
10-05-2005, 09:01 PM
The problem persists although I saw myself that safemode is off and according to the above link if safemode is off I should be able to control max execution time via the script...
So I think the problem is elseware... Any ideas??

(damn, why should everything I try to do go totally wrong?? :()

Do you get any errors? Have you tried with a different browser?

lierduh
10-05-2005, 09:03 PM
The problem persists although I saw myself that safemode is off and according to the above link if safemode is off I should be able to control max execution time via the script...
So I think the problem is elseware... Any ideas??

(damn, why should everything I try to do go totally wrong?? :()

Sorry if I have caused more confusion. I just checked, tamarian's installation code already include:
@set_time_limit(0);

If anything, you might want to remove the '@'. '@' suppresses the error. Once you remove it, then try the installation. Very importantly, check the http error log! If the script could not set_time_limit due to safemode on etc, it will show in the log.

Parker Clack
10-05-2005, 09:03 PM
tamarian:

What do you edit to make the popup window contain the spellchecker so that it is the same size as the spellchecker? What do you change to make the popup window resizeable?

I am getting the following.

Lea Verou
10-05-2005, 09:04 PM
I've tried with firefox and Opera.
No, I don;t get any errors, it starts saying "Waiting for e-steki...", the progressbar stucks to about 40%, keeps loading, and suddenly says "done" in the statusbar (like when a page loads) without any change in the page I'm viewing...

tamarian
10-05-2005, 09:04 PM
If anything, you might want to remove the '@'. '@' suppresses the error.

Good point, this might help uncover why it's not working :)

Lea Verou
10-05-2005, 09:05 PM
Good point, this might help uncover why it's not working :)

So I should remove the @ and run the installation again...
Where can I find that http log? :redface:

Lea Verou
10-05-2005, 09:18 PM
I attempted to complete the 5th step twice without the @, now where can I find that HTTP log you are talking about?

/me feels like a complete n00b

tamarian
10-05-2005, 09:27 PM
I attempted to complete the 5th step twice without the @, now where can I find that HTTP log you are talking about?

* Loukrhtia feels like a complete n00b

Did you get any errors? Did you try a different browser?

The error log is usually in the /var/log/http directory, which your host may not allow access to.

Lea Verou
10-05-2005, 09:31 PM
Did you get any errors? Did you try a different browser?

The error log is usually in the /var/log/http directory, which your host may not allow access to.

No I didn't get any errors but I didn;t try a different browser also.
I'll try IE now altough I doubt it'll help
I have no such directory in my host! So its either on a different one or I don't have access to it...
So if it fails with IE too (and I am about certain that it will) what can we do? :(

Lea Verou
10-05-2005, 09:37 PM
I tried on IE, it was slightly different cause I was seeing the progress of the progressbar (in ff it went from 0 to about 40% instantly and then stopped) and also I got a "Cannot find server or DNS Error" after it stopped loading!!

tamarian
10-05-2005, 09:40 PM
what can we do?

I can't do anything. If your server cannot run the script, it's truely out of my hand.

Lea Verou
10-05-2005, 09:42 PM
:( :( :(

Can't I somehow give them something to import in the database like we said yesterday? Please...!

tamarian
10-05-2005, 09:43 PM
:( :( :(

Can't I somehow give them something to import in the database like we said yesterday? Please...!

Sure, it's in the other vB Spell thread.

Lea Verou
10-05-2005, 09:45 PM
Sure, it's in the other vB Spell thread.

Yes but how can I do it in greek??
If I wanted english spell check I'd import the included dictionary, which would for sure be ok with the host's ettings :(
Damn greek language! :( :(

Lea Verou
10-05-2005, 10:12 PM
Yes but how can I do it in greek??
If I wanted english spell check I'd import the included dictionary, which would for sure be ok with the host's ettings :(
Damn greek language! :( :(

Maybe I could somehow import the dicitonary in parts?

tamarian
10-05-2005, 10:25 PM
Maybe I could somehow import the dicitonary in parts?

Not a bad idea.

After the first import portion, you need to remove or comment out the code the deletes the vbspell table.

Find this in the install script:

$query['new'][] = "DROP TABLE IF EXISTS vbspell";
$query['new'][] = "CREATE TABLE " . TABLE_PREFIX . "vbspell (
word varchar(30) NOT NULL,
sound varchar(10) NOT NULL,
UNIQUE KEY word (word),
KEY sound (sound)
) TYPE=MyISAM";

Replace with this:


/*
$query['new'][] = "DROP TABLE IF EXISTS vbspell";
$query['new'][] = "CREATE TABLE " . TABLE_PREFIX . "vbspell (
word varchar(30) NOT NULL,
sound varchar(10) NOT NULL,
UNIQUE KEY word (word),
KEY sound (sound)
) TYPE=MyISAM";
*/


And just run the dictionary step.

Lea Verou
10-05-2005, 10:30 PM
Yes but in how many portions?
I am currently shortening and shortening the dictionary to test if it will ever be imported.
At 3MB it didn't, now I'm going to test 2MB...
In how many portions does the above divide it?

Lea Verou
10-05-2005, 10:36 PM
Just tested 2MB dictionary, and I stil had the problem! :eek:
Now I'll test 700KB and afterwards jsut 100. If it still has the problem...it must be something else I think...

Lea Verou
10-05-2005, 10:38 PM
Oh my god, it worked with a dictionary of 700KB...

What can we do? Will the above code work?

Lea Verou
10-05-2005, 10:40 PM
...and no matter what I write when I click on spell check it says "spell checking complete" :S

Lea Verou
10-05-2005, 10:47 PM
...and no matter what I write when I click on spell check it says "spell checking complete" :S

If I write english words in my post it actually tries to spellcheck... It completely bypasses greek words...
Maybe it doesn't work for greek?

(I knew it, too good to be true... :( :( :( :( )

tamarian
10-05-2005, 10:54 PM
If I write english words in my post it actually tries to spellcheck... It completely bypasses greek words...
Maybe it doesn't work for greek?

(I knew it, too good to be true... :( :( :( :( )

Well, sorry it didn't work for you. At least we both tried :)

Lea Verou
10-05-2005, 10:58 PM
Yes... :(
But how can it work with french and not with greek?
There must be something that can be done...!! I can't believe it won't work at all... :( :( :(
Just tell me what to do to make it work and I'll do it! I badly need this hack, I can't accept giving up so easily!!

Lea Verou
10-05-2005, 11:06 PM
Maybe in the ignore_sets you have put something that accidentaly tresspasses greek characters along with other special characters?

Lea Verou
10-05-2005, 11:15 PM
Also, I just saw that another hack of yours for spellchecking (PHPspell) supported...russian! So it should support greek too! So this, that's supposed to be more advanced than PHPspell should support such a language.
I think I have done something wrong... Maybe I should edit any config.php files to put there lanuguage? Something else?

tamarian
10-05-2005, 11:23 PM
Also, I just saw that another hack of yours for spellchecking (PHPspell) supported...russian! So it should support greek too! So this, that's supposed to be more advanced than PHPspell should support such a language.
I think I have done something wrong... Maybe I should edit any config.php files to put there lanuguage? Something else?

Yes, it should, but many of these issues are server dependant. None of them reported the same problems you had with your server, and your host thinks it's a problem with the script, not their server. Think of it the other waty around. If the problem is with the script, why does it work with English, French and Russan, but not Greek?

Lea Verou
10-05-2005, 11:27 PM
Yes, it should, but many of these issues are server dependant. None of them reported the same problems you had with your server, and your host thinks it's a problem with the script, not their server. Think of it the other waty around. If the problem is with the script, why does it work with English, French and Russan, but not Greek?

How can it be a problem with the server that the script completely ignores greek words?
I too believe that the problem with the dictionary is because of the server but if it supported greek when installed, I want it so much that I could enter the words in the database myself!! :p
So the biggest problem is that it ignores greek words, not the import of the dictionary...
How can that be a server problem (I am really asking, as I am quite a n00b on such stuff...)

tamarian
10-05-2005, 11:36 PM
How can that be a server problem (I am really asking, as I am quite a n00b on such stuff...)

I really don't know, I have no access to that server. Maybe the script is wrong, if someone finds the error, I'd be happy to fix the error.

Lea Verou
10-05-2005, 11:38 PM
I really don't know, I have no access to that server. Maybe the script is wrong, if someone finds the error, I'd be happy to fix the error.

I could even pay to have this working... :o

ProperMethodz
10-06-2005, 05:30 PM
Hello,

My members are getting an error:
$username, you do not have permission to access this page. This could be due to one of several reasons:
You are not logged in. Fill in the form at the bottom of this page and try again.
You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

tamarian
10-06-2005, 05:41 PM
Hello,

My members are getting an error:
$username, you do not have permission to access this page. This could be due to one of several reasons:
You are not logged in. Fill in the form at the bottom of this page and try again.
You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Make sure you have setup up the usergroups allowed to use it. Go to admincp -> vBulletin Options -> vB Spell and enter the usergroup id's, or select to let all use it.

Parker Clack
10-06-2005, 07:13 PM
tamarian:

I posted this earlier but didn't see a response as to what I need to change in the script so that the popup window can be resized and its overall size increased.

Thanks,
Parker

tamarian
10-06-2005, 07:20 PM
I posted this earlier but didn't see a response as to what I need to change in the script so that the popup window can be resized and its overall size increased.

Edit this line in vbspell.js:

openSpellWin(640, 480);

These are the popup coordinates

dsmcd01
10-08-2005, 05:19 PM
Nice. Clicked install.

Can the 'Change to' field be populated with the current misspelled word if there are no suggestions?

Also, if you spell check: "greeeed asdf" and choose ignore for 'greed', the 'Change to' field is still populated with 'greed' when looking at 'asdf'.

Other than that a fine hack. Thank you.

Thx,
D.

tamarian
10-08-2005, 05:28 PM
Can the 'Change to' field be populated with the current misspelled word if there are no suggestions?

Also, if you spell check: "greeeed asdf" and choose ignore for 'greed', the 'Change to' field is still populated with 'greed' when looking at 'asdf'.

Good points, I'll mark it as a to-do :)

dsmcd01
10-09-2005, 12:10 AM
Good points, I'll mark it as a to-do :) Good news! Looking forward to it.

Thanks again,
D.

TosaInu
10-09-2005, 05:38 PM
Thanks for the hack/port tamarian. A problem with the install script: when loading the dictionary it checks ./admincp/dictionary.dic , it doesn't work when the admincp has a different foldername as specified in config.php.

It seems that any user who can use the spellchecker, can also add words to the dictionary?

Lea Verou
10-09-2005, 05:41 PM
Thanks for the hack/port tamarian. A problem with the install script: when loading the dictionary it checks ./admincp/dictionary.dic , it doesn't work when the admincp has a different foldername as specified in config.php.

It seems that any user who can use the spellchecker, can also add words to the dictionary?

Both of your questions have been answered in previous posts. Read the thread (aka RTFM :p)

tamarian
10-09-2005, 08:01 PM
Thanks for the hack/port tamarian. A problem with the install script: when loading the dictionary it checks ./admincp/dictionary.dic , it doesn't work when the admincp has a different foldername as specified in config.php.

It seems that any user who can use the spellchecker, can also add words to the dictionary?

Yes, I'll update the install scripts in the next version. In the mean time, if oyou haven't done so, just rename the directory in the script.

The "learn" button relies on cookies. So if one user clicks "learn", it will not be added to your database, and it will no affect other uses, each's learned words are stored in their own cookies.

TosaInu
10-09-2005, 08:12 PM
I must have messed up the renaming, used another trick to get there (I hope :)

Nice about those cookies for learn.

The quick-edit worked in 3.5.0 (iirc) but now it's giving a Java error.

Line: 25
Char: 17
Error: 'document.forms[...].message' is null or not an object
Code: 0
URL: http:// and so on.

tamarian
10-09-2005, 08:16 PM
I must have messed up the renaming, used another trick to get there (I hope :)

Nice about those cookies for learn.

The quick-edit worked in 3.5.0 (iirc) but now it's giving a Java error.

Line: 25
Char: 17
Error: 'document.forms[...].message' is null or not an object
Code: 0
URL: http:// and so on.

Are you using the latest version?

TosaInu
10-10-2005, 08:44 AM
Downloaded it yesterday tamarian and followed the install instructions in the first post.

tamarian
10-10-2005, 01:01 PM
Downloaded it yesterday tamarian and followed the install instructions in the first post.

O.k., have you tried it in different templates? Quick Edit seems not to work, try it in new reply or new thread templates.

TosaInu
10-10-2005, 02:48 PM
It works in all other templates.

dsmcd01
10-13-2005, 12:04 AM
It seems to have trouble recognizing words beginning or ending with single quotes. For instance: 'word' is detected as a misspelling, but "word" is ok.

Still a fine hack. Thanks,
D.

tamarian
10-13-2005, 02:05 AM
It seems to have trouble recognizing words beginning or ending with single quotes. For instance: 'word' is detected as a misspelling, but "word" is ok.

Still a fine hack. Thanks,
D.

Try this: open vbspell.php, find:

preg_match_all ( "/" . $ignore_sets . "\[[^\]]+\]|[[:alpha:]']+|<[^>]+>|&[^;\ ]+;/im", $mystr, $alphas, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER);

Replace with:
preg_match_all ( "/" . $ignore_sets . "\[[^\]]+\]|[[:alpha:]]+|<[^>]+>|&[^;\ ]+;/im", $mystr, $alphas, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER);

Mr Chad
10-13-2005, 02:43 AM
This is amaizing! Only problem was adding the dictionary to the database. I host with 1and1 and their DB konks out if i send to much at a time. so i had to add it until it gave me the error then find out how far it added and take all the stuff it added from the Dict.TXT and re add it. Worked perfectly.

dsmcd01
10-13-2005, 01:50 PM
Try this: open vbspell.php, find:

preg_match_all ( "/" . $ignore_sets . "\[[^\]]+\]|[[:alpha:]']+|<[^>]+>|&[^;\ ]+;/im", $mystr, $alphas, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER);

Replace with:
preg_match_all ( "/" . $ignore_sets . "\[[^\]]+\]|[[:alpha:]]+|<[^>]+>|&[^;\ ]+;/im", $mystr, $alphas, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER);
No, sorry. No difference. Spell checking:
word 'word' "word"
still finds 'word' misspelled.

Thx,
D.

AaronBBrown
10-14-2005, 12:54 PM
I've followed the instructions, put A and B in SHOWTHREAD and followed the special instructions and put

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


in postbit_quickedit, but my quickedit spellcheck button does nothing. Suggestions?

tamarian
10-14-2005, 01:26 PM
I've followed the instructions, put A and B in SHOWTHREAD and followed the special instructions and put

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


in postbit_quickedit, but my quickedit spellcheck button does nothing. Suggestions?

There is a problem with Quick edit that has yet to be resolved. For now, just click advanced to use the spell checker.

AaronBBrown
11-01-2005, 05:18 PM
This mod strips out all backslashes from a post.

If I type "C:\Mypath\Foo"

vBSpell immediately strips it to "C:MypathFoo" when it comes up.

Lea Verou
11-01-2005, 05:29 PM
This mod strips out all backslashes from a post.

If I type "C:\Mypath\Foo"

vBSpell immediately strips it to "C:MypathFoo" when it comes up.

Yep that's a common thing in php to ensure that even if magic quotes is enabled the text will look correct... If that didn't exist in the code you'd probably see additional backslashes in the text (although you wouldn't loose the ones you posted).
I don't know if that can be fixed, but if it can I'd really like to see the solution!

6impy
11-03-2005, 08:23 AM
I upgraded to vB3.5.1 and now when I try to use the spell checker, the popup window is completely blank.

sim tech
11-04-2005, 04:03 PM
I upgraded to vB3.5.1 and now when I try to use the spell checker, the popup window is completely blank.

Here too...


I ended up running the install script and selecting uninstall.

Then I re-installed it & it's now working. The install/uninstall script made it very painless!

tamarian
11-04-2005, 06:38 PM
Re: 3.5.1: The reason it stops working is that the vbspell template gets deleted after the upgrade, probably due to product id, as it was made before products. I'll check on that.

In the mean time, to get it back, all you need to do is re-create the vbspell template, either by running the install script (only the template step), or create a new vbspell template by pasting this:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>vB Spell $vboptions[bbtitle]</title>
$style[css]
<script>
var iFrameBody;
var spell_formname="$FormName";
var spell_fieldname="$FieldName";
</script>
<script src="vbspell.js"></script>
<script>
$js;
</script>
</head>

<body>

<form name="fm1" onSubmit="return false;">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<strong>vB Spell</strong>
</td>
</tr>

<tr>
<td class="alt1" colspan="2">
<iframe name="spellbox" id="spellbox" width="100%" height="270" scrolling="auto" src="vbspell_iframe.php"></iframe>
</td>
</tr>

<tr class="alt1">
<td valign="top" width="310">
<fieldset class="fieldset" style="margin:0px">
<legend>Change to:</legend>
<div style="padding:$stylevar[formspacer]px">
<div>
<input type="text" name="changeto" class="biginput">
</div>
</div>
</fieldset>
</td>

<td width="310">
<fieldset class="fieldset" style="margin:0px">
<legend>Suggestions:</legend>
<div style="padding:$stylevar[formspacer]px">
<div>
<select style="width:100%" name="suggestions" size="4" onClick="this.form.changeto.value = this.options[ this.selectedIndex ].text">
</select>
</div>
</div>
</fieldset>
</td>
</tr>

<tr>
<td colspan="2" class="alt2" noWrap="noWrap">
<input type="button" class="button" name="change" value="Change" onClick="replaceWord()">
<input type="button" class="button" name="changeall" value="Change All" onClick="replaceAll()">
<input type="button" class="button" name="ignore" value="Ignore" onClick="nextWord(false)">
<input type="button" class="button" name="ignoreall" value="Ignore All" onClick="nextWord(true)">
<input type="button" class="button" name="learn" value="Learn" onClick="learnWord()">
<input type="button" class="button" name="thesarus" value="Thesaurus" onClick="thesarusWord()">
<input type="button" class="button" name="lookup" value="Lookup" onClick="lookupWord()">
<input type="button" class="button" name="quit" value="Quit" onClick="exitWord()">
<input type="button" class="button" name="done" value="Done" onClick="doneWord()">
</td>
</tr>
</table>
</form>
</body>
</html>

thewitt
11-06-2005, 12:48 AM
Have you looked at the integration comments for template editing from message #48? These are very slick and so far seem to work great.

It replaces the IE only enabled ABC-checkmark with this editor. It seems to work really well and only required three template edits.

Comments?

-t

tamarian
11-06-2005, 01:30 AM
Have you looked at the integration comments for template editing from message #48? These are very slick and so far seem to work great.

It replaces the IE only enabled ABC-checkmark with this editor. It seems to work really well and only required three template edits.

Comments?

-t

I like it. I've made a link to it in the instructions as an alternative method. Some minor drawbacks are: 1) vbspell.js will be loaded on everypage, and 2) it removed the ieSpell button, which some users may still prefer.

puertoblack2003
11-06-2005, 04:52 PM
love this hack this reminds me of outlook good program..ok ..maybe you can help me i read through the thread looking for the error messages i get through ie and in firefox don't get any thing to work..everything is installed but when running a test on it i get an error message in ie and in firefox nothing happen can you help me to see where i messed up at.

thanks in advance :ermm:

tamarian
11-06-2005, 07:16 PM
i get an error message in ie and in firefox nothing happen can you help me to see where i messed up at.

This might be due to errors in your template edits.

puertoblack2003
11-07-2005, 01:58 AM
This might be due to errors in your template edits.

yep found the problem in template had to double check and forgot to add a script....click installed :o

wArDoG
11-07-2005, 11:01 AM
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 <script src="vbspell.js"></script> at the end of your headinclude template.

Put <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
<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
<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
<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



<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

Hi Thanks for the help with this.

What template(s) do I need to edit to get the spell checker ilinked to PM's?

Steve

seg
11-08-2005, 09:57 PM
Thanks for the Spell Checker mod. Everything works great except for the Quick edit. I was confused by the notes, is this fixed yet, or is it still not supposed to work?
Fix: Quick edit no longer works, must switch to advanced mode.

Also, just a suggestion for future versions. It would be nice to have a centralized dictionary where the Admin can allow certain words used by all members of the board.

seg
11-08-2005, 10:01 PM
In the instructions above in the "Other templates:" section there are instructions for the template "pm_newpm"

Hi Thanks for the help with this.

What template(s) do I need to edit to get the spell checker ilinked to PM's?

Steve

Code Monkey
11-09-2005, 05:06 AM
All of a sudden, I notice that this is not working as it did before. Now when I click spellcheck I get the popup and it's just displays the following.

options['vbspell_allow_all'] OR is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['vbspell_use_groups']))) $vbulletin->userinfo['can_use_vbspell'] = TRUE; if (!$vbulletin->userinfo['can_use_vbspell'] OR $vbulletin->userinfo['usergroupid'] == 0) print_no_permission(); $PersonalWords = array(); if (!empty($_COOKIE['vbspell_words'])) $PersonalWords = explode(',', urldecode(strtolower($_COOKIE['vbspell_words']))); require_once('./includes/searchwords.php'); // get search engine stop words, to save on queries. function MisSpelled($word) { global $db, $badwords, $PersonalWords; $word = trim($word, "'"); $partial = explode('\'', strtolower($word)); if (count($partial) > 1) $CheckPartial = TRUE; else $CheckPartial = FALSE; if (in_array($partial[0], $PersonalWords)) return FALSE; // User have "learned" this word elseif ($CheckPartial AND in_array(strtolower($word), $PersonalWords)) return FALSE; // User have "learned" this word elseif ($word === strtoupper($word)) return FALSE; // All uppercase, treat as abbriviation, might want to make this an admincp option.. elseif (in_array($partial[0], $badwords)) return FALSE; // Very common word elseif ($CheckPartial AND in_array($partial[0] . $partial[1], $badwords)) return FALSE; // Very common word elseif ($db->query_first("SELECT word FROM " . TABLE_PREFIX . "vbspell WHERE word = '" . addslashes($partial[0]) . "'")) return FALSE; // Found In dictionary else return TRUE; // probably mis-spelled } function Suggest($for) { global $db, $vbulletin; $for = trim($for, "'"); $WordList = array(); $SuggestedList = array(); $Suggestions = $db->query_read("SELECT word FROM " . TABLE_PREFIX . "vbspell WHERE sound = '" . addslashes(metaphone($for)) . "'"); while ($Suggestion = $db->fetch_array($Suggestions)) $WordList[$Suggestion['word']] = levenshtein($for, $Suggestion['word']); asort($WordList); reset($WordList); foreach ($WordList as $word => $distance) if ($distance <= $vbulletin->options['vbspell_levenshtein_distance']) $SuggestedList[] = $word; if ($for === ucfirst($for)) { foreach ($SuggestedList as $key => $word) $SuggestedList[$key] = ucfirst($word); } elseif ($for === strtoupper($for)) { // not possible yet, but might be allowed in admincp. foreach ($SuggestedList as $key => $word) $SuggestedList[$key] = strtoupper($word); } return $SuggestedList; } $mystr = str_replace('\\', '\\\\', $_REQUEST['spellstring']); $mystr = stripslashes($mystr); $FormName = $_POST['spell_formname']; $FieldName = $_POST['spell_fieldname']; // can't have newlines or carriage returns in javascript string $mystr = str_replace("\r", "", $mystr); $mystr = str_replace("\n", "_|_", $mystr); $mystr = trim($mystr); $ignore_sets = '\[QUOT.+\].*\[\/QUOTE\]|'; $ignore_sets .= '\[CODE\].*\[\/CODE\]|'; $ignore_sets .= '\[PHP\].*\[\/PHP\]|'; $ignore_sets .= '\[img\].*\[\/img\]|'; $ignore_sets .= '\[url.*\].*\[\/url\]|'; $ignore_sets .= '.*<\/a>|'; preg_match_all ( "/" . $ignore_sets . "\[[^\]]+\]|[[:alpha:]']+|<[^>]+>|&[^;\ ]+;/im", $mystr, $alphas, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER); $mystr = str_replace('\\', '\\\\', $mystr); // this has to be done _after_ the matching. it messes up the // indexing otherwise. I have not figured out exactly why this // happens but I know this fixes it. $mystr = str_replace("\"", "\\\"", $mystr); $js .= 'var mispstr = "'.$mystr.'";'."\n"; $js .= 'var misps = Array('; $curindex = 0; for($i = 0; $i < sizeof($alphas[0]); $i++) { // if the word is an html tag or entity then skip it if (preg_match("/<[^>]+>|&[^;\ ]+;/", $alphas[0][$i][0])) continue; // ignore quotes if (preg_match("/\[QUOTE\].\[\/QUOTE\]/ism", $alphas[0][$i][0])) continue; // ignore BBCODE/VBCODE tags if (preg_match("/\[[^\]]+/", $alphas[0][$i][0])) continue; if (MisSpelled($alphas[0][$i][0])) { $js .= "new misp('" . str_replace("'", "\\'",$alphas[0][$i][0]) . "',". $alphas[0][$i][1] . "," . (strlen($alphas[0][$i][0]) + ($alphas[0][$i][1] - 1) ) . ",["; $suggestions = Suggest($alphas[0][$i][0]); foreach ($suggestions as $suggestion) { $sugs[] = "'".str_replace("'", "\\'", $suggestion)."'"; } if (sizeof($sugs)) { $js .= join(",", $sugs); } unset($sugs); $js .= "]),\n"; $sugs_found = 1; } } if ($sugs_found) $js = substr($js, 0, -2); $js .= ");"; eval('print_output("' . fetch_template('vbspell') . '");'); ?>

Code Monkey
11-09-2005, 05:17 AM
Never mind. I forgot I turned off short open tags. This is why you should never use short open tags. *waves finger*

:D

Simple fix by adding php after <? in vbspell.php. ;)

tamarian
11-09-2005, 06:23 PM
Thanks for the Spell Checker mod. Everything works great except for the Quick edit. I was confused by the notes, is this fixed yet, or is it still not supposed to work?

No, it still doesn't work with Quick edit.


Also, just a suggestion for future versions. It would be nice to have a centralized dictionary where the Admin can allow certain words used by all members of the board.

Note that it's best to let everyone add words, since adding words is done through cookies, and does not effect other users.

tamarian
11-09-2005, 06:23 PM
Never mind. I forgot I turned off short open tags. This is why you should never use short open tags. *waves finger*

:D

Simple fix by adding php after <? in vbspell.php. ;)


Good point :)

thewitt
11-10-2005, 01:17 AM
I like it. I've made a link to it in the instructions as an alternative method. Some minor drawbacks are: 1) vbspell.js will be loaded on everypage, and 2) it removed the ieSpell button, which some users may still prefer.

This integration method also makes vBSpell work with Quick Edit...

My users don't get the choice, but everyone has spell checking now.

-t

tamarian
11-10-2005, 01:23 AM
This integration method also makes vBSpell work with Quick

On 3.5 or 3.5.1?

thewitt
11-10-2005, 01:31 AM
On both 3.5 and 3.5.1.

So far it seems to work every time I have a posting window, regardless of how it's presented.

-t

tamarian
11-10-2005, 02:24 AM
On both 3.5 and 3.5.1.

So far it seems to work every time I have a posting window, regardless of how it's presented.

I just tried it and you're right. It also works as a button now. Seems to be due to the change from vbform to qeform, now back to vbform again :)

thewitt
11-10-2005, 03:14 AM
I just tried it and you're right. It also works as a button now. Seems to be due to the change from vbform to qeform, now back to vbform again :)

Nice utility tamarian, thank you for your work on this.

Are you planning on any dictionary maintenance functions? Adding words to the dictionary would be a nice addition.

I would think that at a minimun, integrating the phpspell admin Add a Word function into the Admin would be a valuable feature.

On the high end, capturing the words that individuals add to their own private dictionaries for possible inclusion into the main dictionary would be very sweet.

Anyway, a very nice utility.

Fixing that annoying upgrade bug that whacks the template would be nice :).

-t

SilentNoise
11-12-2005, 05:27 PM
I just installed it on my 3.5.1 board and things are A-OK. Awesome mod.
Thanks man.

tamborinegal
11-15-2005, 03:35 AM
Thanks tamarian,

This is just what the users on our forum have been wanting. Thanks so much.

Easy to install. excellent. :)

slvr ralliart
11-20-2005, 10:59 PM
aight nice hack!!

how do I add a few words in the dictionary that aren't there?

tamborinegal
11-20-2005, 11:00 PM
Also, if you spell check: "greeeed asdf" and choose ignore for 'greed', the 'Change to' field is still populated with 'greed' when looking at 'asdf'.

Good points, I'll mark it as a to-do :)

tamarian,

Love this hack... but is there any update on the problem above? The problem is, if this happens at the beginning of a post, you have no way to check the rest, it just keeps suggesting the same word :(

thanks

slvr ralliart
11-20-2005, 11:38 PM
so...

would you like to share how to add a word or two the the dictionary?

tamarian
11-20-2005, 11:48 PM
Love this hack... but is there any update on the problem above? The problem is, if this happens at the beginning of a post, you have no way to check the rest, it just keeps suggesting the same word :(

O.k., I'll bump it up on my to-do list, just been too busy :) . If there's any JavaScript programmers here, feel free to make suggestions.

slvr ralliart
11-20-2005, 11:56 PM
O.k., I'll bump it up on my to-do list, just been too busy :) . If there's any JavaScript programmers here, feel free to make suggestions.


can i add words myself? or how does this work?

tamborinegal
11-20-2005, 11:58 PM
O.k., I'll bump it up on my to-do list, just been too busy :) . If there's any JavaScript programmers here, feel free to make suggestions.
Thanks tamarin :) You do great work. Love vBdrupal too.

slvr ralliart
11-21-2005, 12:04 AM
bump for my simple question

tamarian
11-21-2005, 12:09 AM
bump for my simple question

By using the learn button, which adds words to the user's cookie.

slvr ralliart
11-21-2005, 12:30 AM
doesn't work

tamarian
11-21-2005, 01:16 AM
is there any update on the problem above? The problem is, if this happens at the beginning of a post, you have no way to check the rest, it just keeps suggesting the same word :(

Test this for me. Open vbspell.js and find:

if (misps[ wordindex ].suggestions.length) {
for (sugidx = 0; sugidx < misps[ wordindex ].suggestions.length; sugidx++) {
if (sugidx == 0)
isselected = 1;
else
isselected = 0;
newopt = new Option(misps[ wordindex ].suggestions[sugidx], misps[ wordindex ].suggestions[sugidx], 0, isselected);
sug.options[ sugidx ] = newopt;

if (isselected) {
frm.changeto.value = misps[ wordindex ].suggestions[sugidx];
frm.changeto.select();
}
}
}
Add after:
else
{
frm.changeto.value = '';
frm.changeto.select();
}

zoomforce
11-22-2005, 05:30 AM
k i got a wierd problem..

install works fine for new reply.. i just installed it into quick edit, and when i click modify, the button shows up, and when i click it, the pop up opens but is totally blank (it doesnt take the post text) and it goes "spell check done" then proceeds to whipe out the text completely, so there is nothing in the edit box when it goes back.

any ideas?

RGSMDNR
11-22-2005, 11:06 AM
how do i make the pop up window bigger? the right hand side is cut off slightly.

clearchannel
11-25-2005, 02:57 PM
I haven't been able to get the spell check to work in private messages in vb 3.51.

I have added the following code in the usercp_shell

<script src="vbspell.js"></script>

</head>

<body$onload>
$header
$navbar
<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>

I have not been able to find the code to replace in the pm_newpm, that code does not look like the other templates edits?

Can someone please point me in the right direction.

Thanks in advance.

tamarian
11-25-2005, 03:36 PM
how do i make the pop up window bigger? the right hand side is cut off slightly.

Edit this in vbspell.js:
openSpellWin(640, 480);

tamarian
11-25-2005, 03:38 PM
I haven't been able to get the spell check to work in private messages in vb 3.51.

I have added the following code in the usercp_shell

<script src="vbspell.js"></script>

</head>

<body$onload>
$header
$navbar
<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>

I have not been able to find the code to replace in the pm_newpm, that code does not look like the other templates edits?

Can someone please point me in the right direction.

Thanks in advance.

You have steps A and B covered. For step C, just added it after the submit/preview buttons on the newpm template.

clearchannel
11-25-2005, 04:01 PM
Ah thank you that did the trick.

Great response time I might add.

davidw
11-28-2005, 01:21 PM
<font color="SeaGreen">* christianb clicks install</font>

cclaerhout
11-29-2005, 01:14 PM
Here is vB Spell for french users.

***Information***
-Installation file modified : languageid "-1" to languageid "0"
Fichier d'installation modifi? : languageid "-1" -> languageid "0"

-Javascript file modified : thesaurus and lookup deleted and replaced by a french synonym dictionnary and french version of wiktionary
Fichier javascript modifi? : le thesaurus et la consultation du lexique ont ?t? supprim?s pour ?tre remplac?s par un dictionnaire des synonymes et la version fan?aise de wiktionary.

-Xml product file created : include french translated template and french phrases.
Cr?ation d'un fichier produit xml : comporte la traduction fran?ais du template et celle des expressions.

-English dictionnary replaced with french dictionnary
Dictionnaire anglais remplac? par celui fran?ais.

***New installation***
No problem, just read Tamarian How To, and import the new xml product file
Aucun probl?me, suivez juste les instructions de Tamarian et importer le fichier produit xml

***"Upgrade" after having installed vB Spell***
*** with original vbspell_install.php file***
If you want french phrases in admincp, uninstall first vBspell with the original vbspell_install.php
Si vous avez pr?c?demment install? vB Spell avec le fichier original, vous devez d?sinstaller le script avec le m?me fichier. Puis t?l?charger l'archive fran?aise et proc?der ? la r?installation

tamarian
11-29-2005, 01:32 PM
Here is vB Spell for french users.

Cool :up: I've linked to it from the first post.

pirotess
12-01-2005, 11:17 PM
SQL file for the dictionary is no longer posted in the 3.0.7 version or here. Anyone have a copy so I can get this working without messing around with my php variables?

tamarian
12-02-2005, 12:28 AM
SQL file for the dictionary is no longer posted in the 3.0.7 version or here. Anyone have a copy so I can get this working without messing around with my php variables?

I removed it since some didn't know it's optional :)

Here it is.

pirotess
12-02-2005, 01:35 AM
Thanks. I managed to get it to work by just importing up to the r's then modifying the script and dictionary. This will help in the future though.

4number8
12-05-2005, 10:09 PM
Works great, thanks alot for your work on this....it is appreciated :)

TosaInu
12-06-2005, 04:59 PM
vbspell (also the latest update) stopped working on our board.

The templates are still fine, the files are where they should be, the database is fine, the buttons work, vbspell.php is loaded into a new popup, but instead of showing anything, a white page (no error codes) is displayed. Is this because of the 3.5.1 upgrade or is the PHP configuration changed?

tamarian
12-07-2005, 03:32 AM
vbspell (also the latest update) stopped working on our board.

The templates are still fine, the files are where they should be, the database is fine, the buttons work, vbspell.php is loaded into a new popup, but instead of showing anything, a white page (no error codes) is displayed. Is this because of the 3.5.1 upgrade or is the PHP configuration changed?

Re-run the installation script, except for the last step (installing dictionary), and let me know if it still doesn't work.

JeffreySmith
12-08-2005, 07:38 AM
Hi,

Where it says 'upload files' where do I upload them to?

Thanks,

Jeff Smith

SpadMan
12-08-2005, 11:54 AM
After upgrading to vBulletin 3.5.2, I had the same problem TosaInu reported. As suggested by tamarian, I re-ran the installation to get vB Spell working again. It was necessary to reinstall the dictionary as well.

TosaInu
12-08-2005, 01:05 PM
Thanks tamarian

Step 1 generated a SQL error since the fields already existed in the database.
Step 2 completed.
Step 3 completed
Step 4 generated a SQL error since the fields already existed in the database.

The spellcheck seems to be working again. I guess step 3 (adding templates is vital).

tamarian
12-08-2005, 03:43 PM
Hi,

Where it says 'upload files' where do I upload them to?

Thanks,

Jeff Smith

The zip file contains the correct directory structure. Upload what's in forum to forum, and what's in admincp to admincp.

bitbender
12-09-2005, 04:07 PM
OK, I did all the updates, all seemed to go well, but, it seems that I have made a mistake somewhere...

NO matter what I do, I got the "Spellcheck is complete" box, even when errors are plainly visible... :ninja: This is the same for all interfaces, edit/new reply/new post, etc...

See attached screen shot.. Any Ideas?

tamarian
12-09-2005, 04:44 PM
OK, I did all the updates, all seemed to go well, but, it seems that I have made a mistake somewhere...

NO matter what I do, I got the "Spellcheck is complete" box, even when errors are plainly visible... :ninja: This is the same for all interfaces, edit/new reply/new post, etc...

See attached screen shot.. Any Ideas?

Was the dictionary installed? How many words are there (size of the vbspell table)

The Chief
12-09-2005, 05:17 PM
works great on 3.5.2, thanks for this!! :D

*clicks install

bitbender
12-09-2005, 06:48 PM
Was the dictionary installed? How many words are there (size of the vbspell table)


Yes... 192,917 total.. i ran thru all the pages in this hack, checked perms on the scripts and everything I thought it might be. Not my first time at application of hacks either, but I know I can make a mistake the same as the next fellow...

I did read thru all the pages of this thread to see if it twas already discovered, saw one post, but no solution..

btw, this is a VB 3.5.0 gold , and Vbportal 3.5 co-mingling

TIA for your efforts.
Bits

jarosciak
12-10-2005, 01:41 AM
I also have the problem two other users mentioned in this topic:
Upgraded VBulletin to 3.5.2 and:
- templates are fine
- files are where they should be
- database is fine
- buttons work
- vbspell.php is loaded into a new popup, but instead of showing anything, a white page (no error codes) is displayed.

What can I do to fix this? I don't want to reinstall it from the scratch. There must be something simple.
Please let me know. :devious:

Joe

tamarian
12-10-2005, 01:55 AM
You don't have to re-install from scrach, just re-run the install script. The template edits will not need to be re-done.

utw-Mephisto
12-10-2005, 10:02 AM
When you use this on "editpost" too it deletes the text ..

Basicially you click edit and then straight away spell check ... the popup appears empty and so is the post when closing the spellcheck window :(

klaush
12-10-2005, 12:19 PM
Someone got a German dictionary?

Thanks!

tamarian
12-10-2005, 01:18 PM
When you use this on "editpost" too it deletes the text ..

Basicially you click edit and then straight away spell check ... the popup appears empty and so is the post when closing the spellcheck window :(

You probably mean the quick edit? This seems to be a weird problem I'm not yet able to fix. If you click "go advanced" it will not happen. Best for now is to not use it in quick edit.

utw-Mephisto
12-10-2005, 01:52 PM
Yeah, this is what I meant .. I disabled it for now ... if someone wants to use an advanced feature such as spell check - well - click advanced :D

meissenation
12-12-2005, 03:13 AM
very nice! now the members of my site can stop making fun of the poor guy with bad spelling. :D :D :D

Skitzzo
12-15-2005, 08:41 PM
I installed this and it went great for a while and then one day when I went to click on the spell check it popped up the window as usual but the window was blank. I checked all the templates and they appear to still be in order... any ideas? any specific places I should look?

clearchannel
12-15-2005, 10:08 PM
It does not appear to be working in vB 3.52. Is there a fix for this problem?

tamarian
12-16-2005, 01:06 PM
It does not appear to be working in vB 3.52. Is there a fix for this problem?

Did you try re-running the install script (except the last step for dictionary). This fixed it for a few in the previous page.

Skitzzo
12-16-2005, 01:07 PM
Did you try re-running the install script (except the last step for dictionary). This fixed it for a few in the previous page.
I'll see if that does it.

clearchannel
12-17-2005, 11:15 AM
I tried reinstalling with/o the dictionary, when doing a spell check it would find mispelled words, but no option to correct them. I then completely uninstalled and reinstalled the program, and all is working as it should now.

Thanks

soravok
01-03-2006, 07:16 AM
So how come I can't find </head> in any of my templates? Has something changed?

soravok
01-04-2006, 04:18 AM
Okay I'm having an issue when I click spell check it opens a window full of php gibberish, any idea's folks?

options['vbspell_allow_all'] OR is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['vbspell_use_groups']))) $vbulletin->userinfo['can_use_vbspell'] = TRUE; if (!$vbulletin->userinfo['can_use_vbspell'] OR $vbulletin->userinfo['usergroupid'] == 0) print_no_permission(); $PersonalWords = array(); if (!empty($_COOKIE['vbspell_words'])) $PersonalWords = explode(',', urldecode(strtolower($_COOKIE['vbspell_words']))); require_once('./includes/searchwords.php'); // get search engine stop words, to save on queries. function MisSpelled($word) { global $db, $badwords, $PersonalWords; $word = trim($word, "'"); $partial = explode('\'', strtolower($word)); if (count($partial) > 1) $CheckPartial = TRUE; else $CheckPartial = FALSE; if (in_array($partial[0], $PersonalWords)) return FALSE; // User have "learned" this word elseif ($CheckPartial AND in_array(strtolower($word), $PersonalWords)) return FALSE; // User have "learned" this word elseif ($word === strtoupper($word)) return FALSE; // All uppercase, treat as abbriviation, might want to make this an admincp option.. elseif (in_array($partial[0], $badwords)) return FALSE; // Very common word elseif ($CheckPartial AND in_array($partial[0] . $partial[1], $badwords)) return FALSE; // Very common word elseif ($db->query_first("SELECT word FROM " . TABLE_PREFIX . "vbspell WHERE word = '" . addslashes($partial[0]) . "'")) return FALSE; // Found In dictionary else return TRUE; // probably mis-spelled } function Suggest($for) { global $db, $vbulletin; $for = trim($for, "'"); $WordList = array(); $SuggestedList = array(); $Suggestions = $db->query_read("SELECT word FROM " . TABLE_PREFIX . "vbspell WHERE sound = '" . addslashes(metaphone($for)) . "'"); while ($Suggestion = $db->fetch_array($Suggestions)) $WordList[$Suggestion['word']] = levenshtein($for, $Suggestion['word']); asort($WordList); reset($WordList); foreach ($WordList as $word => $distance) if ($distance <= $vbulletin->options['vbspell_levenshtein_distance']) $SuggestedList[] = $word; if ($for === ucfirst($for)) { foreach ($SuggestedList as $key => $word) $SuggestedList[

soravok
01-05-2006, 01:20 AM
Upgraded to 3.5.3 to see if it fixed the problem, still getting the same issue as above. I would really like it if someone could give me a hand figuring this out. Seems like a good piece of software if I can get it working :) Thanks!

yessir
01-05-2006, 01:39 AM
You'll need to search your templates for "head". Find the one you need to edit. Proceed slowly through the instructions.

soravok
01-06-2006, 01:05 AM
I'm just going to keep posting untill someone has a suggestion, so far I've tried both methods of setting it up and neither has worked properly. I have a forum that needs a spell checker, any legitimate suggestions on fixes/work arounds. You'll need to search your templates for "head". Find the one you need to edit. Proceed slowly through the instructions. I hope you don't moonlight in the support industry there guy!

Wildthinks
01-06-2006, 05:12 AM
Someone got a German dictionary?

Thanks!

me too interesting... :squareeyed:

ludachris
01-06-2006, 04:05 PM
Has anyone else experienced Javascript errors, preventing the spell check from working? I ran the install and edited the templates, but when I click the button, nothing happens. I look down in the corner of the IE status bar and there's a JS error. The error says something like:

'document.forms[...].message.value' is null or not an object

Any idea what's going on? The only other thing I have running is phpAdsNew scripts (in js form). I removed all the phpadsnew code and it still gives the same error, so there's no conflict there.

Rich
01-08-2006, 12:30 PM
Hello,

I am running this on a site that runs 3.5.x. The "x" means I have been upgrading as they are released and I just reinstall the template edits. I do not get java errors and i have several other java scripts running on my site.

I actually am posting just to say that if anyone wants to apply this to the journal modification, it works just fine for Comments. I will try out the new entries and add to this if that works as well.

Edit the: journal_commentpage template. Add A and B as described.

Add C after:

<input type="submit" value="$vbphrase[submit_new_comment]" class="button" />

For new entries, edit the: journal_submitentry template. make the A and B edits as described and add C after:

<input type="submit" value="$vbphrase[submit_new_entry]" class="button" />

Both work fine and are running on my site.

ludachris
01-11-2006, 04:18 PM
Can someone please help me with the Javascript errors I'm getting in post #240.

apollooooooo
01-11-2006, 04:50 PM
HELP!!!!!!!!!

I Downloaded the Script and Uploaded it to my Site it got to about 40% Durning the Install Then it Say there was an Database Error now Nothing in my Site is Workin ( Also i Tryed to login in to phpmyadmin to maybe try and repair the database but i get the following Error

Fatal error: Call to undefined function: pma_reloadnavigation() in /usr/local/apache/htdocs/phpMyAdmin-2.6.3/header.inc.php on line 135

ludachris
01-13-2006, 01:47 PM
Just to let everyone know, this hack does not seem to work in 3.52 or 3.53 - I have it working on a 3.51 site with no problems, but the newer vb versions spit out javascript errors. I'd wait until this hack is updated to install it on a new version of vb.

AaronBBrown
01-13-2006, 01:55 PM
Just to let everyone know, this hack does not seem to work in 3.52 or 3.53 - I have it working on a 3.51 site with no problems, but the newer vb versions spit out javascript errors. I'd wait until this hack is updated to install it on a new version of vb.

It works fine for me in both 3.52 and 3.53. I do have to rerun the install script whenever I upgrade VB, though.

ludachris
01-13-2006, 02:06 PM
It works fine for me in both 3.52 and 3.53. I do have to rerun the install script whenever I upgrade VB, though.

Well I installed it new in 3.53 and it doesn't work. Sorry, since I couldn't get any support I just assumed it didn't work for any new versions.

I tried uninstalling everything except the dictionary and reinstalling. I double-checked all of the template settings. Still doesn't work.

I guess my previous statement is partly true - it doesn't work for all people running 3.53. It might work for some, but obviously not all.

SpadMan
01-13-2006, 02:14 PM
Worked for me in 3.5.2 and 3.5.3 as well. As described earlier in this thread, it had to be reinstalled each time I upgraded vBulletin.

ludachris
01-13-2006, 02:21 PM
Worked for me in 3.5.2 and 3.5.3 as well. As described earlier in this thread, it had to be reinstalled each time I upgraded vBulletin.

I wish that was the case for me - but as I said, I didn't install this hack until AFTER I upgraded my vb version, so this wouldn't apply to me. So I say again, there appears to be a bug in this hack. It's too bad the person who wrote it won't check this thread to get it worked out.

ludachris
01-13-2006, 02:31 PM
Just for the hell of it, I uninstalled the untire hack including the dictionary, and reinstalled using the install script. I even went through and reinstalled the code in the templates. It does not work. This has to be a bug, as I've done everything right and I still receive Javascript errors. I even downloaded the files again to make sure I have the most recent versions.

Buggy hack. I'd advise people to wait before they go filling up their database with a big dictionary until this gets sorted out.

Sorry, just to clarify, I'm having trouble with 3.52.

davidw
01-13-2006, 03:56 PM
I have 3.5.2 and what I had to do was uninstall the hack and then reinstall it (completely including template modifications) to get it to work - but I've not even had a single issue with it since the reinstall.