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)

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 03:56 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.01365 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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