PDA

View Full Version : PungoSpell Spell Checker for vB3.5 WYSIWYG and Standard mode


tamarian
06-16-2005, 10:00 PM
PungoSpell for vB 3.5 WYSIWYG and Standard mode


Intro: PungoSpell supports WYSIWYG mode disply using DHTML on the spell check popup window. It uses PHP's buitin PSPELL module. Many have this already compiled in, but if not, it's easy to add.

What this hack does This hack modifies the PungoSpell software package from PungoSpell (http://sourceforge.net/projects/pungo-spell/) to allow spell checking on vBulletin for both modes, WYSIWYG and standard mode.

Change Log:
v2.4 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)

v2.3 Bug fix standard mode.
v2.2 Bugfix
v2.1 Changed JS to handle vB 3.5 beta 4
v2.0 Initial release for vB 3.5 beta Features, no more config edits, uses admin panel for settings :)


Note: There's another hack for spell checker for vBulletin3 using PHPSpell. (I plan to port it to vB 3.5 shortly) You might want to compare both to decide which one you like best.
https://vborg.vbsupport.ru/showthread.php?&threadid=65723

Credit PungoSpell (http://sourceforge.net/projects/pungo-spell/) Is a free software using the MIT license. By default, it will work fine in standard mode. This hack will allow it to work for both standard and WYSIWYG.

Requirements: You will need to have PSPELL compiled into your PHP setup. Many have this by default. To find out if you already have it, check your PHP info from the vBulletin Admin Panel: Import & Maintenance > View PHP Info. Search for "pspell". If it's there, you're fine. If not, you can recompile PHP with the "--with-pspell" paramater.

You also need aspell software installed on your server with a dictionary setup.

Please check with your server admin if not sure


Installation Instructions

1. Download the attached file, and unpack into your main forum directory, except for pungo_install.php which should go into your admincp directory. Make sure the file "custom.pws" is writable by apache, otherwise the "Learn" function will not work.

2. Run pungo_install.php in the admincp directory. Once you're done, edit the options in the vB options menu under the title "PungoSpell".

3. It has English setup by default. If you want it to use any other language, it's easy. Just edit the language setting from your control panel.

"en" stands for English. Change it to the code of the language you want. Like "fr" for French, for example. Make sure your system has the required dictionary. You see the dictionary config by typing "aspell config" at the command line, to see which dictionaries you have.

4. Edit each template where you'd like to have the spell checker. For example:

newreply template

A. Find

</head>

Add above

<script src="pungospell.js"></script>

B. Add somewhere the followin (below $navbar for example)g:
<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="pungospell.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:

<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:

<input type="button" class="button" value="Spell Check" onClick="spellCheck('vbform', '$editorid', '2');" />


And repeat the same steps for other templates like newthread etc.


Trouble shooting:

1. Learn doesn't work: Try this: Change the first line from custom.pws:

personal_ws-1.1 en 0

To:

personal_ws-1.1 english 0

en worked fine for me on Fedora and Gentoo, but I had to change to english on RHE.


2. Change language If you have learning enabled, affter you change the language from the admincp, you also, in the file custom.pws, the first line reads something like:

personal_ws-1.1 en 0

You will need to change en to the language you use, like fr


Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=83258) if you have installed this mod.

TruthElixirX
06-16-2005, 11:49 PM
Awesome hack Would install if I was running 3.5. :p

mholtum
06-17-2005, 12:38 AM
Awesome! thanks so much!

* mholtum installs

When I click "Spell Check" I get this error in the popup window.

Fatal error: Call to undefined function: pspell_config_create() in /home/mholtum/public_html/vbtest/pungospell.php on line 44

here is line 44:

$pspell_config = pspell_config_create($vbulletin->options['pungo_language']);

tamarian
06-17-2005, 02:28 AM
When I click "Spell Check" I get this error in the popup window.

Do you know if your PHP is compiled with PSPELL support?

You can find out by going to your admin panel -> Maintenance -> View PHP info

It should show a table for PSPELL and indicate it's enabled. If not, you may need to recompile PHP

mholtum
06-17-2005, 03:10 AM
Do you know if your PHP is compiled with PSPELL support?

You can find out by going to your admin panel -> Maintenance -> View PHP info

It should show a table for PSPELL and indicate it's enabled. If not, you may need to recompile PHP
I looked and couldn't find it.. How would I recompile PHP?

I contacted my host, and he replied:

it is not installed, but it can be.

I will take care of this tomorrow.

tamarian
06-17-2005, 03:26 AM
I looked and couldn't find it.. How would I recompile PHP?

Are you the server admin of your box? It could be tricky if you haven't done it before, so it's best to test on a test machine first. Here's how to do it:

http://www.vbulletin.com/forum/showthread.php?t=69072

You just need to add this in the PHP compile config step "--with-pspell"

mholtum
06-17-2005, 03:49 AM
Are you the server admin of your box? It could be tricky if you haven't done it before, so it's best to test on a test machine first. Here's how to do it:

http://www.vbulletin.com/forum/showthread.php?t=69072

You just need to add this in the PHP compile config step "--with-pspell"I am not the admin of my server, but I shot him an email and he is going to install it for me tomorrow.. Thanks for the imput.

Marco van Herwaarden
06-17-2005, 03:54 AM
Very nice.

But also seems like the vB developers have listened to the users and will be including a spell checker in Beta 2 (already active on vb.com).

tamarian
06-17-2005, 03:57 AM
I am not the admin of my server, but I shot him an email and he is going to install it for me tomorrow.. Thanks for the imput.

Good luck, I hope all goes well :)

tamarian
06-17-2005, 04:00 AM
Very nice.

But also seems like the vB developers have listened to the users and will be including a spell checker in Beta 2 (already active on vb.com).

It's great to have the new ieSpell on vB. But keep in mind it only works for IE. Some of us don't have Windows, or IE :) Some, who use the ieSpell, would still prefer other spell checkers.

Logikos
06-17-2005, 10:29 AM
So this does work with other broswers?

tamarian
06-17-2005, 11:04 AM
So this does work with other broswers?

Yes. The screenshots were taken of FireFox.

j_86
06-17-2005, 11:05 AM
The spell checking in VB3.50b2 only works for IE, and is quite the anticlimax. You have to download some freeware software that plugs into IE (and IE only) and when you press the button on the WYSIWYG editor, it activates the program.

Much better spell checking capabilities are needed I think.

tamarian
06-17-2005, 12:39 PM
For those who installed it already, there were 2 useless lines in the template edits:

<input type="hidden" name="toolbar" value="2" />

<input type="hidden" name="toolbar" value="1" />

You can delete those, as they are not needed. If you don't want to remove them, that fine, it's not a problem :)

mholtum
06-17-2005, 06:56 PM
ok, my host installed pungo and I get this error in the popup window. See attatchment.

Is that an error trying to pull up the dictionary file? For suggestions?
107 foreach ($suggestions as $suggestion) {

tamarian
06-17-2005, 07:09 PM
ok, my host installed pungo and I get this error in the popup window. See attatchment.

Is that an error trying to pull up the dictionary file? For suggestions?
107 foreach ($suggestions as $suggestion) {

What happens when you enter a normal sentence, with a misspelled word? Like "I can speel godd"?

mholtum
06-17-2005, 07:14 PM
I get a flash of error messages then the same error.


foreach ($suggestions as $suggestion) {


this is the line pulling the error

tamarian
06-17-2005, 07:17 PM
I get a flash of error messages then the same error.


foreach ($suggestions as $suggestion) {


this is the line pulling the error

Do you know if your server has aspell and dictionaries installed?

mholtum
06-17-2005, 07:37 PM
My host emailed me saying "Aspell and Pspell have both been installed on Tahoe. In case you need it aspell is in /usr/bin/aspell"

tamarian
06-17-2005, 07:44 PM
What's the output of this command:

aspel config

It might be a dictionary name issue, some encountered it in the 3.0.7 thread:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=65737

mholtum
06-17-2005, 07:58 PM
What's the output of this command:

aspel config

It might be a dictionary name issue, some encountered it in the 3.0.7 thread:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=65737
How do I run that command?

tamarian
06-17-2005, 08:20 PM
How do I run that command?

You do it from an SSH console. Or, you can ask your admin for the config of aspell. While you're at it, ask the admin if there's a dictionary for 'en'.

A few more tips: Disable the Learn function, to see if this is due to custom.pws file issues.

mholtum
06-17-2005, 09:07 PM
I disabled the learn feature and now it works!

tamarian
06-17-2005, 09:19 PM
I disabled the learn feature and now it works!

Good to hear :) I think I made it disabled by default.

Now you can try a few things, if you want, to see if it can still work in learn mode. Visit the 3.0.7 thread, and you can try some of the solutions there.

I will also release another spell checker that doesn't need PSPELL compiled in, and uses MySQL instead.

mholtum
06-17-2005, 10:26 PM
Thanks so much for the assistance.. I am not a n00b to hacking vb but I am to troubleshooting.. I love this feature as I am sure my members will as well, once I upgrade my live site... Thanks again.

dreck
06-19-2005, 05:03 PM
*Great Hack*

But, I was wondering what is different about this & the one I saw in 3.5.0 beta 2?
I noticed VB added a spell check button & when clicking it It as me to install ieSpell.
I did not notice this in beta 1, but I wasn't looking for it?

tamarian
06-19-2005, 05:54 PM
But, I was wondering what is different about this & the one I saw in 3.5.0 beta 2?
I noticed VB added a spell check button & when clicking it It as me to install ieSpell.
I did not notice this in beta 1, but I wasn't looking for it?

It was only introduced in beta2.

The difference is:

vB's spell checking is client side and requires Windows, IE and ieSpell downloaded and installed on each PC.

PungoSpell is server-side, and works on any platform and most browsers. Your members don't need to install or configure anything.

Check this post on vb.com for more details:

http://www.vbulletin.com/forum/showpost.php?p=892544&postcount=17

Martin
06-19-2005, 06:11 PM
How would this, especially porting to MySQL, affect large boards? It seems that if you have 300 users all checking their spelling at the same time, it might cause some probs.

tamarian
06-19-2005, 06:35 PM
How would this, especially porting to MySQL, affect large boards? It seems that if you have 300 users all checking their spelling at the same time, it might cause some probs.

It's on my to-do list to generate some benchmark numbers between PungoSpell and PHPSpell. Large boards can restrict these features to usergroups if they see any performance issues.

dreck
06-19-2005, 08:32 PM
It was only introduced in beta2.

The difference is:

vB's spell checking is client side and requires Windows, IE and ieSpell downloaded and installed on each PC.

PungoSpell is server-side, and works on any platform and most browsers. Your members don't need to install or configure anything.

Check this post on vb.com for more details:

http://www.vbulletin.com/forum/showpost.php?p=892544&postcount=17Thanks for the reply, I will definally read up before I deside.
Thanks!

Qualia
06-21-2005, 03:00 AM
I keep getting a blank window for the Spell check. I only put it on the newreply to test, since it's a test board anyway.

I also noticed in the custom.pws file, your copy in your post says
personal_ws-1.1 en 0

the one I downloaded says personal_ws-1.1 en 2

I'm not sure what the difference is, don't think it matters, but thought I'd ask.

Any idea why I'd get a blank window? I haven't heard back from the host if we have aspell or not but we do have pspell, I did check.

Thanks.

tamarian
06-21-2005, 03:09 AM
I keep getting a blank window for the Spell check. I only put it on the newreply to test, since it's a test board anyway.

I also noticed in the custom.pws file, your copy in your post says
personal_ws-1.1 en 0

the one I downloaded says personal_ws-1.1 en 2

I'm not sure what the difference is, don't think it matters, but thought I'd ask.

Any idea why I'd get a blank window? I haven't heard back from the host if we have aspell or not but we do have pspell, I did check.

Thanks.

When you tested, did you test as a user from the allowed usergroups? Make sure you have permission in the admin panel vB settings.

The number in custom.pws indicates the number of words added to the word list.

Qualia
06-21-2005, 03:14 AM
Yes, I did. We only have admins, mods and dummy accounts for this test board. I did what you said and changed the user group numbers in the vB options.

I use Netscape, (hate IE), and my friend, one of the other admins, is using Mozilla, we get the same thing.

I'll double check the user group numbers though, thanks for the quick reply. :)

Edit in:

What a moron... I put the number of users instead of the user ID. :nervous:

tamarian
06-23-2005, 05:10 PM
Note: PungoSpell does not yet work with Beta2, only beta1. An update will be posted when available.

theArchitect
07-12-2005, 11:36 AM
I am guessing that if it won't work with Beta 2 then it also won't work with beta 3 as I am getting the following errors:

Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en". in /pungospell.php on line 46

Warning: 0 is not a PSPELL result index in /pungospell.php on line 102

Warning: 0 is not a PSPELL result index in /pungospell.php on line 105

Warning: Invalid argument supplied for foreach() in /pungospell.php on line 107

Warning: 0 is not a PSPELL result index in /pungospell.php on line 102

Warning: 0 is not a PSPELL result index in /pungospell.php on line 105

Warning: Invalid argument supplied for foreach() in /pungospell.php on line 107

tamarian
07-12-2005, 11:47 AM
I am guessing that if it won't work with Beta 2 then it also won't work with beta 3 as I am getting the following errors:

Correct. The editor code iseems to change in each of the the beta stages, I'll wait for an RC release first, to avoid these problems.

Snake
08-09-2005, 08:44 AM
Will this hack work on RC2 I wonder?

tamarian
08-09-2005, 12:21 PM
Will this hack work on RC2 I wonder?

Yes, it should work fine. Also check vB Spell, it's easier to setup :)

Snake
08-09-2005, 01:44 PM
I have installed it already so you're too late. :p And by the way, I can install any hack. I don't have any troubles while installing them. Besides, it looks like Pungo is much better than vB Spell one.

Also, is there any chance you could change this hack to a plugin?

tamarian
08-09-2005, 02:16 PM
Also, is there any chance you could change this hack to a plugin?

Not sure what you mean. The hack does not require any changes to vBulletin's code.

Snake
08-09-2005, 03:20 PM
Oh right, sorry my bad. Just ignore my message.

Snake
08-09-2005, 07:04 PM
Uh I got a problem here. I have done the template edits for this hack but I still cannot view the spell check button. I have edited the newthread, newpost, and newpoll template bits. O.o Any idea?

tamarian
08-09-2005, 07:05 PM
Uh I got a problem here. I have done the template edits for this hack but I still cannot view the spell check button. O.o Any idea?

You might not be using the style you have edited :)

Snake
08-09-2005, 07:09 PM
Actually I donn't. I have just got the default vB skin installed on my forums so...

tamarian
08-09-2005, 07:12 PM
Actually I donn't. I have just got the default vB skin installed on my forums so...

Well, the button is just HTML code. If it doesn't show up, you must have misplaced it.

safiel
08-09-2005, 07:25 PM
Hey there.

I'm getting a javascript error in Firefox, on VB3.5RC2

Error: document.getElementById(fieldName + "_textarea") has no properties
Source File: http://www.bashanything.com/pungospell.js
Line: 27

Any advice?

tamarian
08-09-2005, 07:48 PM
Hey there.

I'm getting a javascript error in Firefox, on VB3.5RC2

Error: document.getElementById(fieldName + "_textarea") has no properties
Source File: http://www.bashanything.com/pungospell.js
Line: 27

Any advice?

Ah, I forgot to update the instructions to match the code changes.

Re-do step C in the template edits, which I have just updated. Let me know how it goes.

Snake
08-09-2005, 08:10 PM
Okay I can view the buttons now. I missed a few template edits. My bad. I'm having another problem though. When clicking on the 'Spell Check' button, nothing happens to me. :\

tamarian
08-09-2005, 08:18 PM
Okay I can view the buttons now. I missed a few template edits. My bad. I'm having another problem though. When clicking on the 'Spell Check' button, nothing happens to me. :\

Have you updated the template edits with the new step C?

safiel
08-09-2005, 10:15 PM
Ah, I forgot to update the instructions to match the code changes.

Re-do step C in the template edits, which I have just updated. Let me know how it goes.

That was it :)

Thanks for the quick reply and the wonderful hack.

Snake
08-10-2005, 09:29 AM
Have you updated the template edits with the new step C?

Yes, I have redone step C and still ain't working. Are you sure it's working fine on Firefox? Because I'm not using IE.

safiel
08-10-2005, 10:36 AM
Yes, I have redone step C and still ain't working. Are you sure it's working fine on Firefox? Because I'm not using IE.

I'm using it on VB3.5rc2 in Firefox and it works perfect.

Snake
08-10-2005, 11:08 AM
Hmm strange. I think I made a mistake somewhere on step B. So tell me exactly where you have placed the code (below one).

<form name="spell_form" id="spell_form" method="POST" target="spellWindow" action="pungospell.php">
<input type="hidden" name="spell_formname" value="">
<input type="hidden" name="spell_fieldname" value="">
<input type="hidden" name="spellstring" value="">
</form>

tamarian
08-10-2005, 03:32 PM
Hmm strange. I think I made a mistake somewhere on step B. So tell me exactly where you have placed the code (below one).

Somewhere below </head>

safiel
08-10-2005, 03:55 PM
A went above </head>. B went just below $navbar. C went right after the preview button. Some things you might want to check are: that Javascript is enabled in FireFox (options. It is by default). That the popup is not being blocked (FireFox doesnt block it for me), and that you're not getting any Javascript errors (check the Javascript console).

Snake
08-10-2005, 06:07 PM
Alright cool it's all working but I get a PHP error now. It says...

Fatal error: Call to undefined function: pspell_config_create() in /home/psi/public_html/forums/pungospell.php on line 44

tamarian
08-10-2005, 06:10 PM
Alright cool it's all working but I get a PHP error now. It says...

That means your PHP is not compiled with PSPELL support. You will need to recompile PHP, or go fro vB Spell :)

Snake
08-10-2005, 07:37 PM
OK, I'll just go for vB Spell I guess. :)

welo
08-12-2005, 07:54 PM
Have it installed and running well on 3.5 RC2. Good job on this :up:.

However, there is an issue when using preview. Seems as though if you have already spellchecked something, preview it then run spellcheck again, the spellchecker has the idea it needs to revert everything back to the original edit. Then you lose everything you wrote after previewing soon as you spellcheck. Could this have something to do with blank value=""s in the hidden tags?

tamarian
08-12-2005, 08:52 PM
However, there is an issue when using preview. Seems as though if you have already spellchecked something, preview it then run spellcheck again, the spellchecker has the idea it needs to revert everything back to the original edit. Then you lose everything you wrote after previewing soon as you spellcheck. Could this have something to do with blank value=""s in the hidden tags?

I just tested this, and was unable to reproduce this. When you preview, do you leave the spell check window open? The spell-checked content is only copied to the post when the spell checking is completed at the last checked word, or if you press the button "Done".

welo
08-12-2005, 09:12 PM
I just tested this, and was unable to reproduce this. When you preview, do you leave the spell check window open?

Nope. How can you? Soon as the alert window says "Spell checking complete" and you hit "ok" it closes the popup. The weird thing is you can continue with multiple edits as long as you don't preview. Soon as you preview the whole thing chokes.

I'm using Firefox 1.0.6 on W2K btw. Haven't checked it in other browsers yet.

tamarian
08-12-2005, 09:33 PM
Nope. How can you? Soon as the alert window says "Spell checking complete" and you hit "ok" it closes the popup. The weird thing is you can continue with multiple edits as long as you don't preview. Soon as you preview the whole thing chokes.

I'm using Firefox 1.0.6 on W2K btw. Haven't checked it in other browsers yet.

I use Firefox 1.0.6, and it happens to be the browser I've tested with. I was able to preview, after spell checking, and the updated text appeard in the spell checker.

welo
08-13-2005, 03:12 AM
Hmm. Okay then. Just in case I explained it incorrectly, here's exactly what I do to get the error:

Get to an editor and write anything (preferably something with spelling errors)
Spellcheck
Preview
Add anything else to your message
Spellcheck again

Whatever I have added won't show up in the spellchecker. However, if I add some more text, preview it and then spellcheck, it seems to work.

welo
08-13-2005, 05:17 AM
(from hack description)
4. Edit each template where you'd like to have the spell checker. For example:
...
And repeat the same steps for other templates like newthread etc.

Since I notice that whenever spellchecker hacks traditionally show up around here, those are the recurring general instructions, while I installed PungoSpell this time I actually kept track of all my template edits :). Here's the list:

editpost - Adds the spellchecker to Advanced Mode editing (won't show up in the AJAX-generated version of the inline editor)
New Posting Templates > newthread - Whenever a new thread is being posted
New Posting Templates > newreply - When replying to an existing thread
Private Message Templates > USERCP_SHELL, pm_newpm - Adds spellchecking to PM system. To do this one the <script src="pungospell.js"></script> script must go in the head of USERCP_SHELL, the <form name="spell_form"> code goes in the same template under the $navbar var, then the buttons are added to the pm_newpm template.
Calendar Templates > calendar_edit - Adds spellchecking to calendar events. Note there are two sets of submit and reset buttons in this template. Your spellchecker button should go in the first of these (the buttons directly under all the hidden tags, not the button set at the end of the page).

I thinks that's it. Tried adding it to the contactus template for the board's contact form and for some reason it won't work there. Not entirely sure why.

Hope this helps someone :).

tamarian
08-13-2005, 05:32 PM
Hmm. Okay then. Just in case I explained it incorrectly, here's exactly what I do to get the error:

Get to an editor and write anything (preferably something with spelling errors)
Spellcheck
Preview
Add anything else to your message
Spellcheck again

Whatever I have added won't show up in the spellchecker. However, if I add some more text, preview it and then spellcheck, it seems to work.

O.k., I was able to reproduce it with these steps :) Will takea look and see if there's a way around it.

tamarian
08-13-2005, 09:48 PM
Whatever I have added won't show up in the spellchecker. However, if I add some more text, preview it and then spellcheck, it seems to work.

Welo, give the new version a try. Download the zip, and just upload pungospell.js. Let me know how it goes.

welo
08-14-2005, 03:05 AM
I think that did it, bud. Tried every way I could to break it :D and it works exactly fine now. Thanks for fixing it :). This is a great hack. :up:

Chadi
08-18-2005, 12:34 AM
is this better than vbspell?

tamarian
08-18-2005, 01:34 AM
is this better than vbspell?

I would say no. PSPELL and Aspell depend on your PHP compilation, and from past experience, some problems may occur when you upgrade PHP. So, a lot of things can go wrong. vB Spell is more stable, IMHO.

welo
08-29-2005, 02:15 AM
Okay, I finally got a chance to work with skinning the spellchecker interface today and came up with a layout I think is pretty nice. Attached is an altered version of pungospell.php containing the template. Feel free to use it if you want (it's named welo-pungospell.php so naturally you have to rename it).

One thing I'm having trouble figuring out though, is how to get the iframe to use my fonts and background colors (IE6 is being especially stubborn about this). Might have to just rename it to a php file and import the css that way.

tamarian
08-29-2005, 02:23 AM
One thing I'm having trouble figuring out though, is how to get the iframe to use my fonts and background colors (IE6 is being especially stubborn about this). Might have to just rename it to a php file and import the css that way.

Yes, renaming to PHP, then you can import your vB CSS and use it. vB Spell does that, you can check it out there.

tamarian
10-03-2005, 11:41 AM
Does this all work well with 3.5 gold?

Yes, it should work fine.

tamarian
10-03-2005, 12:35 PM
Superb, thanks.

Any reason (functions wise) this seems less popular and vB spell? I personally like the idea/method of this better?!

The problem with PungoSpell is that it requires recompiling PHP with PSPELL support. Many have no access to setup their servers (shared host), so vB Spell is easier to install.

akanevsky
10-22-2005, 09:48 PM
Why doesn't this use the vBulletin product installer? Make this a product :)

tamarian
10-22-2005, 09:56 PM
Why doesn't this use the vBulletin product installer? Make this a product :)

Because it predated products :)

akanevsky
10-22-2005, 10:06 PM
I know :) But it's 5 minute to import it into a product ;) Come on man, do it.

Xplorer4x4
11-01-2005, 02:12 PM
So I have read the entire thread and have just one question...does this perform a spell check automaticly when you click reply or preview or is it a manual button like IESpell?

tamarian
11-01-2005, 02:32 PM
So I have read the entire thread and have just one question...does this perform a spell check automaticly when you click reply or preview or is it a manual button like IESpell?

This is a server side spell checker, not a client side checker like IESpell. It will only launche if you click the spell button.

Xplorer4x4
11-01-2005, 02:35 PM
Then I suppose your vBspell hack is not automatic either? Is there an automatic version?

tamarian
11-01-2005, 02:39 PM
Then I suppose your vBspell hack is not automatic either? Is there an automatic version?

Not that I know of.

Xplorer4x4
11-01-2005, 02:42 PM
Well spellingcow.com had a version for phpBB2 and it says to know be vB compatible. Just rembered there old versions were not vB compatible so thanks anyways.

Lea Verou
11-01-2005, 05:26 PM
tamarian do you remember me? I'm the one that liked vbspell a lot but couldn't make it work with greek. Do you think there is any possibility that this will work?

tamarian
11-01-2005, 07:27 PM
tamarian do you remember me? I'm the one that liked vbspell a lot but couldn't make it work with greek. Do you think there is any possibility that this will work?

It does work for Greek, but there might be a problem with your host? If I recall, they won't change anything on the server, and this one requires PHP to have PSPELL compiled in it, and that the server has aspell installed along with the needed dictionaries.

Lea Verou
11-01-2005, 11:24 PM
It does work for Greek, but there might be a problem with your host? If I recall, they won't change anything on the server, and this one requires PHP to have PSPELL compiled in it, and that the server has aspell installed along with the needed dictionaries.

Can I determine if those are installed with phpinfo()?

Also, the problem with my host isn't that he refuses to change someting that he admits has a problem, but that he never admits that any problem is caused by him :p :rolleyes:

tamarian
11-02-2005, 12:11 AM
Can I determine if those are installed with phpinfo()?

You can tell if it has PSPELL, but not aspell or the dictionaries. These can only be found from the command line or from your host.

Lea Verou
11-02-2005, 02:24 AM
You can tell if it has PSPELL, but not aspell or the dictionaries. These can only be found from the command line or from your host.

Oh dear. I'll test it in my test forum in a few days. If it works I..., I..., well I don't know what I'll do but I'll definately be one of the happiest admins alive :p :p :D
I have a feeling that this will work! :D


edit: Arghhhhh I just saw I don't have pspell compiled!!! I'm about to kill my host :devious::devious::devious::devious::devious: :(

thewitt
11-02-2005, 04:34 PM
I have not looked at the code yet, but one of my client's hosting companies will not compile pspell into PHP. aspell is installed and they suggest simply calling the aspell binary like these guys do.

http://chxo.com/scripts/spellcheck.php

Any thoughts on how difficult it would be to drop the requirement for pspell?

-t

Lea Verou
11-02-2005, 04:37 PM
They told me that they WILL compile pspell and include that aspell thing with greek support as well!!! :D :D :D

I just hope it works this time...

tamarian
11-02-2005, 05:52 PM
I have not looked at the code yet, but one of my client's hosting companies will not compile pspell into PHP. aspell is installed and they suggest simply calling the aspell binary like these guys do.

http://chxo.com/scripts/spellcheck.php

Any thoughts on how difficult it would be to drop the requirement for pspell?

I don't think it's that difficult. But, IMHO, it's extremelly unprofessional for a hosting company to recommend this, as it exposes the system outside the WWW root directory. That's the whole point of PSPELL, is to avoid that exposure.

tamarian
11-02-2005, 05:53 PM
They told me that they WILL compile pspell and include that aspell thing with greek support as well!!! :D :D :D

I just hope it works this time...

I am impressed :)

ImLagging
11-13-2005, 07:50 PM
I just upgraded my forums from vB 3.0.x to 3.5.1 and upgraded to the latest PungoSpell as well. So far everything seems to work, but when I click the Done button, the spell check window doesn't close and the updated/spell checked post doesn't get updated into my post window. Any ideas?

tamarian
11-13-2005, 09:58 PM
I just upgraded my forums from vB 3.0.x to 3.5.1 and upgraded to the latest PungoSpell as well. So far everything seems to work, but when I click the Done button, the spell check window doesn't close and the updated/spell checked post doesn't get updated into my post window. Any ideas?

On all templates, or just quick edit?

Dutchmang
12-01-2005, 01:07 AM
Thanks for an excellent mod. It bugged me that only IE users got this feature. Installed with cclaerhout's hack and works like a charm.

>clicks install<

ludachris
01-03-2006, 04:18 PM
I just upgraded to 5.2, installed this hack and it doesn't seem to work. When you click the Spell Check button, nothing happens. There seems to be a javascript error. This happens on every page I try and use the code.

dt-pain
01-03-2006, 07:27 PM
I get this after install

Fatal error: Call to undefined function: pspell_new() in /home/xmsquad/public_html/x/forumsVB/pungospell.php on line 50

ludachris
01-06-2006, 02:06 PM
I just upgraded to 5.2, installed this hack and it doesn't seem to work. When you click the Spell Check button, nothing happens. There seems to be a javascript error. This happens on every page I try and use the code.

Is there no more support for this hack?

ludachris
01-13-2006, 01:48 PM
Just to let everyone know, this hack does not seem to work in 3.52 or 3.53 - I have it working on a 3.51 site with no problems, but the newer vb versions spit out javascript errors. I'd wait until this hack is updated to install it on a new version of vb.

Mark.B
04-13-2006, 09:10 PM
I've just installed it on my test 3.5.4 board and it's fine. I need it there as it's a popular feature on my current live 3.0 site.

welo
04-14-2006, 12:46 PM
I've been running it on 3.5RCX and up without issue.

Jesus05uk
05-18-2006, 05:27 PM
Sorry to bump this thread.

Could you modify it to just highlight the text in their post and not offer any corrections or spell check panel?

Luke Brown256
08-19-2006, 08:05 PM
Hi by any chance will this be ported to 3.6

Konstantinos
10-20-2006, 07:38 PM
for the greek lang i set it to gr or el ?

Konstantinos
10-22-2006, 07:14 AM
it works for english but not for greek. i have pspell and aspell with greek dictionary but when i press spell check it doesnt check the greek lang. in admin cp and custom.pws is set as el

piotrc
10-23-2006, 09:17 AM
Will it work on 3.6.2 ?