vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Spell Checker: PungoSpell for vBulletin3 Standard and WYSIWYG modes (https://vborg.vbsupport.ru/showthread.php?t=65737)

Boofo 06-27-2004 03:07 AM

Quote:

Originally Posted by tamarian
I actually changed them all to true and still had no luck. But I probably did it in haste, and didn't bother refreshing the browser when testing it.

Ahhhh, the infamous "didn't do a browser refresh". That'll get you every time. I run into the same thing all the time. ;)

Looking forward to the new version.

And I misspoke. You had them all set to true. But not is_moz. Sorry about that. ;)

Boofo 06-27-2004 09:28 AM

Where's the big update? I thought you were going to post it last night? ;)

tamarian 06-27-2004 03:49 PM

Version 1.4 is released, it has some cleanup and config options. The main new addition is that it will now scroll the window down to the next mis-spelled word. Browser-side tested with IE6 on XP Pro, and on Mozilla 1.7 and Firefox 0.9 on Linux and XP-Pro.

Enjoy

Boofo 06-27-2004 06:14 PM

Excellent upgrade, sir! The scrolling works great now! I don't know what more you could add to it to make it any better. The only thing I would like to see is maybe the suggestions box have the words in alphabetical order but I think that must be a php thing. ;)

tamarian 06-27-2004 06:30 PM

Quote:

Originally Posted by Boofo
Excellent upgrade, sir! The scrolling works great now! I don't know what more you could add to it to make it any better. The only thing I would like to see is maybe the suggestions box have the words in alphabetical order but I think that must be a php thing. ;)

What I would love to do, but currently don't have the time yet, is to combine PungoSpell with PhpSpell into a single solution. What I mean is to have the WYSIWYG features of PungoSpell, and add to it the MySQL dictionary of PhpSpell. This, I think, would make it more efficient, and eliminate all the aspell/pspell setup for the learn function, and no need to recompile or mess with PHP and/or aspell settings.

Boofo 06-27-2004 09:04 PM

Quote:

Originally Posted by tamarian
What I would love to do, but currently don't have the time yet, is to combine PungoSpell with PhpSpell into a single solution. What I mean is to have the WYSIWYG features of PungoSpell, and add to it the MySQL dictionary of PhpSpell. This, I think, would make it more efficient, and eliminate all the aspell/pspell setup for the learn function, and no need to recompile or mess with PHP and/or aspell settings.

Could you do the suggestions listing alphabetically that way?

tamarian 06-27-2004 10:16 PM

Quote:

Originally Posted by Boofo
Could you do the suggestions listing alphabetically that way?

Sorting the suggestions alphabetically wouldn't be hard, but it may be considered a bug by many, as it would alter the high/low score of the results :)

Boofo 06-27-2004 10:46 PM

Quote:

Originally Posted by tamarian
Sorting the suggestions alphabetically wouldn't be hard, but it may be considered a bug by many, as it would alter the high/low score of the results :)

How about this then? Have it where we can make a list of auto-changes to be made? Like chnage=change? That would help out a lot on words we always make a mistake on.

tamarian 06-28-2004 02:45 AM

Quote:

Originally Posted by Boofo
How about this then? Have it where we can make a list of auto-changes to be made? Like chnage=change? That would help out a lot on words we always make a mistake on.

If I understood your suggestion correctly (and I'm not sure I have, so please feel free to elaborate with examples:) ) this sounds like word pairs, which PSPELL can handle, I think.

Boofo 06-28-2004 02:46 AM

Quote:

Originally Posted by tamarian
If I understood your suggestion correctly (and I'm not sure I have, so please feel free to elaborate with examples:) ) this sounds like word pairs, which PSPELL can handle, I think.

How would you set it up to automatically do it?

tamarian 06-28-2004 03:24 AM

Quote:

Originally Posted by Boofo
How would you set it up to automatically do it?

It would basically require another file, similar to (or instead of) the custom.pws file:

http://ca2.php.net/manual/en/functio...onfig-repl.php

Boofo 06-28-2004 03:35 AM

Quote:

Originally Posted by tamarian
It would basically require another file, similar to (or instead of) the custom.pws file:

http://ca2.php.net/manual/en/functio...onfig-repl.php

Ok, how would we set the format of the custom.repl file?

tamarian 06-28-2004 02:58 PM

Quote:

Originally Posted by Boofo
Ok, how would we set the format of the custom.repl file?

It will be created by the function php_save_wordlist() when called after php_spell_replacement(). That's according to the manual, but I haven't used it yet.

Boofo 06-28-2004 03:09 PM

Quote:

Originally Posted by tamarian
It will be created by the function php_save_wordlist() when called after php_spell_replacement(). That's according to the manual, but I haven't used it yet.

How do we set it up? I'll test it out if you can help me set it up.

teksigns 06-28-2004 03:45 PM

Using 1.4
Everything works except the learn feature .....


im running XP-pro on the server .....


i have went to my aspell directory and typed :

aspell config


i get this for lang:

Code:

# lang descrip: language code
# lang default: <language-tag>
# lang current: en_US


# language-tag descrip: deprecated, use lang instead
# language-tag default: !lang
# language-tag current: en_US


# local-data-dir descrip: location of local language data files
# local-data-dir default: <actual-dict-dir>
# local-data-dir current: C:/Aspell/dict/


# master descrip: base name of the main dictionary to use
# master default:
# master current:



i have tried adding :

en_US to my config and to custom.pws

i have also tried:
en
english

i have also tried changing :
$customwordlist = "custom.pws";

$customwordlist = "c:/htdocs/forum/custom.pws";


however im still getting :


Code:

Warning: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en_US". in C:\htdocs\forum\checkspelling.php on line 28

Warning: 0 is not a PSPELL result index in C:\htdocs\forum\checkspelling.php on line 85

Warning: 0 is not a PSPELL result index in C:\htdocs\forum\checkspelling.php on line 88

Warning: Invalid argument supplied for foreach() in C:\htdocs\forum\checkspelling.php on line 90

Warning: 0 is not a PSPELL result index in C:\htdocs\forum\checkspelling.php on line 85

Warning: 0 is not a PSPELL result index in C:\htdocs\forum\checkspelling.php on line 88

Warning: Invalid argument supplied for foreach() in C:\htdocs\forum\checkspelling.php on line 90

Warning: 0 is not a PSPELL result index in C:\htdocs\forum\checkspelling.php on line 85

Warning: 0 is not a PSPELL result index in C:\htdocs\forum\checkspelling.php on line 88

Warning: Invalid argument supplied for foreach() in C:\htdocs\forum\checkspelling.php on line 90

Warning: 0 is not a PSPELL result index in C:\htdocs\forum\checkspelling.php on line 85

Warning: 0 is not a PSPELL result index in C:\htdocs\forum\checkspelling.php on line 88

Warning: Invalid argument supplied for foreach() in C:\htdocs\forum\checkspelling.php on line 90



with lean disabled it works fine with no errors ......


how can i get learn to work ?

help !!!!!!!!

Boofo 06-28-2004 05:05 PM

Have you tried english_US?

teksigns 06-28-2004 05:13 PM

Quote:

Originally Posted by Boofo
Have you tried english_US?


just tried :

english_US


got same error but this time shows "en" in the error
even though i have english_US in both places ......


Code:

Warning: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en". in C:\htdocs\forum\checkspelling.php on line 28

tamarian 06-28-2004 07:50 PM

Teksigns, I'm not sure if this will work, but try using en only in the config file, and en_US in the custom.pws.

The custom.pws and the learn function of psell as it relates to using aspell is very confusing, and not well documented. So my best advice is trial and error, and if all fails, disable learning, or use PHPSpell.

tamarian 06-28-2004 07:52 PM

Quote:

Originally Posted by Boofo
How do we set it up? I'll test it out if you can help me set it up.

I casnnot test before I code it, and I currently don't have the time to try that.

But if you're interested, you can try hacking it usding the functions listed in the PHP manual.

Boofo 07-01-2004 07:34 PM

In this new version, the learn window does not close until you close the spell check window. Any fix for this?

Chris Blount 07-01-2004 07:48 PM

Is there a way to manually populate the "custom.pws" file if we can't get the learning feature to work?

tamarian 07-01-2004 07:53 PM

Quote:

Originally Posted by Boofo
In this new version, the learn window does not close until you close the spell check window. Any fix for this?

It's working fine for me.... Are you talking about the little popup when you press the "learn" button? That one closes automaticaaly, unless there's a browser restriction...

tamarian 07-01-2004 07:56 PM

Quote:

Originally Posted by Chris Blount
Is there a way to manually populate the "custom.pws" file if we can't get the learning feature to work?

I don't think so. You can add words by typing the file directly, one word per line, and only alpha characters, no dashes or apostrophes, etc. but for PSPELL to use it, it will need to initialize with it...

Boofo 07-01-2004 08:19 PM

Quote:

Originally Posted by tamarian
It's working fine for me.... Are you talking about the little popup when you press the "learn" button? That one closes automaticaaly, unless there's a browser restriction...

Yes, that's the one. It worked fine in the last version. This version, it stays open.

tamarian 07-02-2004 12:32 PM

Quote:

Originally Posted by Boofo
Yes, that's the one. It worked fine in the last version. This version, it stays open.

I've just tested it in IE6 and FireFox, and it's working fine for me. The code for closing it has not changed, so it may be a browser setting. Can you try it on another system/browser?

Boofo 07-02-2004 01:07 PM

I am using the same browser as I always have and it worked fine under version 1.3. Somehow something has changed somewhere because it no longer closes the learn window under 1.4. And I have tried IE AND firefox and I get the same result. I have not touced any settings in IE or Firefox since way before I ever installed version 1.3. Something has changed somewhere in the new version.

tamarian 07-03-2004 12:26 AM

Quote:

Originally Posted by Boofo
I am using the same browser as I always have and it worked fine under version 1.3. Somehow something has changed somewhere because it no longer closes the learn window under 1.4. And I have tried IE AND firefox and I get the same result. I have not touced any settings in IE or Firefox since way before I ever installed version 1.3. Something has changed somewhere in the new version.

I was not able to duplicate this on my test environment. It always closes properly.

Post your config file, and I'll try to test with it.

Boofo 07-03-2004 02:54 AM

Quote:

Originally Posted by tamarian
I was not able to duplicate this on my test environment. It always closes properly.

Post your config file, and I'll try to test with it.

[QUOTE]<?
include('global.php');
// Config section
$my_lang = "en"; // set the language you want, make sure you have the correct aspell dictionary on your system
// Access restriction options
$allow_guests = 0; // Change to 1 if you allow guests to post and use the spell checker
$restrict_groups = 0; // Change to 1 to enable access restriction by group id
$allowd_groups = array (2, 5, 6, 7); // usergroups who can access the spell checker
// Learn function options
$customwordlist = "custom.pws"; // make sure this file is readable by your apache user
$learn_enabled = 1; // set to 1 to enable the learn feature. Make sure you test first, to ensure your server setup allows this.
$restrict_learn_function = 0; // set to 1 if you want to restrict which usergroup id may add words to your dictionary.
$word_list_maintainers = array (2, 5, 6, 7); // usergroups that are allowed to use the "Learn" feature
//
// Ignore options
$ignore_quotes = 1; // 1 means ignore the
Quote:

block, 0 means spell check within quotes
$ignore_code = 1; // Same but for the [CODE] tag
$ignore_php = 1; // Same, but for the [PHP] tag
// end config section
?>

Delirion 07-03-2004 12:30 PM

I'm probably missing something.... when I try to spellcheck something, I get the popup window with the following error message:

Fatal error: Call to undefined function: pspell_config_create() in /home/swurp3c/public_html/testforum/checkspelling.php on line 49

Line 49 is $pspell_config = pspell_config_create("$my_lang");

tamarian 07-03-2004 02:55 PM

[QUOTE=Boofo]
Quote:

<?
include('global.php');
// Config section

..... snip
It's still working fine on bothe IE and FireFox on my environment.

tamarian 07-03-2004 02:57 PM

Quote:

Originally Posted by Delirion
I'm probably missing something.... when I try to spellcheck something, I get the popup window with the following error message:


Fatal error: Call to undefined function: pspell_config_create() in /home/swurp3c/public_html/testforum/checkspelling.php on line 49

Line 49 is $pspell_config = pspell_config_create("$my_lang");

Do you have PSPELL and aspell installed? PSPELL needs to be compiled into your php.

Boofo 07-03-2004 03:13 PM

Quote:

Originally Posted by tamarian
It's still working fine on bothe IE and FireFox on my environment.

Can you pm me your files and I will try those?

Delirion 07-03-2004 05:52 PM

Pspell has been compiled into my PHP.

I PMed you about the other thing...

tamarian 07-03-2004 06:37 PM

Quote:

Originally Posted by Boofo
Can you pm me your files and I will try those?

The attached zip for 1.4 is identical to my current files.

Baptizer 07-05-2004 02:15 PM

Quote:

v1.4
1. Fixed scrolling, so the spelling window will scroll to the next mis-spelled word.
2. Changed config defaults to allow the most common configuration. The "Learn" function is turned of by default. Make sure you test it before tunrning it on.
3. Re-worded comments on config options, hopefully they will now make sense.
Tamarian,
Everything works perfectly on my site except for the learn function. I tried changing the language as you (and a few others) suggested throughout this thread. I am wondering if the problem is because of something else. In your original thread, you mention to 'test' the learn function before turning it on. Exactly how do you do that? Any help would be great.

tamarian 07-05-2004 03:37 PM

Quote:

Originally Posted by Baptizer
In your original thread, you mention to 'test' the learn function before turning it on. Exactly how do you do that? Any help would be great.

There are several ways of testing. The way I did it was through template conditionals so only admins can see the spell check buttons. This way you can test and fine tune all the options, and when done, remove the template conditionals, which in effect "releases" the option to the members.

Another way is to test it on a test forum on the same server, or better yet, on a home server, so you can remove/reinstall aspell and can change things until they work :)

Boofo 07-05-2004 03:57 PM

Quote:

Originally Posted by tamarian
The attached zip for 1.4 is identical to my current files.

Then I guess it is just me. Figures.

Baptizer 07-05-2004 04:27 PM

Thanks Tamarian. That clears things up. Any other ideas as to why the learn function won't work? Anything else I should check? Again the spellchecking part works perfectly (once in a BLUE MOON I'll see the 'contact administrator' error, but that is rare), it is just that darn learning feature that I want to work sooo bad :(


EDIT: Tamarian, any idea how I can get the learn pop-up not to close? THe only reason I am asking is because on one occasion the thing did not close SUPER FAST and I was able to get a glimpse of the text in it. It said 'WARNING' and some other stuff, but it closed so quickly I didnt get the rest. ANy idea?

EDIT 2: Ugh, got it to work!! Forgot to set file permissions :(

corvettecrew 07-13-2004 02:14 AM

On Boofo's site the Spell Check Button looks just like the other buttons.

https://vborg.vbsupport.ru/

Mine looks like this.

https://vborg.vbsupport.ru/

How do I get the buttons to look the same?

tamarian 07-13-2004 02:28 AM

Quote:

Originally Posted by corvettecrew
On Boofo's site the Spell Check Button looks just like the other buttons.

http://www.corvettecrew.com/forums/i...heck_boofo.gif

Mine looks like this.

http://www.corvettecrew.com/forums/i...rvettecrew.gif

How do I get the buttons to look the same?

What do you have in your template for the spell check button?

I think using "class ="button"" should do it...


All times are GMT. The time now is 05:47 AM.

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

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

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

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