![]() |
PHP Spell Checker intergration into vBulletin
Not too sure if this is where its meant to go but if it should be moved please move it.
I have been trying to find a simple spell checker to work on my forums for a while - Eventually i found this one http://www.master-technology.com/phpbb/ which was working with phpbb. As i have no idea how to code anything - at all!!! I asked one of their support teams to help and they gave me the answers. So I can't take any of the credit for it, and thank them for helping me out. At present it doesn't support vbulletin but since talkin to them they are going to be doing so in the near future. files to upload: 17 files to edit: 1 templates to edit: 1 (possibly 2) Instructions: See the attached text file |
Here is the zip file:
Unzip them all to a folder on your server called "Spelling" or the spellchecker don't work. The instructions are included in the zip as well. |
Does this force the spell check on the user or can he/she click a link to use it if they want to? there are some spellings that the user might not want changed automatically.
|
No it doesn't force a spell change on them - it highlights spelling mistakes and gives you an option of - however many you choose - so many words which you can change it too.
If it is a word you use a lot - and you know ppl will understand such as vbulletin there is an "learn" option - and in the spell_admin.php there is an add option to add more words. there is a working version on my board. http://clanantivirus.com/forums/ if you wish to check it out. and attached is a picture of the spell check window |
wow - this looks like the best and easiest spell checking solution yet!
|
I've made a slight change to integrate the spell check button better:
Quote:
Check http://www.pcreview.co.uk for another demo |
This is what I am getting when I run the spell_admin.php file:
Quote:
|
did you add your db information to the spell_config.php?
Also i think i had this issue the first time i ran it - i changed the spell_config to the following: In spell_config.php set: $Spell_Config["DB_Type"] = "pspell"; then put the attached file into your admin folder and run it. I then had to change it back to: In spell_config.php set: $Spell_Config["DB_Type"] = "MySQL"; and it worked. |
This is the error I am getting now.
Quote:
|
Quote:
|
Now I get this again.
Warning: main(spell_MySQL.php) [function.main]: failed to create stream: No such file or directory in /xxxx/xxxx/xxxxxx_xxxx/forum/spelling/spell_config.php on line 166 Warning: main() [function.main]: Failed opening 'spell_MySQL.php' for inclusion (include_path='') in /xxxx/xxxx/xxxxxx_xxxx/forum/spelling/spell_config.php on line 166 You must choose a Database Type in the Spell Configuration file. |
did you see if the table is created in your db? it should make the table spelling_words?
apart from that i have no idea - it is working fine on mine and the only difference is that i have set it too forums/spelling rather than forum/spelling but it shouldnt make much difference. Did you change any of the other files? and you did change the permissions to 755 I spoke to their support team and they said that they are planning on releasing a proper patch for vbulletin in the near future. I have attached a clean spell_config.php to see if that makes any difference |
The directory permissions are set to 755, but all file permissions are still at 644. No, there is no spelling_words table. And I didn't change any other files. When they release an update for vBulletin, please let me know. Until then, I'm out of luck.
|
But not without a fight. got the message
Quote:
Thanks! Just want to know if I can remove the Learn button. Want to stop anyone from entering mis-spelled words. |
Is only English supported?
|
Quote:
|
Quote:
Quote:
The languages i have are: . French . German . Italian . Spainish |
Just browse one of the files for the HTML code with the insert button, you should be able to just remove it.
I cannot believe how quiet this hack is, I think this is one of the best hacks available - it works excellently on my site and all of my users are praising it! |
Quote:
I can't understand it either? oh, well never mind LOL |
Quote:
In the spelling folder open your spelling.js (remember to back it up first...) Online 404 (approx) find: PHP Code:
then still in spelling.js find online 473 (approx): PHP Code:
Save the spelling.js and the learn button is removed. |
here are the extra dictonary files -
I haven't had chance to try them yet so install them at your own risk. French |
German
|
Italian
|
Spanish
|
Thanks for the reply, That removed it and all is working fine. Thanks again this work great.
|
Cool hack, but i get this error when i am trying to add the dic-file:
Code:
Installing german.dic (german)... |
Did you try the ENGLISH.DIC that came with it?
If that works it could be the dictonary file - try droping the data within the table (if it creates it) and then inserting the data that way. If it didn't create teh table then it could be something else completly. Will check it out tonight and let you know |
@ iggy123, no it dosent creates any table. :(
Let me know if it works for you. Thank you in advance Kars |
well i just installed the german dictonary without any problems.
when you installed it did you do this part: https://vborg.vbsupport.ru/showthrea...993#post407993 try that and then connect to the http://yoursite/forums/spelling/spell_admin.php and see if that window shows up |
I will try and figure out how to add the table - manually - but i have no idea on how to write the code... so if someone can help me i would be gratefull...
|
Iggy123 - I'd tried out the version on your site to see what the spell checking was like. I kept words pretty simple, but it didn't pick up on quite a lot of them.
Obviously that's out of your control. Nice work nevertheless. |
Iggy123 - I've integrated the style into my forum, but I can't find where the size of the popup browser is controlled. I've checked phpspell.html and the spelling.js files but can't see it.
Any ideas? |
Quote:
It all depends on the dictonary file and the settings within the spell_config.php. I have only set it pretty low to test etc but will be getting a new dictonary etc in the next few days and hopefully it should improve |
Quote:
find (approx line 19) Code:
var LinkToField = ""; |
OK, cool - sounds good. It picks up the spelling errors just doesn't make a lot of good suggestions :).
Thx. for the height / width info. I'll try that out now :). |
Yep that's it - I'm sure I tried those but obviously I didn't save the file or something after edit. Thx. for the help - appreciated :).
[high]* Intex clicks install.[/high] |
Pretty obvious this one, but for anybody else that has FireFly's Quick Reply feature, then just perform the following:
In the 'showthread_replybox' template find the following code: Code:
<input type="reset" class="bginput" name="reset" value="Reset Form" accesskey="r" tabindex="3"> Code:
<script language='javascript' src='spelling/spellmessage.js'></script> |
Once again, simple - but others might want to include this too. If your users, edit their post they don't have a way to check the spelling again. Follow the instructions below to include the spell check button when editing posts:
In the 'editpost' template find the following code: Code:
<input type="reset" class="bginput" value="Reset Message" tabindex="4"> Code:
<script language='javascript' src='spelling/spellmessage.js'></script> |
Quote:
|
within the spell_config.php there is an option to increase the number of words suggested - however it slows the search down
|
All times are GMT. The time now is 05:24 AM. |
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:
|