vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Free Spellchecking is Here (https://vborg.vbsupport.ru/showthread.php?t=37398)

rstark 01-22-2003 07:40 AM

My host has the aspell libraries installed at /usr/bin/aspell. I put the spell.pl file in the cgi-bin folder and CHMOD the folder and file to 777. When I click on the spell check button, I get an internal server configuration error.

hpsonline 01-23-2003 01:42 PM

Greetings!

I am one of those computer illiterate people, who don't know anything about computers, and constantly make spelling mistakes too...

i want to install the spelling checker at my forum at http://www.hpscleansing.com

can somebody here guide me through it (hacks, smaks) step by step so that i can get it up and running... it will help a lot of people at my group....

please advise.

btw, i don't see it used here at this forum, why, is it so problematic?

peace

Steve St.Lauren 02-10-2003 06:24 PM

Got this hack installed last night - AWESOME hack!! Real easy to install and runs great - THANKS

USODJA 03-15-2003 05:27 PM

Not working for me in 2:30

~rc~ 07-11-2003 01:28 PM

Any suggestion on how to add this to quick reply box?

ice9 07-16-2003 03:30 PM

Quote:

01-14-03 at 03:06 AM 94supratt said this in Post #80
I get no drop down box for misspelled words. HELP!
Do you have the aspell dictionary installed? The dictionary files are available at http://ftp.gnu.org/gnu/aspell/dict/.

Or, if you're using the newer version of spell.pl, from http://www.dontpokebadgers.com/spellchecker/ , it comes with a custom.dic file. Try deleting that file, and see if that works.

Ninth Dimension 07-17-2003 10:31 AM

great hack, got it working with a little help from my host. i had the same problem as 94supratt but was easily fixed once the dictornary files where installed.

94supratt 08-12-2003 07:21 PM

I've done everything and all I get is INTERNAL SERVER ERROR.

ice9 08-12-2003 07:46 PM

Quote:

Today at 02:21 PM 94supratt said this in Post #88
I've done everything and all I get is INTERNAL SERVER ERROR.
1. check permissions; I would chmod it to 777 first, and if that works, turn it down to 755 and see if it works
2. make sure the path to perl is correct in the first line of spell.pl
3. make sure the script is in a directory where your host allows CGI scripts to run

Otherwise, check your error logs, and find the exact error text that corresponds to the internal server error.

94supratt 08-12-2003 07:57 PM

Quote:

Today at 09:46 PM ice9 said this in Post #89
1. check permissions; I would chmod it to 777 first, and if that works, turn it down to 755 and see if it works
2. make sure the path to perl is correct in the first line of spell.pl
3. make sure the script is in a directory where your host allows CGI scripts to run

Otherwise, check your error logs, and find the exact error text that corresponds to the internal server error.


I tried 777 but not 755. It is in the correct path to perl. I verified that with my webhost. The shell.pl file is in the CGI-BIN directory.

ice9 08-12-2003 10:55 PM

If it doesn't work at 777, then changing it to 755 won't help.

By shell.pl, you mean spell.pl, right? Also, check to make sure that your server will run CGI scripts that end in ".pl". Sometimes a ".cgi" suffix is required.

The next step I would take is to look at my server error logs, and find the exact, specific error that corresponds to your attempt to access the script.

94supratt 08-12-2003 11:12 PM

Quote:

Today at 12:55 AM ice9 said this in Post #91
If it doesn't work at 777, then changing it to 755 won't help.

By shell.pl, you mean spell.pl, right? Also, check to make sure that your server will run CGI scripts that end in ".pl". Sometimes a ".cgi" suffix is required.

The next step I would take is to look at my server error logs, and find the exact, specific error that corresponds to your attempt to access the script.


Yeah typo on my part the shell.pl thing.

Chris Blount 09-13-2003 12:29 PM

Does anyone know how to get this spell check to work with a WYSIWYG editor?

Chris Blount 10-27-2003 01:52 PM

Anyone?

UberX 10-30-2003 11:00 PM

I'm trying to figure that out right now...
I'll get back to you if I'm successful.

lierduh 11-04-2003 07:52 PM

Just installed and works great.

Seeing some people are having problem with the perl script. Here is my note.

1)Making sure your server support cgi-bin in the location you want.

I have:

ScriptAlias /cgi-bin/ /var/www/html/forums/cgi-bin/

under my virtual host setting. It assigns the location of the cgi-bin alias as well as allowing script excuting under that directory.

2) Permissions

For cgi-bin I have 711 (I never use 755, don't like the idea of people going through my cgi-bin directory)

for the perl script I have 755.

There is no need to have 777. It is very dangerous to say the least. eg. Anyone on the server can put their own cgi script in your cgi-bin directory. Also if you have 777 for the script, anyone on the server can alter it's contents!

3)Line wrapping.

Perl does not like Windows line wrapping: \r\n.

Under Unix, the line wrapping is \n. So you either need to upload your script in text mod, or if you unzip the file on the server as I do. Fix the script using:

dos2unix spell.pl

(If you open the file under a consol, and discovered a M at the end of each line. You have windows line wrapping!, naturally you can manually remove it under the consol one by one)

atomic fireball 11-08-2003 02:47 AM

Quote:

Originally Posted by ice9
If it doesn't work at 777, then changing it to 755 won't help.

Strangely, for my server this isn't true.
I had it set to 777, thinking this would be fine for the testing and always got an INTERNAL SERVER ERROR. Then, chmod to 755, and whammo, it worked like a charm.

So for anyone getting an internal server error, be sure to check your paths to the spell.pl as stated, and also be sure to chmod the file itself to 755. Worked like a charm, great hack!

This can also be applied to the Quick Reply box with ease.

Just made a small addition to the showthread_replybox template that you needed to custom create for the quick reply hack.

Add the same "form" text from this spellcheck hack to the showthread_replybox template, right after the Reset Form button line.

Great hack, thanks again!

Keith 01-03-2004 12:35 AM

This solution works very well once you make sure everything is done correctly. Every failure or problem I experienced during installation was generated by my own errors and mistakes.

The only thing I noticed is the custom.dic doesn't work and affects the spell.pl application if you're on a shared host with the aspell library installed. I removed custom.dic and now it works fine now. Thanks for the solution/hack.

jojok 01-13-2004 01:22 AM

I really want to use this hack. I followed the directions, uploading the file to my cgi-bin and CHMODing it. I also modified my templates correctly. I'm receiving this error:
Quote:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@treehillhigh.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.




Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.29 Server at www.treehillhigh.net Port 80

atomic fireball 01-13-2004 03:25 AM

Quote:

Originally Posted by jojok
I really want to use this hack. I followed the directions, uploading the file to my cgi-bin and CHMODing it. I also modified my templates correctly. I'm receiving this error:

Did you try CHMODing the file to 755 and NOT 777?
As I posted a few messages above, I got the same error on 777, but CHMODing to 755 worked perfectly.

jojok 01-13-2004 04:21 PM

Yeah, I tried that.

I sent a ticket to my host, and apparently they don't have aspell and would charge me extra for installing it. :(

atomic fireball 01-13-2004 10:04 PM

that's weak. I'd find another host and tell them exactly why you are switching.
Our shared host has the aspell stuff loaded in at no extra cost. Email me if you want the details, thanks.

DigitalCrowd 03-02-2004 02:58 AM

I am trying to get this setup, have the latest version 2.5i from the site. I can run the ./spell.pl just fine, it just displays a bunch of HTML, no errors or anything. But I get the Internal Server error as others have gotten. Everything is configured correctly permissions wise, tried 755 & 777, check the apache conf file for ScriptAlias, perl paths and aspell all correct.

Error_log: Premature end of script headers: spell.pl
Access_log: "GET /cgi-bin/spell.pl HTTP/1.1" 500 514 "-" "

Running it from the command line, I get no errors whatsoever. However, via Apache... the above error shows up.

Any other suggestions?!

ice9 03-03-2004 12:32 AM

Did you first download spell.pl to your home computer? If so, verify that the spell.pl file has proper UNIX line-ending characters, and not Windows/Mac line ending characters. That is one thing that could cause the error you're getting.

DigitalCrowd 03-03-2004 03:23 AM

I should have mentioned I covered that aspect too. :) It runs great on the command line, just not via apache.

NexVision 03-03-2004 04:36 AM

wuts the chance of getting this to work with rc4

Yuneek 03-04-2004 04:58 PM

I know I'm probably just an idiot, but what is a shebang line? Where is it?

"Be sure to check the shebang line of the spell.pl file to make sure that it is pointing to the correct location for perl on your server."

I'm lost.

ChuanSE 03-11-2004 02:12 AM

Any chance to implement this in vB 3.0 ???
Sure would love to have it ;)

lucky64 05-28-2004 12:30 AM

Quote:

Originally Posted by ChuanSE
Any chance to implement this in vB 3.0 ???
Sure would love to have it ;)

Ditto.

Bubble #5 04-21-2005 09:22 PM

Any chance of an update so it will work with 3.0.7? :rolleyes:

Marco van Herwaarden 04-21-2005 09:41 PM

vB2 and vB3 are completly different. Not much chance it will work, and updating would probably be a lot of work.

Bubble #5 04-21-2005 09:44 PM

OK thanks :(

ice9 04-22-2005 10:58 PM

We've got it working on vb3. Since the spellchecking function is largely external, integrating it shouldn't be too tough for different vb versions.

The posting screen is setup a little bit differently in vb3, so you have to watch out for complications that arise from nesting forms. You can see how it was done by checking out the site in my profile.

Bubble #5 04-23-2005 06:30 AM

Just a heads up... there is a security issue with this. The script does not check to see if it is being called from the domain name it runs on, so anyone can easily link directly to your spell check script.

ice9 04-23-2005 11:43 PM

Follow the original instructions, just watch out for the proper form nesting. You can also add spellchecking to your PM screens. Pick up the latest version of spell.pl from http://dontpokebadgers.com/spellchecker/ . The script has a tendency to be a little trouble-prone -- some javascript and perl knowledge is helpful.

Bubble #5 04-24-2005 04:51 AM

Could someone PLEASE help us with the button size?

The spell check button is much bigger then any of the other buttons. Could someone PLEASE show us how to fix this? You can see a picture of it below, and our button code is also below. Thank you.

HTML Code:

<input type="button" name="SpellCheck" value="Spell Check" onclick="sendtext()" class="bginput" tabindex="5" accesskey="c">

ice9 04-24-2005 09:13 PM

My first thought is that it is a stylesheet setting. Can you post a url?


All times are GMT. The time now is 04:21 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
  • Page Generation 0.01349 seconds
  • Memory Usage 1,821KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete