minibb®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Official Addons and Solutions miniBB Community Forum / Official Addons and Solutions /

mSpell: The Spell Checker add-on discussions

 Page:  1  2  3  4  5  »» 
Team
8-)
#1 | Posted: 7 Oct 2006 03:23 | Edited by: Team
Reply 
This thread is related to "mSpell: The Spell Checker" addon, which enables spell checking capability when posting and editing forum messages. It can be used for any external text forms as well. This is an official addon issued by miniBB.com team (Sergei Larionov), you can download/install it for free from our Downloads page
tom322
Forums Member
#2 | Posted: 19 Apr 2006 19:21
Reply 
7 Oct 2006 04:05 - Attached on merging:
Release of mSpell: The Spell Checker addon for miniBB

Sounds good; that's what I've been looking forward to ;). My suggestion would be to name it: mbSpell rather than mSpell (it's easier in my opinion to associate mbSpell with miniBB than just mSpell).

Also, if I could see a working version somewhere to test that would be nice. Thanks,

tom
Team
8-)
#3 | Posted: 21 Apr 2006 19:07
Reply 
ok, maybe in future we'll have it installed on miniBB Test Server.. I like to call it mSpell, mb - sounds like "motherboard" to me ;)
Jamieg285
Forums Member
#4 | Posted: 4 May 2006 09:35
Reply 
www.aspell.net doesn't work.

Any other suggestions on how to get this installed?
Paul
CEO
#5 | Posted: 4 May 2006 09:45 | Edited by: Paul
Reply 
www.aspell.net doesn't work - "This issue should be reported to the SourceForge.net-hosted project (not to SourceForge.net)", as stated there... not to us. This addon works ONLY with Aspell.
Sergei
Team member
#6 | Posted: 5 May 2006 14:51
Reply 
marsbar
Associated Member
#7 | Posted: 6 May 2006 09:32
Reply 
Many thanks for this very useful addon, Team! For the addon to work, I have had to change line 21 of mSpell.php:

the original line 21:
if(file_exists($fName)) include($fName); else include ($pathToFiles.'lang/mspell_eng.php');

my modified line 21:
if(file_exists($fName)) include($fName); else include ('/full server path to forums/lang/mspell_eng.php');

Cheers,
mb
adventurous
Guest
#8 | Posted: 6 May 2006 10:11
Reply 
In instructions for adding the spell checker the URL is incorrect: should be ://aspell.net
adventurous
Guest
#9 | Posted: 6 May 2006 11:12
Reply 
Having installed aspell including en dictionary and configured ps4pell in the php.ini file and tested the spellchecker works with a short php script within the forum directory. I am happy there is no problem with the installation.

However, within MiniBB I have an issue, having followed the instructions to the letter as follows;

1) As instructed in SETUP the whole of mspell_f directory was copied into the forum directory

DONE - Forum/ mspell_f /
mSpell.php
mspLoader.js

2) You need to (?guess edit) one template file now - main_post_form.html in the "templates" folder.

DONE - Script copied from readme.txt and pasted correctly


3) Copy the default language pack mspell_eng.php to the miniBB "lang" directory on your server

DONE - Forum/ lang / mspell_eng.php


4) Add the following code to the bb_plugins.php file: - DONE

/* addon mSpell */
if(in_array($action,array('vtopic','','vthread','editmsg'))) include($pathToFiles.'lang/mspell_eng.php');
/*-- addon mSpell */


5) /* config */ $sys='win'; //OS: set 'win' for windows as using XP-Prof - DONE

Only using the en dictionary so no further changes.

However, when trying to use the spellchecker, empty form fields with no labels are displayed but an error appears:

Warning: main(./lang/mspell_eng.php): failed to open stream: No such file or directory in

C:mypathforummspell_fmSpell.php on line 24

Warning: main(): Failed opening './lang/mspell_eng.php' for inclusion

(include_path='.;C:mypathApache2htdocsincludes;C:mypathPHP;C:my pathPHPPEARin;C:mypathPHPPEARlib;') in C:mypathApache2htdocsmypathforummspell_fmSpell.php on line 24
./lang/mspell_eng.php


$pathToFiles='./'; which appears to be the problem.

In win the file path surely needs to be ../lang/mspell_eng.php

In mSpell.php immediately after the ../setup_options.php I added

$pathToFiles = "." . $pathToFiles; this removes the error and shows the form with labels but does not dsiplay any data in the fields and so I guess there is another problem somewhere!!

HELP PLEASE!!
Paul
CEO
#10 | Posted: 6 May 2006 15:05
Reply 
marsbar
Better example:

if(file_exists($fName)) include($fName); else include ($pathToFiles.'lang/mspell_eng.php');
Sergei
Team member
#11 | Posted: 6 May 2006 23:02 | Edited by: Sergei
Reply 
adventurous
it works perfectly for me in windows and linux.

pathtofiles seems to be incorrect in your config file. pathTofiles should be set to an absolute path (according to miniBB manual) like /var/www/html/yoursite/forum/ and then it will work.. but you can also set $pathToFiles variable anywhere on top of the mSpell.php file after the setup_options.php inclusion, like:

include '../setup_options.php';
$pathToFiles='../';

if you don't know or don't want to set the full system path to your miniBB forums folder for some reason.

thanks for your notes about the readme files, yes, i totally forgot the aspell.net people keep forgetting to tune their apache correctly for years now :) so yes the correct url to Aspell homepage is http://aspell.net ..
Team
8-)
#12 | Posted: 6 May 2006 23:09
Reply 
marsbar
same thing.. you've missed an important step in the miniBB installation processing .. a step of setting pathToFiles variable in your setup_options.php file to the full system path.
marsbar
Associated Member
#13 | Posted: 7 May 2006 03:38 | Edited by: marsbar
Reply 
Team wrote: marsbar - same thing.. you've missed an important step in the miniBB installation processing .. a step of setting pathToFiles variable in your setup_options.php file to the full system path.

!!! Thanks for pointing out my problem, Team!

Quoting the miniBB Manual:
$pathToFiles='./'; Full file system path to your miniBB files (could be, /usr/home/public_html/forum/ for example, on Linux). Must have SLASH at the end ... You can set the full path to the scripts, or leave default if the board is working normally...

I did not change anything because the board was working normally... until I added mSpell. Of course, I should have thought of coming back to setup_options.php to check this setting, but I did not (my bad!). Once again, thanks, Team, for your help. mSpell now works for me, straight out of the box. :-D
adventurous
Forums Member
#14 | Posted: 7 May 2006 17:12 | Edited by: adventurous
Reply 
Following on from my above, posting.

Having resolved the path issue, thanks, I still have blank fields, what would cause this problem? please point me in the right direction.

Please note when testing using the following script the aspell check works.

<?php

$pspell_link = pspell_new("en");

if (pspell_check($pspell_link, "testd"))
{
echo "This is a valid spelling";
}
else
{
echo "Sorry, wrong spelling";
}

PS. tested within the mypath/forum directory - I cannot work out where the field variables are picked up from, but they remain blank!.
adventurous
Forums Member
#15 | Posted: 8 May 2006 16:04
Reply 
Is there anyone on this forum who has enough knowledge to help me??!!

I have completely re-installed mspell twice and still it does not work.

I'm using Exp6, on win and have as far as I know installed aspell/pspell correctly having tested it with a php script from within my forum directory.

Where could the problem be?

Having loaded over 20 other addons without a problem, it is frustrating that two days later I still cannot mspell to work. (and yes js is enabled)
 Page:  1  2  3  4  5  »» 
Your reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, be sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 22
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®