Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 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: 1.3, by Replicators Replicators is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 05-30-2008 Last Update: 07-14-2008 Installs: 64
DB Changes Uses Plugins Template Edits Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

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: This mod was originally developed by tamarian for vB 3.5.x. With the release of 3.6.x the installer stopped working for fresh installs and the template changes were considerably out of date, tamarian gave cynix2 permission to release a 3.6.x version with updates. I have now carried it over to 3.7.x and will support it to the best of my ability.
This version should work with 3.5.x, 3.6.x, and 3.7.x series.

Features:
  • Supports most recent versions of browsers. Firefox, Mozilla/Netsacpe, Opera and Konqueror (Konqueror implies Safari, but please confirm Mac folks). Currently does NOT work in IE 7, if anybody can look through the code and know of a way to fix the mod to work in IE, then please send me a pm.
  • Learn Feature uses cookies, so it won't increase the database size.
  • Admin panel options.
  • Spell Check button appears anywhere there is a WYSIWYG Enhanced or Standard Editor Toolbar [includes quickreply but not quickedit].
  • Skips quoted text and other tags (PHP, code, etc.).
  • Usergroup permisisons.
  • Template based interface, and uses your default style.
  • Link buttons (Thesarus and Lookup) with links to Merriam Webster's online thesarus and dictionary links with the suggestion for misspelled words.
Installation:
  • Unzip main package.
  • Upload the contents of the 'upload' folder to your forum home directory.
    Regular Install:
    • Unzip Dictionary.zip.
    • Upload DICTIONARY.DIC to your forum home directory.
    Alternate Install
    • Unzip Manual-SQL.zip or Split-SQL.zip.
    • Import the SQL files to your database.
  • Import product-vbspell37.xml.
  • Go to AdminCP > vBulletin Options > vB Spell and edit your usergroup permisisons.
  • Template changes are now automatic. [need tms]
Q: What is the Alternate Install method for?
A: If you are having problems with the Regular Install (such as your dictionary import freezes at x%) then you should consider using the Alternate Install. If neither of these methods work for you then there might be an issue with your server host.

Upgrading:
  • Unzip main package.
  • Upload the contents of the 'upload' folder to your forum home directory.
  • Import product-vbspell37.xml.
To make template editing less tedious i have made use of Andreas Template Modification System found here. If you install tms before applying this mod, all template edits will be done for you. If you do not want tms installed, then i have supplied easier to understand template editing instructions inside the mod zip file.

IMPORTANT: If you decide to use tms and have the templates be automatically installed, then you need to go into your styles and save the following templates.

editpost, newreply, newthread, album_pictureview, calendar_edit, visitormessage_editor, socialgroups_editor, USERCP_SHELL, SHOWTHREAD, postbit_quickedit, pm_newpm, picturecomment_form, and modifysignature

Just go into the templates and save it without making any changes for each skin. TMS will not edit any unmodified templates, so if any of them templates are already red, then they are already modified and you don't need to save them.

HISTORY:
1.1 - Added use of TMS to make template modification easier.
1.2 - Added tehtide's fix from here
1.3 - Made some changes in the product, and made manual template instructions a little less tedious, but there is no easy way of doing it unfortunantly. You will need to redo the template edits that go above </head>.

Supporters / CoAuthors

Show Your Support

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

Comments
  #32  
Old 06-11-2008, 12:10 PM
tehtide tehtide is offline
 
Join Date: Dec 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it to work by doing the following:

In the "vB Spell Template Changes" plugin change

Code:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="$vboptions[bburl]/vbspell.php">
to

Code:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
Reply With Quote
  #33  
Old 06-11-2008, 05:07 PM
Megatr0n Megatr0n is offline
 
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tehtide View Post
I got it to work by doing the following:

In the "vB Spell Template Changes" plugin change

Code:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="$vboptions[bburl]/vbspell.php">
to

Code:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
What error were you getting before?
Reply With Quote
  #34  
Old 06-15-2008, 01:00 PM
Replicators's Avatar
Replicators Replicators is offline
 
Join Date: Jul 2005
Location: Jamestown, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm gonna need all of your help into making this mod work at 100%, as i am not the most knowledgeable at coding and such.

The only issue i see now is fixing it for IE as it will not work for internet explorer at this time.
Reply With Quote
  #35  
Old 06-15-2008, 11:31 PM
Scandal's Avatar
Scandal Scandal is offline
 
Join Date: Dec 2005
Location: Athens / Greece
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that this spell check system is increase the server's load when the dictionary file is big.

With english dictionary it works fine.
I try to re-install it with a greek dictionary* (7mb - when I import it to db the table was 14mb)...
The system accepts the dictionary and works ok on spelling BUT it want a lot of time and cpu usage to spelling!
eg, for 1 word needs 35sec (!!!) - for 15 lines of text needs 220+ seconds (!!! ) and the cpu usage on those secs was 90-100% (I run mysql and apache on my PC for tests).

Is there any way to fix this problem?
why it is so server intensive with this dic?


*i think that the dictionary file is ok... it is a text file with a lot of words, one below the other, without spaces (also, the words recognized ok from the vbspell on "suggestions" etc )

Thanks!!

Sorry for my bad english,


-peter
Reply With Quote
  #36  
Old 06-16-2008, 11:54 AM
Scandal's Avatar
Scandal Scandal is offline
 
Join Date: Dec 2005
Location: Athens / Greece
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm
I saw that the table "sound" has no data when i install greek dictionary...
I think that the metaphone algorithm doesn't support greek

I'll try to import data on table "sound" with the words of greek dictionary WITHOUT vowels... :erm:




-petros
Reply With Quote
  #37  
Old 06-21-2008, 04:10 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've run into a error, at least, in IE. The Spell Checker doesn't open and I get a 'spell_formname' is null or not an object error message in Quick Reply and in New Reply and 'document.forms[...].message' is null or not an object error message in the Visitor Reply form. Is this as simple as just having done the template edits wrong?
Reply With Quote
  #38  
Old 06-21-2008, 09:51 AM
bairy bairy is offline
 
Join Date: Oct 2005
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the same error in IE7. I'm gonna see if I can work it out.

Edit: Had a quick look. It seems that this line:
h_spellform.spell_formname.value = formName;

confuses IE. It works in Firefox but IE7 doesn't recognise "spell_formname" as part of the form object.

I'm afraid someone with more knowledge of javascript OO will have to have a look.

Also Replicators I found a bug, don't know if it's just my board. Within a thread if you click edit on any of the posts then the spell check button, it will check the text in the quickreply at the bottom. I'm guessing there's a mix up over the id of the textarea it should be reading.
Reply With Quote
  #39  
Old 07-15-2008, 04:01 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually like editing templates manually - It makes me feel like I'm actually doing something LOL - But I tell ya - these template edit instructions for vBSpell is one of the tedious set of instructions I've EVER seen... It'd be nice for you to at least order the instructions so that you're not coming back 3 or 4 times to edit the same template... Also may want to make clear that in some templates you will be making the same edit anywhere from 1 - 4 times LOL

At anyrate - Thanx very much for the sharing REPLICATORS. It would be wonderful to have spell check especially for a Forum like JPiC which specializes in the sharing of literature & poetry. I have an issue though - It's odd really - I've done the template edits - followed the instructions to the letter = none of the Spell Check buttons work when clicked.

Suggestions & Support appreciated

Jacquii.
Reply With Quote
  #40  
Old 07-15-2008, 04:20 PM
Megatr0n Megatr0n is offline
 
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has this hack worked for anyone?
Reply With Quote
  #41  
Old 07-15-2008, 05:19 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually - it doesn't seem compatible with Opera 9.5
In FF 3 - I'm getting a database error when creating thread. Quick Edit & edit seems to work well - Haven't tested in IE and I don't expect that I will.

Quote:
Database error in vBulletin 3.7.2:

Invalid SQL:
SELECT word FROM vbspell WHERE word = 'haha';

MySQL Error : Table '#####_forums.vbspell' doesn't exist
Error Number : 1146
Request Date : Tuesday, July 15th 2008 @ 01:15:40 PM
Error Date : Tuesday, July 15th 2008 @ 01:15:43 PM
Script : http://jpicforum.info/vbspell.php
Referrer : http://jpicforum.info/newthread.php?do=newthread&f=34
IP Address : #####
Username : MsJacquiiC
Classname : vB_Database
MySQL Version : 4.1.20-log
Any ideas how to remedy the database error?

Jacquii.
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 12:01 AM.


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.04680 seconds
  • Memory Usage 2,325KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (2)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
  • (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