Back to vBulletin 3.5 Add-ons

vB Spell :: Spell Checker in WYSIWYG and Standard Modes
Mod Version: 0.9.12, by tamarian

This modification is in the archives.
vB Version: 3.5.3 Rating: (2 votes - 4.50 average) Installs: 262
Released: 15 Jul 2005 Last Update: 26 Dec 2005 Downloads: 131
Not Supported Template Edits Additional Files  

A 3.6 version by cynix2 is posted here:
vB Spell

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: Many of you liked PungoSpell, but didn't like recompiling PHP for it. Many liked PHPSpell, but didn't like the lack of WYSIWYG support and browser compatibility. vB Spell solved both problems, I hope, by combining the best of each.

Features:
o Supports most recent versions of browsers. Tested on IE, Firefox, Mozilla/Netsacpe, Opera and Konqueror (Konqueror implies Safari, but please confirm Mac folks)
o Learn Feature uses cookies, so it won't increase the database size
o Admin panel options
o Works in WYSIWYG toolbar, Standard toolbar, and no toolbar
o Can be added in full edit mode, quick edit and quick reply.
o Skips quoted text and other tags (PHP, code, etc.)
o Usergroup permisisons
o Template based interface, and uses your default style.
o Link buttons (Thesarus and Lookup) with links to Merriam Webster's online thesarus and dictionary links with the suggestion for misspelled words.

Installation:
Note: There is a french version of vB Spell, by cclaerhout posted here

Spoiler (click to open)


Here is vB Spell for french users.

***Information***

-Installation file modified : languageid "-1" to languageid "0"
Fichier d'installation modifié : languageid "-1" -> languageid "0"

-Javascript file modified : thesaurus and lookup deleted and replaced by a french synonym dictionnary and french version of wiktionary
Fichier javascript modifié : le thesaurus et la consultation du lexique ont été supprimés pour être remplacés par un dictionnaire des synonymes et la version fançaise de wiktionary.

-Xml product file created : include french translated template and french phrases.
Création d'un fichier produit xml : comporte la traduction français du template et celle des expressions.

-English dictionnary replaced with french dictionnary
Dictionnaire anglais remplacé par celui français.

***New installation***
No problem, just read Tamarian How To, and import the new xml product file
Aucun problème, suivez juste les instructions de Tamarian et importer le fichier produit xml

***"Upgrade" after having installed vB Spell***
*** with original vbspell_install.php file***

If you want french phrases in admincp, uninstall first vBspell with the original vbspell_install.php
Si vous avez précédemment installé vB Spell avec le fichier original, vous devez désinstaller le script avec le même fichier. Puis télécharger l'archive française et procéder à la réinstallation
Attached Files
File Type: zip vBSpell-0-9-12FR.zip (622.6 KB, 31 views)

Close


1. Upload files and run vbspell_install.php
2. Go to AdminCP > vBulletin Options > vB Spell and edit your usergroup permisisons.
3. Template edits: (see alternative method, if you don't mind removing the ieSpell button made by vB :

Spoiler (click to open)


Your hack is really great and it works with french language. Thanks you very much.

I've just modified the installation process. I find it easier.

Code installation
Put
Code:
<script src="vbspell.js"></script>
at the end of your headinclude template.

Put
Code:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
        <input type="hidden" name="spell_formname" value="">
        <input type="hidden" name="spell_fieldname" value="">
        <input type="hidden" name="spellstring" value="">
</form>
at the end of your header template.

Link to the dictionnary

editor_toolbar_on:

Find
Code:
			<if condition="is_browser('ie') AND !is_browser('mac')">
				<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 onclick="spellCheck('vbform', '$editorid', '2');"><div class="imagebutton"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>


postbit_quickedit AND showthread_quickreply :

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 onclick="spellCheck('vbform', '$editorid', '2');"><div class="imagebutton"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>

What does it do ?
It replaces vB spell check with this one. I'm so happy it works with french language

Precision : i've got vB Gold Version

Close
)

For each template where you would like to add a vB Spell, do the following edits (Example: editpost, newreply, newthread, etc.)

A. Find:
HTML Code:
</head>
Add before:
HTML Code:
<script src="vbspell.js"></script>
B. Find: (or anywhere in the body)
HTML Code:
$navbar
Add after:
HTML Code:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php">
        <input type="hidden" name="spell_formname" value="">
        <input type="hidden" name="spell_fieldname" value="">
        <input type="hidden" name="spellstring" value="">
</form>
C. Find the submit and preview buttons:
HTML Code:
		<input type="submit" class="button" name="sbutton" value="$vbphrase[save_changes]" accesskey="s" tabindex="1" />
		<input type="submit" class="button" name="preview" value="$vbphrase[preview_changes]" accesskey="p" tabindex="1" />
Add below:
HTML Code:
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', '$editorid', '2');" />

Other templates:

Optional: Other Templates that contain edit boxes are:
USERCP_SHELL just add A before the </head section and B after it. Required for pm_newpm and modifysignature.
editpost
Calendar Templates: calendar_edit
New Posting Templates: newreply, newthread

Quick reply: . Put change A and B in showthread, as the rest, and use this for step C:
HTML Code:
<input type="button" class="button" value="Spell Check" onClick="spellCheck('qrform', '$editorid', '2');" />
Right after this (also in showthread):
HTML Code:
			<input type="submit" class="button" value="$vbphrase[go_advanced]" accesskey="x" title="(Alt + X)" name="preview" tabindex="3" id="qr_preview" onclick="this.form.clickedelm.value = this.value" />
For quick edit in postbit_quickedit, use this for step C (A and B are in showthread):
HTML Code:
		<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', '$editorid', '2');" />
After this:
HTML Code:
		<input type="button" class="button" tabindex="1" accesskey="p" value="$vbphrase[go_advanced]" id="{$editorid}_adv" />

History:
December 25, 2005: 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)
November 2nd. 2005: Fixes a bug with slashes in text.
October 17. 2005: Check for primary and secondary group for permission. Bug fix for quoted words.
September 13, 2005: v0.9.9 Bugfix for JS on IE with RC3
July 15, 2005: v0.9.8 Bugfix for JS code mismatch with template.
July 14, 2005: v0.9.7 Initial release for vB 3.5 beta-4

Please click if you have installed this mod.

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

Download

This modification is archived and cannot be downloaded.

Screenshots

     

Similar Mods

New Posting Features vB Spell :: Spell Checker in WYSIWYG and Standard Modes vBulletin 3.7 Add-ons
vB Spell :: Spell Checker in WYSIWYG and Standard Modes vBulletin 3.0 Full Releases
PungoSpell Spell Checker for vB3.5 WYSIWYG and Standard mode vBulletin 3.5 Add-ons
Spell Checker: PungoSpell for vBulletin3 Standard and WYSIWYG modes vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024