The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB Spell Details »» | |||||||||||||||||||||||||
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:
Installation:
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:
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> 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> 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
|
Comments |
#132
|
||||
|
||||
Is anyone going to help?
|
#133
|
||||
|
||||
Please correct me if I am wrong but, in the installcode:
Code:
<installcode><![CDATA[ $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"); // Add Dictionary Terms if (is_file("./DICTIONARY.DIC")) { $start_time = time(); $last_time = 0; $words_processed = 0; $FileSize = filesize("./DICTIONARY.DIC"); $fp = fopen("./DICTIONARY.DIC","r"); while (!feof($fp)) { $data = trim(fgets($fp, 4096)); if ($data != "") { $words_processed++; $db->query_write("REPLACE INTO vbspell VALUES('" . addslashes($data) . "', '" . metaphone($data) . "')"); $end_time = time() - $start_time; if ($end_time > $last_time) { $loc = ftell($fp); $percent = round(($loc / $FileSize)*100, 0); echo construct_phrase($vbphrase['processing_x'], "$words_processed... (".$percent."%)") . "<br />\n"; vbflush(); } $last_time = $end_time; } } fclose($fp); } $db->show_errors(); ]]></installcode> Code:
// Remove Old vB Spell Table $db->query_write("DROP TABLE IF EXISTS " . TABLE_PREFIX . "vbspell"); |
#134
|
||||
|
||||
LOL, reading through, someone else has already noticed this as well. :P
|
#135
|
|||
|
|||
So how do I get this to work on my server? I tried to delete code, I tried everything listed on all 9 pages. Anyone have any clues that they could give me?
|
#136
|
|||
|
|||
Christian:
Thanks. That fixed it. Just remove // Remove Old vB Spell Table $db->query_write("DROP TABLE IF EXISTS " . TABLE_PREFIX . "vbspell"); from the product install file and it loads just fine. |
#137
|
||||
|
||||
Quote:
|
#138
|
|||
|
|||
I installed it as normal... got db error when spell checking. I removed the
// Remove Old vB Spell Table $db->query_write("DROP TABLE IF EXISTS " . TABLE_PREFIX . "vbspell"); from the .xml install file, imported it again with overwrite enabled.... now clicking on the spell check does nothing. |
#139
|
||||
|
||||
If I remember correctly, I had to delete mine, and actually go to the table in phpmyadmin and smoke the vbspell table as well, then it worked.
|
#140
|
|||
|
|||
lol... it's working now... maybe I wasn't holding my mouth right.
|
#141
|
|||
|
|||
Dear all,
I just can't get this to install at all on 3.6.1. When I first tried a normal install with the dictionary file, I got the same problems many others have had: the install script took too long to run, and the server killed it. I then uninstalled the scraps of the mod that had wound their way into the system, and tried the alternative method (as above in this thread); but now always receive the following error during the import run: PHP Code:
I would deeply appreciate some assistance from anyone who's managed to get the script to work -- right now it simply doesn't function on 3.6.1, as it won't install. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|