![]() |
vB Spell :: Spell Checker in WYSIWYG and Standard Modes
A 3.6 version by cynix2 is posted here:
https://vborg.vbsupport.ru/showthread.php?t=124578 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 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 : https://vborg.vbsupport.ru/showpost....9&postcount=48) 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> HTML Code:
<script src="vbspell.js"></script> HTML Code:
$navbar HTML Code:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="vbspell.php"> HTML Code:
<input type="submit" class="button" name="sbutton" value="$vbphrase[save_changes]" accesskey="s" tabindex="1" /> 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');" /> 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" /> HTML Code:
<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', '$editorid', '2');" /> 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 Install if you have installed this mod. Scrrenshots: (from the 3.0.7, but it's identical) |
Could be useful. Do you have the option not to spell check your posts? For example i was on a board and it annoyed the crap out of me to HAVE to go through every word that triggered an incorrectly spelled word.
So is it an option to just not spell check it? |
Quote:
|
Quote:
Only one problem. I have installed it and the checking of spelling is working. But it is not correcting the words. The corrections happen in the pop-up window but then when I click done and quit or just quit the post is not changed. Any thoughts as to what I have done wrong? |
Quote:
If you have beta-4, whivh page are you getting this with? What editor mode, and what browser and version? |
Sorry.
I am running beta 4. And I get this with the WYSIWYG and standard editor in both the advanced mode and quick reply. |
Quote:
|
Quote:
I am on a Mac and running FireFox. I have also tested it in the latest versions of Netscape, Opera, IE and Safari and all come up the same. |
Quote:
Feel free to PM a test account (regular user), and I'll check and see what's going on. |
Just one more question about enabling it for quickedit. I must be missing the TFO because I can't work out where I should put the button line. I have got it working for quickreply but can't for quickedit.
Apart from that I have to say that this system totally rocks. I would recommend everyone to put it on their boards. And for those server load Nazis who are worried about it pulling resources, you can enable/disable it per user group. So you could make it available to your paid members which gives them an added incentive to join up. |
Quote:
You can put it right after this, for example: HTML Code:
<if condition="$show['deletepostoption']"> |
Many thanks. It is all up and running now.
Also, I would suggest that if you want to spell check your PMs that B should be put in USERCP_SHELL and not in pm_newpm as it stops all the other buttons from working. Or maybe that was what you meant and I just misread it. |
Quote:
|
Umm vb has its own built in spell checker now. ;) Since beta 3.
But good work. |
Quote:
I personally like client based spell checking, and there are client based spell checkers for other browsers. I use SpellBound for Mozilla. But a server based spell checker is needed for those on the road, and don't have their home PC setup, or the many users who don't know about client-side spell checkers, or those on other browsers. |
Thats why I said good work. ;)
|
Quote:
It's just that I've heard this comment at vb.com, and some people think ieSpell solves all the problems :) |
Quote:
Look! VB now has its own built-in sports site! :ermm: |
i cant get quick reply to work because i cant find any of that in showthread_quickreply......
|
The instructions are wrong for that.
You should have both A and B in the showthread template. Add the code (to replace "C") at the bottom of the showthread_quickreply. It doesn't look very nice, but it works. |
Quote:
It should work without editing showthread_quickreply. Check the latest edit of the template instructions, and if it's still wrong let me know :) |
Quote:
Thanks ;) |
I get this error on the vbspell.php page when spellchecking:
Code:
Notice: Only variable references should be returned by reference in /home/garyking/public_html/maloria.com/includes/class_core.php on line 1736 |
Quote:
In vbspell.php and vbspell_iframe.php Chenge this: PHP Code:
PHP Code:
|
Not sure if you need to do this.
After upgrading to RC1. The spellcheck popped up as a blank page. I had to uninstall and reinstall using the installation script before it started to work again. |
Quote:
|
Quote:
1) Refresh at Edit Post page. 2) Ctrl-Refresh at Edit Post page. 3) Delete all offline contents. My problem could be caused by other reasons. I thought too I wouldn't need to reinstall.:) |
Quote:
Let's hear from others if the RC1 upgrade went fine, or if they also had problems. If anyone else encountered problems, let me know which templates work and which ones didn't. But at leat we know that a re-install will fix the problem, if it happens :) |
Quote:
|
I have noticed spellcheck removes all the line breaks. Is this an intended feature?:)
|
Quote:
|
I have lost the vBSpell functionalities as before again -- an empty pop up form. An uninstall and reinstall fixes that without even needing the reload of IE. So more likely is a server side issue, or some java stuff which I don't know anything about.:) Also the line breaks are still removed by the spellcheck as soon as I click "Done". If no one else has this problem, then I will start to look for the reasons caused in my forums.
|
I scanned through but I don't think anyone mentioned this but when you preview a post and use the spell checker, it strips out the paragraph spacing and jumples up the thread.
|
Quote:
|
3 ... thanks Tamarian.
|
Quote:
Would you recount the exact steps where this would happen, in which template, edit or new thread/reply, and what mode, WYSIWYG, or standard, etc. |
maybe a browser compatability issue?????
|
IE, vBulletin RC3, Standard Editor, "post reply" or "post new thread".
When your done with your post (that contains some paragraph's), hit preview post and then do a spell check. When it's done spell checking, it will remove all paragraph's. |
Quote:
The error occurs as soon as I click DONE. The post text area gets rewritten, but all the paragraph marks were stripped. I am using IE6 (SP2) with MS Java Virtual Machine. I reported another bug before, but I will repeat here: Every time I upgrade to a newer version of vB. The vbSpell pop up box will come up with empty contents. A trick to fix this is to unstall templates and reinstall templates using the bundled installation routine. What might have fixed the problem probably is: build_all_styles() function. |
Quote:
Try this file as a replacement to vbspell.js and let me know if it works (change the txt to js) |
All times are GMT. The time now is 12:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|