vb.org Archive

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

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

Quote:

Originally Posted by Loukrhtia
I attempted to complete the 5th step twice without the @, now where can I find that HTTP log you are talking about?

[high]* Loukrhtia feels like a complete n00b[/high]

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

Quote:

Originally Posted by tamarian
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

Quote:

Originally Posted by Loukrhtia
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

Quote:

Originally Posted by Loukrhtia
:( :( :(

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

Quote:

Originally Posted by tamarian
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

Quote:

Originally Posted by Loukrhtia
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

Quote:

Originally Posted by Loukrhtia
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:

PHP Code:

$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:

PHP Code:

/*
$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

Quote:

Originally Posted by Loukrhtia
...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

Quote:

Originally Posted by Loukrhtia
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

Quote:

Originally Posted by Loukrhtia
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

Quote:

Originally Posted by tamarian
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

Quote:

Originally Posted by Loukrhtia
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

Quote:

Originally Posted by tamarian
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

Quote:

Originally Posted by ProperMethodz
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

Quote:

Originally Posted by Parker Clack
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:

HTML Code:

                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

Quote:

Originally Posted by dsmcd01
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

Quote:

Originally Posted by tamarian
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

Quote:

Originally Posted by TosaInu
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

Quote:

Originally Posted by TosaInu
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

Quote:

Originally Posted by TosaInu
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

Quote:

Originally Posted by TosaInu
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

Quote:

Originally Posted by dsmcd01
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:

PHP Code:

preg_match_all "/" $ignore_sets "\[[^\]]+\]|[[:alpha:]']+|<[^>]+>|&[^;\ ]+;/im"$mystr$alphasPREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER); 

Replace with:
PHP Code:

preg_match_all "/" $ignore_sets "\[[^\]]+\]|[[:alpha:]]+|<[^>]+>|&[^;\ ]+;/im"$mystr$alphasPREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER); 



All times are GMT. The time now is 02:21 PM.

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.01750 seconds
  • Memory Usage 1,849KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (22)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