Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
vB Spell Details »»
vB Spell
Version: 0.10.3b, by cynix2 cynix2 is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.x Rating:
Released: 08-20-2006 Last Update: 06-22-2007 Installs: 252
DB Changes Uses Plugins
Additional Files  
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 me permission to release a 3.6.x version with updates.
This version should work with both 3.5.x and 3.6.x series.

Features:
  • Supports most recent versions of browsers. Tested on IE, Firefox, Mozilla/Netsacpe, Opera and Konqueror (Konqueror implies Safari, but please confirm Mac folks).
  • 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-reg.zip.
    • Upload DICTIONARY.DIC to your forum home directory.
    Alternate Install
    • Unzip dictionary-alt.zip.
    • Import the SQL files to your database.
  • Import product-spellvb.xml.
  • Go to AdminCP > vBulletin Options > vB Spell and edit your usergroup permisisons.
  • Template changes are now automatic. [accept for quickedit]
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-spellvb.xml.

To manually force the quickedit template to work with this mod:
postbit_quickedit
Find
Code:
		<if condition="is_browser('ie')">
			<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
			<td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
		</if>
Replace with
Code:
		<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_spelling(null)"><img onclick="spellCheck('3', '$editorid', '2');" src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
History:
0.10.x NyNe versions
v0.10.3b - 06/22/07:
Compensated for an issue brought up in this post.
v0.10.3 - 06/22/07:
Added a check to the product installer so it would not remove the vbspell table after just having created it.
Added $vboptions[bburl] to all template code that asks for files (this *might* fix the PhotoPost issues - no promises).
v0.10.2b - 08/26/06:
Fixed error in product installer (removed table prefix).
Changed all <? to <?php for php5 compatibility.
v0.10.2a - 08/26/06:
Removed alt product installer.
Product installer included now checks for dictionary file, if dictionary file is not found it continues installing.
Product installer no longer drops dictionary table before installing.
v0.10.2 - 08/22/06:
vbspell template is now XHTML 1.0 Transitional.
Fixed a version check for vbspell template (made compatible with 3.5.x).
vB Spell window should now open on top of other windows.
Removed table prefix for vbspell sql table (product installer includes code to remove old tables).
Included alternate installation method (Credit goes to Replicators for the SQL Install method).
v0.10.1 - 08/21/06:
Beta release for 3.6.x series.
Switched to product/plugin based installer.

0.9.x tamarian versions
v0.9.12 - 12/25/05:
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).
v0.9.11 - 11/02/05:
Fixes a bug with slashes in text.
v0.9.10 - 10/17/05:
Check for primary and secondary group for permission.
Bug fix for quoted words.
v0.9.9 - 09/13/05:
Bugfix for JS on IE with RC3.
v0.9.8 - 07/15/05:
Bugfix for JS code mismatch with template.
v0.9.7 - 07/14/05:
Initial release for vB 3.5 beta-4.

NOTE: The above section says NyNe versions, because I go by the name NyNe everywhere accept here.

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

Supporters / CoAuthors

Show Your Support

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

Comments
  #92  
Old 09-01-2006, 12:32 AM
badham badham is offline
 
Join Date: Sep 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
Do you know why the window minimizes straight away when it opens?

Yeah....<a target "vbspell" href=.........in front of the vbspell index command (example)should keep the window on top......My intall with 00.10.2b did not install the database either...and mine was a fresh install.......I had to create the vbspell database and then I loaded the alt dic in the database......works fine as far as the spell check now...........but it the window does minimize...I" am gonna play with the file and see if I can alter that.

badham
Reply With Quote
  #93  
Old 09-01-2006, 12:34 AM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AyeCapn
I don't appear to have a spell check button anywhere...
Did you look here? It tends to elude people, I was looking for the button that used to be next to the preview when I first installed it, then did a search of this thread and found out where it is.

Reply With Quote
  #94  
Old 09-01-2006, 07:02 AM
jw00dy's Avatar
jw00dy jw00dy is offline
 
Join Date: Dec 2004
Location: Utah
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had to uninstall this due to it messing up the reply/comments stuff in Photopost Pro. anyone know of a fix? I'd LOVE to use this.
Reply With Quote
  #95  
Old 09-01-2006, 12:35 PM
brvheart's Avatar
brvheart brvheart is offline
 
Join Date: Jul 2005
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed with no issues.....if I click the spell check buttong while no text is in the box.....it pops up...if I have typed and then press spell check I get the following:

Quote:
Database error in vBulletin 3.6.0:

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

MySQL Error : Table 'mmaworld.vbspell' doesn't exist
Error Number : 1146
Date : Friday, September 1st 2006 @ 09:25:45 AM
Script : http://www.mmaworld.org/vbspell.php
Referrer : http://www.mmaworld.org/newthread.php?do=newthread&f=18
IP Address :
Username :
Classname : vb_database
Reply With Quote
  #96  
Old 09-01-2006, 01:23 PM
badham badham is offline
 
Join Date: Sep 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brvheart
I installed with no issues.....if I click the spell check buttong while no text is in the box.....it pops up...if I have typed and then press spell check I get the following:
PHP Code:
CREATE TABLE vbspell (word varchar(30NOT NULLsound varchar(10NOT NULLUNIQUE KEY word (word), KEY sound (sound)); 

run this qerry and then querry in the the alt dictionary both via phpmyadmin. The problem is that the product does not create the table in alot of cases...if you will not remove anything, just run the create table script via SQL and then querry in the 10 sets of dictionary querries via SQL it will work like a charm

badham
Reply With Quote
  #97  
Old 09-01-2006, 02:09 PM
Pyrix Pyrix is offline
 
Join Date: Jul 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason the product's install code drops the vbspell table as soon as it's created it, unless you have a table prefix!

Code:
$db->hide_errors();
// Create vB Spell Table
$db->query_write("CREATE TABLE IF NOT EXISTS vbspell (
  word varchar(30) NOT NULL,
  sound varchar(10) NOT NULL,
  UNIQUE KEY word (word),
  KEY sound (sound)
) TYPE=MyISAM");

// Remove Old vB Spell Table
$db->query_write("DROP TABLE IF EXISTS " . TABLE_PREFIX . "vbspell");
I can only assume the coder was asleep when he wrote it

The product file needs to be editted and reattached here. The above code would work well if it was...

Code:
$db->hide_errors();

// Remove Old vB Spell Table
$db->query_write("DROP TABLE IF EXISTS " . TABLE_PREFIX . "vbspell");

// Create vB Spell Table
$db->query_write("CREATE TABLE IF NOT EXISTS vbspell (
  word varchar(30) NOT NULL,
  sound varchar(10) NOT NULL,
  UNIQUE KEY word (word),
  KEY sound (sound)
) TYPE=MyISAM");
This way the table is cleared, but a new one is created! Previously it would create a new table, then delete it straight away so your dictionary words had nowhere to go?!?!?!?

Bizarre

Ollie
Reply With Quote
  #98  
Old 09-01-2006, 02:18 PM
Pyrix Pyrix is offline
 
Join Date: Jul 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jw00dy
I had to uninstall this due to it messing up the reply/comments stuff in Photopost Pro. anyone know of a fix? I'd LOVE to use this.
Sure,

Go to Plugin Manager in your admin control panel and edit the plugin 'vB Spell Template Changes'.

Add the following line at the very top before anything else:

Code:
if ( VB3_INTEGRATION != "on" ) {
and the following after the very last line:

Code:
}
Because the VB3_INTEGRATION variable should be defined when the WYSIWIG editor is being called from photopost, it'll fail that condition and the code to include the spell check won't be called.

You won't get spell check in the gallery, but you can still use it in the forums without messing up the gallery.

Works for me anyway

Ollie
Reply With Quote
  #99  
Old 09-01-2006, 02:18 PM
brvheart's Avatar
brvheart brvheart is offline
 
Join Date: Jul 2005
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by badham
PHP Code:
CREATE TABLE vbspell (word varchar(30NOT NULLsound varchar(10NOT NULLUNIQUE KEY word (word), KEY sound (sound)); 

run this qerry and then querry in the the alt dictionary both via phpmyadmin. The problem is that the product does not create the table in alot of cases...if you will not remove anything, just run the create table script via SQL and then querry in the 10 sets of dictionary querries via SQL it will work like a charm

badham
ok thanks....I am sorry for the ignorance on this....but I do not know how to run that query....can I do it via admin panel? Again sorry...this is nothing that I have done before....
Reply With Quote
  #100  
Old 09-01-2006, 02:31 PM
brvheart's Avatar
brvheart brvheart is offline
 
Join Date: Jul 2005
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the first one...but do not know where or how to do this:

Quote:
and then querry in the the alt dictionary both via phpmyadmin

sorry
Reply With Quote
  #101  
Old 09-01-2006, 04:05 PM
badham badham is offline
 
Join Date: Sep 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brvheart
ok thanks....I am sorry for the ignorance on this....but I do not know how to run that query....can I do it via admin panel? Again sorry...this is nothing that I have done before....

Yes...go to ADMINCP>>Maintance>run SQL querry You can copy and paste the above code and the run the querry....it will ask you if you are sure...click continue. What you have done is made a table in your database called vbspell....now you can unzip the dictonary alt download. you will find 10 txt notepads...open one, copy it and the paste it in the run sql querry section and click run.....do this one at a time for all 10 and you will be good to go. It is easier if you use phpmyadmin...but since you are not familiar with it....this will work......you can also edit the prdouct file as noted above......but this may be safer in your case.

badham
Reply With Quote
Reply

Thread Tools

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 07:56 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.10685 seconds
  • Memory Usage 2,333KB
  • 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
  • (6)bbcode_code
  • (2)bbcode_php
  • (8)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