UBB.Dev
Posted By: LK [6.4] Spell Check - 12/25/2002 10:13 PM
Name: Spell Check 1.6

Original Authors: Bandit_1234, Anime-loo. Oh, and me. wink

Description: Lets you check for spelling mistakes in your post.

Link: ZIP File or MultiHack File

Demo: http://www.lkworld.com

Requirements: UBBâ„¢ 6.4.0 , Mod Wordlets Devkit , Modification CP Addon

Number of Downloads: [img]https://ubbdev.com/lk/num.php?s=spell64.zip,spell64.mhp[/img]
Posted By: Gizmo Re: [6.4] Spell Check - 12/27/2002 1:42 AM
LK, just a sugguestion, fix the links in the file on your site, it points to:

http://www.multihack.com/lk/download.cgi?f=mods.zip

and

http://www.multihack.com/lk/download.cgi?f=modaddon64.zip

Both of which didn't work at 3:30p PST.
Posted By: Gizmo Re: [6.4] Spell Check - 12/27/2002 10:47 PM
Hey LK, any clue what the code is to add spellcheck to the Quick Reply bar? I looked at previous posts on both hacks but they don't say which file to modify and I'm not sure if the code still works through 6.4 :x.
Posted By: LK Re: [6.4] Spell Check - 12/28/2002 9:54 AM
public_topic_page.pl
Find:
Code
[/code]add below:
Code
</pre></div></div>find:<div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
replace with:[code]
Posted By: wOw Re: [6.4] Spell Check - 12/28/2002 2:22 PM
LK do the Mod Wordlets Devkit and the Modification CP Addon still work with 6.4?
Posted By: Hexican Re: [6.4] Spell Check - 12/31/2002 3:44 PM
Everything loaded fine but when I click the Spell Check button, a window opens but it is blank. No error just a blank window. I have the ubb_spell chmod at 755. Double checked the hacked code and it looks right...

Any thoughts or similiar problems?

Thanks and Happy New Year!!!
Posted By: Hexican Re: [6.4] Spell Check - 12/31/2002 3:45 PM
***edit***
Posted By: Rattler til Death Re: [6.4] Spell Check - 12/31/2002 9:58 PM
Quote
quote:
Originally posted by WL7:
Everything loaded fine but when I click the Spell Check button, a window opens but it is blank. No error just a blank window. I have the ubb_spell chmod at 755. Double checked the hacked code and it looks right...

Any thoughts or similiar problems?
I get the same thing with this error message:
Can't locate LWP/UserAgent.pm in @INC (@INC contains: ./Modules . /usr/local/etc
/httpd/cgi-bin/ubb /usr/local/etc/httpd/cgi-bin/ubb/Modules /usr/local/lib/perl5
/5.00503/i386-freebsd /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl /usr
/local/lib/site_perl .) at /usr/local/etc/httpd/cgi-bin/ubb/ubb_spell.cgi line 4
3.
Posted By: LK Re: [6.4] Spell Check - 12/31/2002 10:07 PM
Ask your host to install LWP, URI and HTTP modules... shocked
Posted By: Rattler til Death Re: [6.4] Spell Check - 12/31/2002 10:59 PM
LK, thanks. Now I get this error:
Can't locate object method "post" via package "LWP::UserAgent" at /usr/local/etc
/httpd/cgi-bin/ubb/ubb_spell.cgi line 45.
Posted By: LK Re: [6.4] Spell Check - 01/17/2003 1:32 PM
It's because your host didn't install it well enough, I guess tipsy
Posted By: Autocrosser Re: [6.4] Spell Check - 01/30/2003 3:53 PM
***Nevermind, I went back and multihacked all of these mods and they appear to be working correctly now. I guess I missed something when doing them manually.***

I started getting this error after implementing the Spell Check/CP Addon and the ModWordlets.

It works fine until I make a post, but after that and I try to get into any forum I get the error.

Anyone have any idea where this may come from?
Quote
quote:

Illegal division by zero at CGIPath/ubb_forum.cgi line 483
The code at that line is
quote:
[qb]
my $page_total = int($total_posts / $vars_display{HTMLDisplayMax});
[/qb]
Posted By: Ed Re: [6.4] Spell Check - 03/07/2003 8:10 PM
Where can one get these files?
Mod Wordlets Devkit and Modification CP Addon

Thanks,
Ed
Posted By: Painfool Re: [6.4] Spell Check - 03/08/2003 3:44 AM
Quote
quote:
Originally posted by Ed:
Where can one get these files?
Mod Wordlets Devkit and Modification CP Addon

Thanks,
Ed
They are linked in the first post - where it mentions the requirements. laugh
Posted By: Ed Re: [6.4] Spell Check - 03/08/2003 5:34 AM
Quote
quote:
Originally posted by Painfool:
quote:
[qb]Originally posted by Ed:
Where can one get these files?
Mod Wordlets Devkit and Modification CP Addon

Thanks,
Ed
[/qb]
They are linked in the first post - where it mentions the requirements. laugh

Thanks - those links were not live this afternoon
Posted By: Gizmo Re: [6.4] Spell Check - 03/08/2003 4:56 PM
Ed, a secret, their not always up either :x...
Posted By: Ed Re: [6.4] Spell Check - 03/08/2003 8:26 PM
Quote
quote:
Originally posted by LK:
Ask your host to install LWP, URI and HTTP modules... shocked
Hi Guys,
I checked my server modules and these three are installed. Does the HTTP module have to be just "HTTP"?
In other words there are a number of HTTP so and so's but not just HTTP.

I get the blank page thing when spell checkin'

In fact all I get is "Powered by Infopop Corporation
UBB.classicTM 6.5.0" when I spell check on this site.

Thanks,
Ed
Posted By: ADWOFF Re: [6.4] Spell Check - 03/10/2003 9:18 AM
Quote
quote:
Originally posted by LK:
Ask your host to install LWP, URI and HTTP modules... shocked
I have a stooooopid question to ask: are these modules needed for the spell check to work with the 6.4/6.5 boards, or is this something that's always been true?

I ask because I have the spell check on my current board (6.3.0), and I tried to install the hack into my test site's 6.5.0 board, and I came up with the blank page.
Posted By: Ed Re: [6.4] Spell Check - 03/10/2003 8:19 PM
Does anyone have this working on UBB 6.5 ?
Posted By: Gizmo Re: [6.4] Spell Check - 03/10/2003 8:44 PM
I do smile ... http://www.promodtecnologies.com/cgi-bin/ubb/ultimatebb.cgi
Posted By: Painfool Re: [6.4] Spell Check - 03/10/2003 9:37 PM
I do, and I don't write hacks, I break um smile
Posted By: LK Re: [6.4] Spell Check - 03/11/2003 12:26 AM
ADWOFF, the older versions didn't require those modules...

Ed, it's HTTP and HTTP::many others.
Posted By: Ed Re: [6.4] Spell Check - 03/11/2003 4:04 PM
I got it working - but not without tweaking the code.

Here are the HTTP Modules on my server:
HTTP::Cookies
HTTP::Daemon
HTTP::Date
HTTP::Headers
HTTP::Headers::Auth
HTTP::Headers::ETag
HTTP::Headers::Util
HTTP::Message
HTTP::Negotiate
HTTP::Request
HTTP::Request::Common
HTTP::Response
HTTP::Status
Posted By: LK Re: [6.4] Spell Check - 03/11/2003 6:53 PM
Ed, would you mind telling us what did you tweak? tipsy
Posted By: Ed Re: [6.4] Spell Check - 03/11/2003 9:30 PM
Hi LK,
I went back to your 6.3 code to see what was different. I looks like I couldn't get ubb_spell.cgi to call 'http://www.spellcheck.net/cgi-bin/spell.exe therefore the blank page.

In files - Open public_new_topic_form.pl, public_new_reply_form.pl, public_pm_form.pl and public_edit_post.pl

I replaced this:
"window.open('$vars_config{CGIURL}/ubb_spell.cgi?f=$in{f}', 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=yes,width=$vars_modifications{spellcheck_width},height=$vars_modifications{spellcheck_height}');" />)
: ""
);

with this
"window.open('http://www.spellcheck.net/cgi-bin/spell.exe?action=checkpg&string='+escape(document.replier.message.value), 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=$vars_modifications{spellcheck_width},height=$vars_modifications{spellcheck_height}');" class="buttons" />) : ""
);


Now it works - if you could tell me why it won't work as you have written it for 6.5 I will make the corrections.

Thanks,
Ed
Posted By: LK Re: [6.4] Spell Check - 03/11/2003 11:17 PM
Your version shows the plain spellcheck.net version, mine uses your colors, and in one click you can add the text to the UBB...
Posted By: Ed Re: [6.4] Spell Check - 03/11/2003 11:42 PM
Hi LK,
I realize that your version uses "my colors etc."
Can you tell me why I get the blank page when I call for a " Spell Check" using your version?

Ed

I guess not
Posted By: catcherman Re: [6.4] Spell Check - 04/19/2003 7:57 AM
I'm getting the same problem:

[code][/code]But I don't really get what you're talking about above...
Posted By: catcherman Re: [6.4] Spell Check - 04/22/2003 7:49 PM
Can anyone help with this?
Posted By: catcherman Re: [6.4] Spell Check - 04/25/2003 9:34 AM
I don't mean to be a pest, but I'm still looking for some help on this...
Posted By: AllenAyres Re: [6.4] Spell Check - 04/25/2003 9:12 PM
LK is outta town for another week or so... you might check that you have the latest modules installed. smile
Posted By: Ed Re: [6.4] Spell Check - 04/26/2003 4:11 PM
Catcherman,
Below is what I did to get it to work on 6.50. I have not yet been able find out why it won't work using LKs code. In fact I still can not get it to work on this site. Maybe it is a browser issue.
thumbsup
Ed


Quote
quote:
Originally posted by Ed:
Hi LK,
I went back to your 6.3 code to see what was different. I looks like I couldn't get ubb_spell.cgi to call 'http://www.spellcheck.net/cgi-bin/spell.exe therefore the blank page.

In files - Open public_new_topic_form.pl, public_new_reply_form.pl, public_pm_form.pl and public_edit_post.pl

I replaced this:
"window.open('$vars_config{CGIURL}/ubb_spell.cgi?f=$in{f}', 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=yes,width=$vars_modifications{spellcheck_width},height=$vars_modifications{spellcheck_height}');" />)
: ""
);

with this
"window.open('http://www.spellcheck.net/cgi-bin/spell.exe?action=checkpg&string='+escape(document.replier.message.value), 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=$vars_modifications{spellcheck_width},height=$vars_modifications{spellcheck_height}');" class="buttons" />) : ""
);


Now it works - if you could tell me why it won't work as you have written it for 6.5 I will make the corrections.

Thanks,
Ed
Posted By: LK Re: [6.4] Spell Check - 04/27/2003 10:36 PM
Yeah, it's probably modules...
Posted By: JayM Re: [6.4] Spell Check - 04/28/2003 9:32 PM
My ISP wants to know specifically which LWP, URI, and HTTP modules I need. They say that there are multiples of each and they only want to implement the ones necessary.

Can you help me out with a list?
Posted By: LK Re: [6.4] Spell Check - 04/28/2003 10:09 PM
The only module it requires is LWP::UserAgent, but this module requires many others. I can't check now cause for some reason I can't find the modules in my apache2 folder ( confused ) but it's all the modules LWP::UserAgent requires, and the modules they require, and the modules they require. the easiest thing to do is upload all LWP, URI and HTTP modules.
Posted By: JayM Re: [6.4] Spell Check - 04/28/2003 10:25 PM
Thanks. Hopefully, they'll follow your advice.
Posted By: catcherman Re: [6.4] Spell Check - 04/29/2003 8:40 PM
Quote
quote:
Originally posted by Ed:
Catcherman,
Below is what I did to get it to work on 6.50. I have not yet been able find out why it won't work using LKs code. In fact I still can not get it to work on this site. Maybe it is a browser issue.
thumbsup
Ed
Thanks Ed. That did the trick.
Posted By: JayM Re: [6.4] Spell Check - 05/06/2003 9:51 PM
Supposedly, my ISP added all the LWP, URI, and HTTP modules, and I still get the blank window. Is there any way for me to test to see that they've actually done it correctly?

Also, I made the changes suggested by Ed. I can get it to work for a normal posting and reply, but it causes the Quick Reply box to disappear. I don't understand this because the original Spell Check hack from LK doesn't interfere with Quick Reply. It works fine except for the blank window.

Any suggestions?

Another thing I don't understand about Spell Check. In previous versions, after making corrections, you could press a button to have the corrected text put into the original form. This button doesn't appear, and I don't see how it's supposed to work.
Posted By: catcherman Re: [6.4] Spell Check - 05/14/2003 12:39 PM
Ed, did you have this same problem with the Spell Check on your Quick Reply?

It's late, I'm tired, so I might be missing something obvious, but the Spell Check works on the reply screen, but not on the quick reply.

With the Quick Reply I'm getting that same error as before.
Posted By: LK Re: [6.4] Spell Check - 05/14/2003 12:48 PM
When you use it on quick reply you have to replace all ' (single-quote) with \' (two backslashes and a single-quote).
Posted By: catcherman Re: [6.4] Spell Check - 05/29/2003 7:21 PM
In which file? ubb_spell.cgi?
Posted By: Ian Spence Re: [6.4] Spell Check - 05/29/2003 11:21 PM
Did any of you use the multihack file? I was getting an error with it. What it was supposed to do was add the spellcheck button after the preview post button, but what it placed the spellcheck_button in the middle of the declaration of the the previewpost button

Code
[/code]^not good, if you have that, remove the $spellcheck_button and add it after

[code]
that might fix it for one of you
Posted By: jlm Re: [6.4] Spell Check - 06/02/2003 3:27 AM
This works great and installed perfect the first time. A couple questions:

1. Can we have the pop up window close after clicking add text to ubbform?

2. How can I put this in the edit post page?

Thanks!
Posted By: LK Re: [6.4] Spell Check - 06/02/2003 1:56 PM
1. in ubb_spell, where it has a button, add window.close() in the onclick part (untested).

2. it should already be in edit post. if it isn't, what you did in new topic form, do exactly the same in public_edit_form
Posted By: catcherman Re: [6.4] Spell Check - 06/04/2003 10:20 PM
Quote
quote:
Originally posted by LK:
When you use it on quick reply you have to replace all ' (single-quote) with \' (two backslashes and a single-quote).
quote:
[qb]Originally posted by catcherman:
In which file? ubb_spell.cgi?[/qb]
Posted By: LK Re: [6.4] Spell Check - 06/05/2003 8:10 AM
no, public_topic_page.pl
Posted By: catcherman Re: [6.4] Spell Check - 06/05/2003 7:43 PM
LK, that didn't work.

I don't think it's the modules because it works on all the other instances besides quick reply.

I added the \ before every ' in public_topic_page.pl.
Posted By: Ed Re: [6.4] Spell Check - 06/05/2003 10:56 PM
Hi Catcherman,
I do not have "Quick Reply" installed but I have been reading this conversation you are having with LK and I am wondering if you need to do the backslash thing in all the hacked files.
That is:
In files - Open public_new_topic_form.pl, public_new_reply_form.pl,
public_pm_form.pl and
public_edit_post.pl

Ed
Posted By: Ian Spence Re: [6.4] Spell Check - 06/05/2003 11:15 PM
Code
[/code]use that, it works  :) 

then add $spellcheck_button right after the $preview_button in public_topic_page.pl

Also, make sure you added the code right after
[code]
That worked for me fine
Posted By: Zammit Re: [6.4] Spell Check - 06/15/2003 8:44 AM
Hmm, nevermind my original post (contained below) I was tired... hadn't chmod'd the dang file. sleep

But, now I get the 'blank page' problem, after I hit the spellcheck button.

Nevermind this:
I'm getting this error in my Apache log:
Quote
quote:

Premature end of script headers: /home/virtual/site33/fst/var/www/cgi-bin/ubb_spell.cgi
Running UBB.classic 6.5.0

Any help would be greatly appreciated!

Thanks,

Zammit
Posted By: Digital Boy Re: [6.4] Spell Check - 01/05/2004 4:44 PM
Does anyone know if this works or will work for 6.6.1?

- MT
Posted By: Gizmo Re: [6.4] Spell Check - 01/06/2004 1:16 AM
it SHOULD work, all but the Modification CP Addon that we're all anticipating a 6.7 release on...
Posted By: AllenAyres Re: [6.4] Spell Check - 02/10/2004 7:00 PM
smile Should be simple to remove the cp integration?
Posted By: LK Re: [6.4] Spell Check - 02/10/2004 7:32 PM
Very... Just where you see $vars_modification{spellcheck_height} replace it with 625 or something, and with "width" replace it with 500 or something.
Posted By: AllenAyres Re: [6.4] Spell Check - 02/10/2004 7:49 PM
thank you LK smile
Posted By: Gizmo Re: [6.4] Spell Check - 02/10/2004 9:08 PM
Why not just use $vars_display{'PopupHeight'} and $vars_display{'PopupWidth'} which are defined in ubb_lib.cgi?
Posted By: LK Re: [6.4] Spell Check - 02/10/2004 10:32 PM
Because they're too small for this popup...
Posted By: Gizmo Re: [6.4] Spell Check - 02/10/2004 11:50 PM
Lol the width is smaller by 50 and the height doesn't really matter, they can scroll...
Posted By: AllenAyres Re: [6.4] Spell Check - 02/11/2004 12:04 AM
there is one thing left and that would be:

$vars_modifications{spellcheck_enable} ne "no"

would be ok to just delete that? It's for the button smile
© UBB.Developers