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)

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

Code:

<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

Quote:

Originally Posted by RGSMDNR
how do i make the pop up window bigger? the right hand side is cut off slightly.

Edit this in vbspell.js:
HTML Code:

                openSpellWin(640, 480);

tamarian 11-25-2005 03:38 PM

Quote:

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

Code:

<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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

Originally Posted by utw-Mephisto
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

Quote:

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

Quote:

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

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

Quote:

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


All times are GMT. The time now is 10:45 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.01603 seconds
  • Memory Usage 1,838KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (13)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