The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Spell checker: PHPSpell for vBulletin3 WYSIWYG and Standard mode Details »» | ||||||||||||||||||||||||||||
Spell checker: PHPSpell for vBulletin3 WYSIWYG and Standard mode
Developer Last Online: Nov 2023
PHPSpell for vBulletin3 WYSIWYG and Standard mode Intro: PHPSpell uses a MySQL based disctionary and requires no additional tools than your standard PHP/MySQL setup. One draw back to this hack is that while it works with vBulletin in WYSIWYG mode, the popup window will still display html and vBCode tags. But the advantages are numerous, such as the "learn" capability and the admin tool. There is another hack https://vborg.vbsupport.ru/showthrea...threadid=65737 for PungoSpell that supports WYSIWYG mode disply on the spell check popup window. It has less features than PHPSpell, but it supports WYSIWYG display. Check it out, and compare which one is best for your forum. Credit PHPSpell Was written for PHPBB, and then expanded to work for all major forum software, including vB2 and vB3. Due to vB3's WYSIWYG mode, PHPSpell only supports standard mode. This hack will allow it to work for both standard and WYSIWYG. If you like this software, please click the PayPal button on the Author's site, so they'll add more features. Their future plans so far include: Quote:
What this hack does This hack modifies the PHPSpell software package from PHPSpell to allow spell checking on vBulletin for both modes, WYSIWYG and standard mode. Note: You will see tags like <br> and others in WYSIWYG and BBCode in standard mode. Edit the config file to ignore them. This happens in both WYSIWYG mode, and in standard mode. It will show the tags, but it will not spell check them. This hack does not add new features to the spell checker, it just makes it work, as designed, for vB3 in both WYSIWYG and standard mode. Instructions 1. Download the attached file, and unpack into a new directory called "spelling" below your forum directory. 2. Edit the config file "spell_config.php" and enter your forum database username and password. 3. Find a dictionary and upload it to the "spelling" directory. A copy is provided in the zip file. PHPSpell's site has a couple of dictionaries for download: http://www.master-technology.com/dem...l/download.php 4. Run "spell_admin.php" from your browser (URL/spelling/spell_admin.php) to create the dictionary datanbase table. When done, delete this file and the dictionary file. 5. You might want to modify the css files to have the look and feel of your forum and colours. 6. The rest is template edits for each template where you'd like to have the spell checker. For example: newreply template Find Code:
</head> Code:
<script language='javascript' src='spelling/spellmessage.js'></script> Code:
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_reply]" accesskey="s" tabindex="1" /> <input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="1" /> Code:
<if condition="DOTOOLBAR!=2"> <input type="hidden" name="toolbar" value="1" /> <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('1');"/> <else /> <input type="hidden" name="toolbar" value="2" /> <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('2');"/> </if> Optional: Other Templates that contain edit boxes are: USERCP_SHELL just add the first change here in above the </head section. Required for pm_newpm and modifysignature. editpost Calendar Templates: calendar_edit New Posting Templates: newreply, newthread Modify User Options Templates: modifysignature (add the the first change in USERCP_SHELL) Private Message Templates: pm_newpm (add the the first change in USERCP_SHELL) I may have missed a few, so let me know. 7. If it doesn't work, run the file "spell_diags.php" from your browser, it will test your setup and report any problems. Enjoy Show Your Support
|
Comments |
#62
|
||||
|
||||
Installing ENGLISH.DIC (English)...
Unable to create dictionary database table: Code: 1226 Message: User 'ladyelle_admin' has exceeded the 'max_questions' resource (current value: 50000)Result: Link: Resource id #5 DB: ladyelle_forum User: ladyelle_admin Server: localhostUnable to perform spell check at this time. :ermm: Crashes everytime at 12% during the dictionary words import. Had the ISP raise my limit from 10k to 50k. Obviously not enough. How much should I ask for? They claim 50k is to prevent abuse???? TIA DR |
#63
|
||||
|
||||
Quote:
Find: </head> Add Above: <script language='javascript' src='spelling/spellmessage.js'></script> Save Open template: showthread_quickreply Find: <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" /> Add Below: <if condition="DOTOOLBAR!=2"> <input type="hidden" name="toolbar" value="1" /> <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('1');"/> <else /> <input type="hidden" name="toolbar" value="2" /> <input type="button" class="button" name="spellcheck" value="SpellCheck" accesskey="c" tabindex="1" onclick="openspell('2');"/> </if> Craig |
#64
|
|||
|
|||
Very nice. Tweaked the phpSpell window to remove Learn (at my managers' request) and changed the "All" buttons to "Correct All" and "Ignore All" and so had to also increase their width and the table's width. Also removed "Suggest" since I was never able to get anything meaningful out of it.
Clicked install. I thank you, and my users thank you. (Well, my users aren't actually thanking you, but they would if they could. ) Thx, D. PS...In IE, the gap between the Preview button and the Spellcheck button is wider than the gap between the Submit button and the Preview button. (See attached image.). This extra gap is caused by: HTML Code:
<input type="hidden" name="toolbar" value="1" />
HTML Code:
<input type="hidden" name="foobar" value="null" />
FWIW, D. |
#65
|
|||
|
|||
|
#66
|
|||
|
|||
Methinks your directory path is set incorrectly. Grab the attached file and upload it to the directory where your files are, then point your browser to it (yoursite.com/forum/spelling/dirpath.php) and see what it says.
|
#67
|
|||
|
|||
Thanks! Here is what is says
Server Path: /home/virtual/site3/fst/var/www/html/forum/spelling/ HTTP Path: http://66.70.234.198/forum/spelling |
#68
|
|||
|
|||
Hmm. Have you uncommented line 37 of spell_config.php? It must say:
Code:
$Spell_Config['DB_Type'] = 'vBulletin'; [edit] Also uncertain why your spell_config.php file has 197 lines. I only see 170. [/edit] |
#69
|
|||
|
|||
I was playing around this weekend, trying to get the Learn button to appear only for specific users.
It was easy enough to get the userid to the openspell function in spellmessage.js by adding $bbuserinfo[userid] to the template code, but I can't seem to get the userid from there to spelling.js where it'd do some good. No big deal, and I understand I'm using the hack and phpSpell in a non-standard way. But, has anyone gotten this to work? TIA, D. |
#70
|
|||
|
|||
Welo, I think I removed the comments. I have attatched my config file if you or anybody could look at it.
Thanks!! p.s. The buttons show up in the edit box but it does not work. |
#71
|
|||
|
|||
installed. works nicely.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|