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
  #182  
Old 10-15-2006, 07:38 AM
aquariumpros aquariumpros is offline
 
Join Date: Jul 2002
Location: Hawai`i
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by christianb
Just curious - for those having the pop-under problem - what version of vb are you running?

Edited for spelling
3.6.2

Quote:
Originally Posted by Eq4bits
3.6.2 here
but it doesn't really matter if it 'pops-under' since it doesn't offer corrections/suggestion, and recognizes correctly spelled words as incorrectly spelled/needed to be learned... In fact every word in this post would come up as needing correcting.
This is not the case if you import the ALT.zip into the database. Other then the pop-up behind - this is working perfectly on my board.

Quote:
Originally Posted by r5e
I got the pop-up problems when I changed from 3.5.x to 3.6.x, or when I changed from the last version (0.9.12) to this latest version (0.10.2b). As such, it is hard to say whether it was the latest vbspell that caused it, or the latest vbulletin that caused it. I can say that I get the same problems on 3.6.1 and on 3.6.2 as I had these problems before 3.6.2 came out.
Now as for whether this is caused by the javascript...? I have also compared the files of vbspell.js, vbspell.php and vbspell_iframe.php between the old and the current versions. Mostly the only changes are very minor, such as changing the name “vBSpell” to “vB Spell”. However, there are a few key changes which might be interesting.

10.2b:
Code:
function openSpellWin(wx, hx) {

        window.open("", "spellWindow", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+wx+',height='+hx);
        window.focus;
}

9.12:
Code:
function openSpellWin(width, height) {

        window.open("", "spellWindow", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+width+',height='+height+'\'');
}
Looks like some minor changes with height and width changing to wx and hx. Does this make a difference?

Well, I decided to test the theory by simply renaming the 3 (current veriosn) files on my server and then simply copying the 3 files of the old version (vbspell.js, vbspell.php and vbspell_iframe.php) in their place. What happened? Absolutely nothing! No difference. I still get the pop-up happening behind the edit window, not in front. It seems to me that the idea of looking at the javascript may be a dead end.

I really have no idea, but I’d have to theorise that something has changed in 3.6.x to make this happen. I’d guess this could be something along the lines of code compliance and how browsers interpret this. For example, maybe the doc type has changed (it is currently “XHTML 1.0 Transitional”)… actually, bad example, I just checked and 3.0.x is also XHTML 1.0 Transitional.

So, I have not brought any new useful information to this thread, but I can tell you this:

1. I have written to the author asking for them to have a quick check in here as although they are regularly in the forum, they have not been here for a while. It’s not fair to nag or judge the author of free software for a lack of support, but I wanted to know if they had finished with it and would be happy with someone else to pick up and run with it. Unfortunately, they have neither replied, nor posted in here.
2. It would seem on the surface that the javascript is not at fault, as the old version which used to work does not work in here.
3. I have not yet looked into the product.xml. I think that this is where it will have to be. (If no one else can solve this before I do)
Many thanks for your attempts to fix this.

Much appreciated!!
Reply With Quote
  #183  
Old 10-15-2006, 03:13 PM
LisaD1's Avatar
LisaD1 LisaD1 is offline
 
Join Date: May 2005
Location: True North Strong & Free!
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by christianb
Just curious - for those having the pop-under problem - what version of vb are you running?

Edited for spelling :P
3.6.2 Here. I hope that someone can work this out, I really need it, because my spelling SUCKS!
Lisa
Reply With Quote
  #184  
Old 10-16-2006, 01:21 AM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay, i had imported the alt sql files as latin1 instead of utf8, dropped all the entries in the table and reimported as utf8. So now spell checker is working.
Still has the annoying flicker on top then popping open UNDER main window. It seams that maybe this would be in the 'java' event coding for the button itself maybe? I did notice that someone said it works fine in Opera... and also took note that when I edited the quick_edit template the instructions only stated to removed the <if> conditional for IE and not also the one for Opera that is right above it. Is it possible that if the Opera <if> conditional is taken out of the appropriate templates that that would resolve the pop-under problem? Grasping at straws since I haven't been able to think of anything else... I mean LINKS in a post if clicked on are opened in a new window and they don't open *under*...... so what is the difference for vbspell?
Reply With Quote
  #185  
Old 10-20-2006, 03:29 PM
baze22 baze22 is offline
 
Join Date: Apr 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LisaD1
3.6.2 Here. I hope that someone can work this out, I really need it, because my spelling SUCKS!
Lisa
I've played around a bit, but I'm no js expert. I've narrowed to having something to do with a function in the vbulletin_global.js file:

function set_unselectable(obj)

I'm not sure exactly what it does, but when I comment it out or rename it, the pop up window comes to the top. I looked at the file that came with 3.5.4 and the code is identical. So I'm assuming the change is in a function that calls this one. I tried to narrow it down further and did a search of the vb files to find where this is called and found 3 instances in vbulletin_textedit.js, but commenting one or more of those still had pop up window popping under. So I don't if there are some other templates where this is called or what the detrimental effects of having this commented out would have, but that's all I've found so far.

If anybody else has other suggestions...


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

Quote:
Also does this need to learn all words? I just did a test and it did not give any options for any words really and so I had to click on learn for every second word. I did the normal install as this is the first time I have installed this hack. This meant I just ftp'd the dictionay file to the root and nothing more than that. I did not use anything in the dictionary-alt zip file. Was I supposed to use both?
I am posting this again as I have not had any response. I have installed all as per the instructions. However there does not appear to be any directionary being used as a default? Have I missed something somewhere? The spell check comes up but asks for confirmation on about every third word and there are never any suggestions? www.physiobob.com/forum
Reply With Quote
  #187  
Old 10-20-2006, 04:03 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you need to check your vbspell table in you database, to be sure the actual words were imported into it.
I kept getting the 98%/vb error message so had to insert via sql the 10 separate sql files (these include the sql command and the words/entries for the dictionary/vbtable) into the vbtable. those 10 sql files are in the dictionary-alt file
Reply With Quote
  #188  
Old 10-20-2006, 04:28 PM
baze22 baze22 is offline
 
Join Date: Apr 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by baze22
I've played around a bit, but I'm no js expert. I've narrowed to having something to do with a function in the vbulletin_global.js file:

function set_unselectable(obj)

I'm not sure exactly what it does, but when I comment it out or rename it, the pop up window comes to the top. I looked at the file that came with 3.5.4 and the code is identical. So I'm assuming the change is in a function that calls this one. I tried to narrow it down further and did a search of the vb files to find where this is called and found 3 instances in vbulletin_textedit.js, but commenting one or more of those still had pop up window popping under. So I don't if there are some other templates where this is called or what the detrimental effects of having this commented out would have, but that's all I've found so far.

If anybody else has other suggestions...


baze
I did stumble across one slightly detrimental affect.... users couldn't submit posts or PM's. PM's give the message that there is no recipient or title, posts get the error message that the message is too short. So for now, spell check will have to stay as a pop under. When I get a chance I'll try to dig into it more, in the mean time maybe somebody else can figure this out.

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

Quote:
Originally Posted by baze22
I did stumble across one slightly detrimental affect.... users couldn't submit posts or PM's. PM's give the message that there is no recipient or title, posts get the error message that the message is too short.
Additional info. exact error in the PM is to complete obth the subject and the message. Bottom line is that in both cases the message text goes away when submitted without this function.

baze
Reply With Quote
  #190  
Old 10-22-2006, 03:38 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 Eq4bits
you need to check your vbspell table in you database, to be sure the actual words were imported into it.
I kept getting the 98%/vb error message so had to insert via sql the 10 separate sql files (these include the sql command and the words/entries for the dictionary/vbtable) into the vbtable. those 10 sql files are in the dictionary-alt file
I have found the vbspell table but there is nothing in it. I am not a code so can you suggest how you go about getting the words into it?
Reply With Quote
  #191  
Old 10-22-2006, 03:50 PM
aquariumpros aquariumpros is offline
 
Join Date: Jul 2002
Location: Hawai`i
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by perfphysio
I have found the vbspell table but there is nothing in it. I am not a code so can you suggest how you go about getting the words into it?
Import ALL 10 of the SQL files from within the "dictionary alt.zip" in the downloads above. Unzip them to your local drive first - then use phpMyAdmin (under the Import tab) to import each one.

HTH,
*~AJ~*
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 08:00 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.08234 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
  • (4)bbcode_code
  • (10)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