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

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
  #212  
Old 10-25-2006, 11:07 AM
4number8 4number8 is offline
 
Join Date: Nov 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To add the spell check button, do this to your modifysignature templete,
Find:
Code:
<input type="submit" class="button" value="$vbphrase[preview_signature]" name="preview" accesskey="r" tabindex="1" />
Below this add:
Code:
<input type="button" class="button" value="Spell Check" onClick="spellCheck('qrform', '$editorid', '2');" />
That should have your spell check buttons everywhere except for the Calendar, if anyone wants this and don't know how, let me know.
Reply With Quote
  #213  
Old 10-25-2006, 11:55 AM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R1lover
we still need the pop up window fixed......

anyone want to tackle that one?

thank you in advance
I agree, this popup issue is a right pain in the arse. It is making a great hack an annoying one. If someone can actually fix it in the actual hack so that we can all perhaps to an update to fix the issue and keep the window open and on top of the page when you use the spell check. It gets lost in the nav bar at the bottom of the browser at present.
Reply With Quote
  #214  
Old 10-25-2006, 01:01 PM
baze22 baze22 is offline
 
Join Date: Apr 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by perfphysio
I agree, this popup issue is a right pain in the arse. It is making a great hack an annoying one. If someone can actually fix it in the actual hack so that we can all perhaps to an update to fix the issue and keep the window open and on top of the page when you use the spell check. It gets lost in the nav bar at the bottom of the browser at present.
I don't know that it's something that can be fixed in the hack. The problem seems to have something to do with the javascript for the editor.

baze
Reply With Quote
  #215  
Old 10-25-2006, 01:48 PM
baze22 baze22 is offline
 
Join Date: Apr 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by baze22
I don't know that it's something that can be fixed in the hack. The problem seems to have something to do with the javascript for the editor.

baze
Playing around, I found a workaround for it popping under. In the vbspell_iframe.php file:

find this:
Code:
<body class="wysiwyg" onLoad="assignSelf(); window.parent.startsp();" id="theBody">
replace with:
Code:
<body class="wysiwyg" onLoad="assignSelf(); window.parent.startsp(); window.focus();" onblur="window.focus();" id="theBody">
It still pops under initially but then comes back to the top. Like I said, it's a workaround.

baze
Reply With Quote
  #216  
Old 10-27-2006, 03:00 PM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by baze22
I don't know that it's something that can be fixed in the hack. The problem seems to have something to do with the javascript for the editor.

baze
Yeah I am not a coder but I do notice that in my Squirrelmail email system, the spell check works in almost the same way and this script forces the spellcheck window to appear on top. Maybe someone who is a coder can take a look at this opensource code to see what they do?
Reply With Quote
  #217  
Old 10-28-2006, 02:22 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this and uploaded DICTIONARY.DIC to my forum home.

I tested the thread with various spelling errors, it gave no suggestions or change to words at all, even for words like churc (church), hly (holy), mke (make), etc.

I reuploaded the product and now I get db errors when clicking the spell icon

Code:
Database error in vBulletin 3.6.2:

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

MySQL Error  : Table 'user_vbulletin.vbspell' doesn't exist
Error Number : 1146
Date         : Saturday, October 28th 2006 @ 10:24:25 AM
Script       : http://www.talkjesus.com/vbspell.php
Referrer     : http://www.talkjesus.com/newthread.php?do=newthread&f=51
IP Address   : xxx
Username     : user
Classname    : vb_database
Reply With Quote
  #218  
Old 10-30-2006, 10:30 AM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chadi
I installed this and uploaded DICTIONARY.DIC to my forum home.

I tested the thread with various spelling errors, it gave no suggestions or change to words at all, even for words like churc (church), hly (holy), mke (make), etc.

I reuploaded the product and now I get db errors when clicking the spell icon

Code:
Database error in vBulletin 3.6.2:

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

MySQL Error  : Table 'user_vbulletin.vbspell' doesn't exist
Error Number : 1146
Date         : Saturday, October 28th 2006 @ 10:24:25 AM
Script       : http://www.talkjesus.com/vbspell.php
Referrer     : http://www.talkjesus.com/newthread.php?do=newthread&f=51
IP Address   : xxx
Username     : user
Classname    : vb_database
same here
Reply With Quote
  #219  
Old 10-30-2006, 06:10 PM
gothicuser's Avatar
gothicuser gothicuser is offline
 
Join Date: Apr 2004
Location: Kernow, Nr. UK
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Benj
same here
Check this
Cured it for me
Reply With Quote
  #220  
Old 10-30-2006, 08:30 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by baze22
Playing around, I found a workaround for it popping under. In the vbspell_iframe.php file:

find this:
Code:
<body class="wysiwyg" onLoad="assignSelf(); window.parent.startsp();" id="theBody">
replace with:
Code:
<body class="wysiwyg" onLoad="assignSelf(); window.parent.startsp(); window.focus();" onblur="window.focus();" id="theBody">
It still pops under initially but then comes back to the top. Like I said, it's a workaround.

baze
Does everyone having these popunder problems also use the advanced wysiwyg editor - or the standard editor? I've noted a lot of problems with the advanced and therefore don't use it - perhaps this might be a clue to the problem.
Reply With Quote
  #221  
Old 11-03-2006, 03:42 PM
pewp pewp is offline
 
Join Date: Aug 2005
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did everything the way the directions said... uploaded all the vbspell and dictionary.dic to the forums home directory then installed the product and got this error:
Code:
Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
	(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
	('1', '5', 'vB Spell Template Changes', 'parse_templates', '$vbulletin->templatecache[\'headinclude\'] .= addslashes(\'<script type=\"text/javascript\" src=\"vbspell.js\"></script>\');\r\n$vBSpell_temp_header = <<< html\r\n<form name=\"spell_form\" id=\"spell_form\" method=\"POST\" target=\"spellWindow\" action=\"vbspell.php\">\r\n<input type=\"hidden\" name=\"spell_formname\" value=\"\" />\r\n<input type=\"hidden\" name=\"spell_fieldname\" value=\"\" />\r\n<input type=\"hidden\" name=\"spellstring\" value=\"\" />\r\n</form>\r\nhtml;\r\n$vbulletin->templatecache[\'header\'] .= addslashes($vBSpell_temp_header);\r\n\r\n$vBSpell_search_editor_toolbar_on = array(\"is_browser(\'ie\') AND !is_browser(\'mac\')\", \"_cmd_spelling\\\\\\\"><img\");\r\n$vBSpell_replace_editor_toolbar_on = array(\"1==1\", \"_cmd_spelling(null)\\\\\\\"><img onclick=\\\\\\\"spellCheck(\'vbform\', \'\\$editorid\', \'2\');\\\\\\\"\");\r\n\r\n$vBSpell_search_postbit_quickedit = array(\"is_browser(\'ie\')\", \"_cmd_spelling\\\\\\\"><img\");\r\n$vBSpell_replace_postbit_quickedit = array(\"1==1\", \"_cmd_spelling(null)\\\\\\\"><img onclick=\\\\\\\"spellCheck(\'3\', \'\\$editorid\', \'2\');\\\\\\\"\");\r\n\r\n$vBSpell_search_showthread_quickreply = array(\"is_browser(\'ie\')\", \"_cmd_spelling\\\\\\\"><img\");\r\n$vBSpell_replace_showthread_quickreply = array(\"1==1\", \"_cmd_spelling(null)\\\\\\\"><img onclick=\\\\\\\"spellCheck(\'qrform\', \'\\$editorid\', \'2\');\\\\\\\"\");\r\n\r\nforeach ($vBSpell_search_editor_toolbar_on as $id => $item) {\r\n$vbulletin->templatecache[\'editor_toolbar_on\'] = str_replace($vBSpell_search_editor_toolbar_on[\"$id\"], $vBSpell_replace_editor_toolbar_on[\"$id\"], $vbulletin->templatecache[\'editor_toolbar_on\']);\r\n//quickedit doesnt work yet\r\n//$vbulletin->templatecache[\'postbit_quickedit\'] = str_replace($vBSpell_search_postbit_quickedit[\"$id\"], $vBSpell_replace_postbit_quickedit[\"$id\"], $vbulletin->templatecache[\'postbit_quickedit\']);\r\n$vbulletin->templatecache[\'showthread_quickreply\'] = str_replace($vBSpell_search_showthread_quickreply[\"$id\"], $vBSpell_replace_showthread_quickreply[\"$id\"], $vbulletin->templatecache[\'showthread_quickreply\']);\r\n}', 'spellvb');

MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date         : Friday, November 3rd 2006 @ 10:40:13 AM
Script       : http://www.decimators.net/forums/admincp/plugin.php
Referrer     : http://www.decimators.net/forums/adm...?do=productadd
IP Address   : ************
Username     : ***********
Classname    : *************
then i uninstalled it and ran the sql query to create the vbspell table, but it still happened... any help?
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:52 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.15887 seconds
  • Memory Usage 2,346KB
  • 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
  • (11)bbcode_code
  • (7)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
  • (2)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