Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Spell :: Spell Checker in WYSIWYG and Standard Modes Details »»
vB Spell :: Spell Checker in WYSIWYG and Standard Modes
Version: 0.9.12, by tamarian tamarian is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 07-13-2005 Last Update: 12-25-2005 Installs: 262
Template Edits
Additional Files  
No support by the author.

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

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....9&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:
HTML Code:
</head>
Add before:
HTML Code:
<script src="vbspell.js"></script>
B. Find: (or anywhere in the body)
HTML Code:
$navbar
Add after:
HTML Code:
<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:
HTML Code:
		<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:
HTML Code:
<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:
HTML Code:
<input type="button" class="button" value="Spell Check" onClick="spellCheck('qrform', '$editorid', '2');" />
Right after this (also in showthread):
HTML Code:
			<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):
HTML Code:
		<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', '$editorid', '2');" />
After this:
HTML Code:
		<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 if you have installed this mod.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #322  
Old 04-06-2006, 12:52 AM
boduzapho boduzapho is offline
 
Join Date: Feb 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

everything works but the check its self. I click the spell check the box pops up and i get another box saying spell checking is complete, even when i know there are errors.

and suggestions?
Reply With Quote
  #323  
Old 04-06-2006, 01:43 AM
gizmo4321 gizmo4321 is offline
 
Join Date: Nov 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boduzapho
everything works but the check its self. I click the spell check the box pops up and i get another box saying spell checking is complete, even when i know there are errors.

and suggestions?
I had the same problem. Ran the uninstall, then manually dropped the vBSpell table from the DB, then re-ran the install, and all is well. Running 3.5.4 with no problems. I did have to revert several of my templates, which caused me to have to do the vBSpell edits again, but that was expected.
Reply With Quote
  #324  
Old 04-07-2006, 02:36 AM
Acedeal Acedeal is offline
 
Join Date: Jul 2005
Location: Texas
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

unable to install due to time out issues--
dies on step 5 where it tries to import all the words into the table-
even increase the time outs from 60 to 360 and it still a nightmare to install-
uses will have to do without a spell checker untill we get the option of installing the database from the mysql command line, or a least the option of skiping steps and letting us install the database manually.

-had it running in 3.07 perfectly-
this install just needs to handled a little differently-
Reply With Quote
  #325  
Old 04-07-2006, 07:45 PM
Sir_Yaro's Avatar
Sir_Yaro Sir_Yaro is offline
 
Join Date: Jun 2004
Location: Ireland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi.
How and where this module is interpreting non latin chars?
I couldn't find anything about code page or something similar.
Generally everything is working very well for polish language but polish letters are interpreted as spaces between words (or sth like that)

And second thing. What can I do if my dictionary take about 38MB ?? There is no way to import it via provided php interface... As a matter of fact I just hung up my provider's database while I was trying to do it...
Reply With Quote
  #326  
Old 04-08-2006, 01:44 AM
Rukbat Rukbat is offline
 
Join Date: Feb 2006
Location: Mississippi Gulf Coast
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed on 3.5.4 and so far using Mozilla it's working great, I haven't checked in IE yet. However...
for Quick Reply in the SHOWTHREAD template I had to use:
Code:
<input type="submit" class="button" value="$vbphrase[go_advanced]" accesskey="x" title="(Alt + X)" name="preview" tabindex="3" id="qr_preview" onclick="clickedelm = this.value" />
which is the original code for the 'go advanced' button instead of
Code:
<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" />
If I used both, I had two 'go advanced' buttons the spell check worked but neither 'go advanced' worked, it simply posted what I'd written instead of going to the advanced editor;
If I only used the 2nd one (....onclick="this.form.clicedelm.value...) the spell check worked but when clicking 'go advanced', again it simply posted instead of going to the advanced editor;
When I put the *original* 'go advaced' code AFTER the 'spell check' button code (it was originally right after the 'post quick reply' button code), the spell check worked AND it properly went to the advanced editor when 'go advanced' was clicked.
Now have I thoroughly confused everybody? lol
I love this, and so will my members

edit: checked in IE6 and seems to be working fine.... in edit, new thread, post reply, advanced, and quick reply
Reply With Quote
  #327  
Old 04-08-2006, 10:59 AM
Sir_Yaro's Avatar
Sir_Yaro Sir_Yaro is offline
 
Join Date: Jun 2004
Location: Ireland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Polish users can find excelent dictionary here:
http://forum.mandriva.org.pl/~yaro/pl_huge.zip
or here
http://www.winedt.org/Dict/pl_huge.zip

it contains 3.024.847 words
Unfortunatelly provided php interface is completely useless for such huge dictionary. Actually it has a problems even with ~5-10MB dictionaries. If your database is not on 127.0.0.1 (localhost) I think you will not be ever able to put your dictionary to the database.
That's why I wrote bash script to do it instead of php one. It's slow (2-4x slower than php one) but it works!
I've removed function metaphone() because I havent find any application for it and I've no idea how to generate it in bash.

Code:
#!/bin/bash

ip="127.0.0.1"
database="test"
table="test"
user="root"
password=""
source_file="pl.dic.new"

clear

records=`wc -l $source_file |tr -cs '[a-zA-Z0-9.]' '[\n*]'|head -n 1`
echo "No. of records is $records"
echo ""

date
echo ""
#make table empty
mysql -h $ip -u $user --password="$password" -e "TRUNCATE TABLE $table" $database

# change the IFS variable to ignore whitespace
ifs=$IFS
IFS='\
'

IFS=$ifs

echo "Transfering data"

while read A; do
mysql -h $ip -u $user --password="$password" -e "INSERT INTO $table VALUES (\"$A\",\"XYZ\")" $database >/dev/null 2>&1
counter=$[counter + 1]
tput cup 13 0;echo "$counter (of $records) records done..."
done< $source_file

echo ""
echo "All done"
echo ""
date

script fixed. Now its working much, much faster.
Reply With Quote
  #328  
Old 04-08-2006, 02:06 PM
rckirk's Avatar
rckirk rckirk is offline
 
Join Date: Feb 2006
Location: Vermont, USA
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have uploaded the vB Spell files, how do I "run vbspell_install.php"

Thanks.
Reply With Quote
  #329  
Old 04-08-2006, 03:54 PM
rckirk's Avatar
rckirk rckirk is offline
 
Join Date: Feb 2006
Location: Vermont, USA
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE=rckirk@adelphia]I have uploaded the vB Spell files, how do I "run vbspell_install.php"

I am a new user and have not installed any extensins yet. I am not a technician, so any help on this would be appreciated.

Thanks!
Reply With Quote
  #330  
Old 04-10-2006, 01:51 AM
username12 username12 is offline
 
Join Date: Jan 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like step 5 just takes persistence. Finally got past it after 4 tries.
Reply With Quote
  #331  
Old 04-11-2006, 02:43 AM
arossphoto arossphoto is offline
 
Join Date: Jan 2006
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed using the xml file from this topic and it's working great in the new topic, reply and quick reply.

The only small problem I noticed was the size of the window that it opens in. It is too small and cuts off the side of the spell checker.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04880 seconds
  • Memory Usage 2,339KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (10)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete