Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 17
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 17
Well, I looked some more at the button situation. Here's what I found:

When there is no text in the original UBB reply/new topic form, a close button appears. The code is:
Quote
code:
Code
	} else {
$url =~ s/Enter your text to spellcheck. (Up to 5000 characters)/$vars_wordlets_mods{spell_check_no_text}/isg;
$url =~ s/<FORM><input type="BUTTON" NAME="GOBACK" VALUE=" Back " OnClick="history.go(-1)"></FORM>/<form action="javascript:window.close();"><input type="submit" name="close" value="$vars_wordlets_mods{spell_check_close}" /></form>/isg;
}

(I don't understand why there is "Back" button in that code. It doesn't appear in my spellcheck window. What's it for? I'm also totally confused by the s/.../...isg; code. This seems to be the same text that comes from vars_wordlets_mods. What's that all about?)

When there are no spelling errors, the code has a button that lets the user spell check again for some reason. I guess in case he/she adds something to the spellcheck window. The single button in that case is "Spellcheck Text." Clicking this button goes to spellcheck.net, and there is no way to get spell checked text back to the original window. I tried modifying the code to just provide a close button when the text is spelled correctly. I changed this code:

code:
[qb]
Code
	} elsif ($url =~ /SpellCheck Text/) {
$url =~ s/(<form action=")http://(www.spellcheck.net/.+?)(" method="post">)/$1$vars_config{CGIURL}/ubb_spell.cgi$3n<input type="hidden" name="ubb" value="$2" />n<input type="hidden" name="f" value="$in{f}" />/isg;
$url =~ s/No spelling errors were found in this text./$vars_wordlets_mods{spell_check_spelled_correctly}/isg;
$url =~ s/SpellCheck Text/$vars_wordlets_mods{spell_check_text}/isg;
}
[/qb]
to:
Quote
code:
Code
  
} elsif ($url =~ /SpellCheck Text/) {
$url =~ s/No spelling errors were found in this text./$vars_wordlets_mods{spell_check_spelled_correctly}/isg;
$url =~ s/<FORM><input type="BUTTON" NAME="GOBACK" VALUE=" Back " OnClick="history.go(-1)"></FORM>/<form

action="javascript:window.close();"><input type="submit" name="close" value="$vars_wordlets_mods{spell_check_close}" /></form>/isg;

}

This didn't work. As a matter of fact, it made no difference at all. (Yes, I did clear the cache.)

Finally, rather than add a close button to the window when there are incorrect spellings, I modified the function spellfix() and added:
code:
[qb]
Code
window.close();  
[/qb]
after:
Code
opener.document.replier.message.value=input;
That worked. Hurray!

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.3.x] [beta] Spell Check 1.6 LK 05/11/2002 1:42 PM
Re: [6.3.x] [beta] Spell Check 1.6 AllenAyres 05/13/2002 5:53 PM
Re: [6.3.x] [beta] Spell Check 1.6 Anacific 05/13/2002 7:52 PM
Re: [6.3.x] [beta] Spell Check 1.6 ADWOFF 05/28/2002 10:44 AM
Re: [6.3.x] [beta] Spell Check 1.6 MysfytGyrl 06/02/2002 9:54 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 06/02/2002 10:04 PM
Re: [6.3.x] [beta] Spell Check 1.6 gost95 06/30/2002 7:52 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 06/30/2002 9:40 AM
Re: [6.3.x] [beta] Spell Check 1.6 gost95 06/30/2002 4:16 PM
Re: [6.3.x] [beta] Spell Check 1.6 gost95 07/01/2002 1:06 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 07/01/2002 8:25 AM
Re: [6.3.x] [beta] Spell Check 1.6 gost95 07/01/2002 6:36 PM
Re: [6.3.x] [beta] Spell Check 1.6 gost95 07/01/2002 9:43 PM
Re: [6.3.x] [beta] Spell Check 1.6 RandyM 07/01/2002 10:19 PM
Re: [6.3.x] [beta] Spell Check 1.6 Kel 07/08/2002 6:49 PM
Re: [6.3.x] [beta] Spell Check 1.6 CTM 07/08/2002 8:56 PM
Re: [6.3.x] [beta] Spell Check 1.6 Kel 07/09/2002 1:05 AM
Re: [6.3.x] [beta] Spell Check 1.6 Dennis Jones 07/16/2002 1:58 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 07/17/2002 5:56 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 07/19/2002 2:05 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 07/19/2002 9:54 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 07/19/2002 5:39 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 07/19/2002 8:45 PM
Re: [6.3.x] [beta] Spell Check 1.6 RandyM 07/20/2002 4:19 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 07/20/2002 9:01 AM
Re: [6.3.x] [beta] Spell Check 1.6 RandyM 07/20/2002 7:24 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 08/17/2002 9:29 PM
Re: [6.3.x] [beta] Spell Check 1.6 Autocrosser 08/20/2002 6:50 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 08/20/2002 7:07 PM
Re: [6.3.x] [beta] Spell Check 1.6 catcherman 08/21/2002 7:20 AM
Re: [6.3.x] [beta] Spell Check 1.6 Chu 08/24/2002 1:48 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 08/24/2002 10:37 AM
Re: [6.3.x] [beta] Spell Check 1.6 Chu 08/24/2002 8:29 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 08/24/2002 9:03 PM
Re: [6.3.x] [beta] Spell Check 1.6 Chu 08/24/2002 9:18 PM
Re: [6.3.x] [beta] Spell Check 1.6 Chu 08/24/2002 9:36 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 08/24/2002 11:03 PM
Re: [6.3.x] [beta] Spell Check 1.6 Eaglecrew 08/29/2002 8:59 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 08/29/2002 9:02 PM
Re: [6.3.x] [beta] Spell Check 1.6 Eaglecrew 08/29/2002 9:24 PM
Re: [6.3.x] [beta] Spell Check 1.6 JackBlack 08/30/2002 12:50 PM
Re: [6.3.x] [beta] Spell Check 1.6 Eaglecrew 08/30/2002 3:15 PM
Re: [6.3.x] [beta] Spell Check 1.6 catcherman 08/30/2002 6:56 PM
Re: [6.3.x] [beta] Spell Check 1.6 catcherman 08/30/2002 7:31 PM
Re: [6.3.x] [beta] Spell Check 1.6 Jeff L 10/14/2002 2:01 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/14/2002 2:59 PM
Re: [6.3.x] [beta] Spell Check 1.6 Jeff L 10/14/2002 4:37 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/14/2002 5:19 PM
Re: [6.3.x] [beta] Spell Check 1.6 JayM 10/14/2002 7:55 PM
Re: [6.3.x] [beta] Spell Check 1.6 Painfool 10/15/2002 5:17 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/15/2002 6:21 PM
Re: [6.3.x] [beta] Spell Check 1.6 Painfool 10/15/2002 7:25 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/15/2002 8:06 PM
Re: [6.3.x] [beta] Spell Check 1.6 Painfool 10/15/2002 9:25 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/15/2002 9:26 PM
Re: [6.3.x] [beta] Spell Check 1.6 Painfool 10/15/2002 9:41 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/16/2002 12:27 PM
Re: [6.3.x] [beta] Spell Check 1.6 JayM 10/16/2002 3:32 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/16/2002 3:41 PM
Re: [6.3.x] [beta] Spell Check 1.6 JayM 10/17/2002 7:44 PM
Re: [6.3.x] [beta] Spell Check 1.6 JayM 10/17/2002 9:28 PM
Re: [6.3.x] [beta] Spell Check 1.6 Painfool 10/18/2002 7:30 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/18/2002 2:03 PM
Re: [6.3.x] [beta] Spell Check 1.6 JayM 10/18/2002 2:31 PM
Re: [6.3.x] [beta] Spell Check 1.6 Painfool 10/18/2002 5:05 PM
Re: [6.3.x] [beta] Spell Check 1.6 Painfool 10/18/2002 5:12 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/18/2002 5:12 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 10/18/2002 5:28 PM
Re: [6.3.x] [beta] Spell Check 1.6 Pilot Snipes 11/25/2002 3:49 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 11/25/2002 7:05 AM
Re: [6.3.x] [beta] Spell Check 1.6 Pilot Snipes 11/25/2002 9:08 PM
Re: [6.3.x] [beta] Spell Check 1.6 tgreene 12/04/2002 5:47 AM
Re: [6.3.x] [beta] Spell Check 1.6 RandyM 12/05/2002 4:01 AM
Re: [6.3.x] [beta] Spell Check 1.6 tgreene 12/05/2002 5:12 AM
Re: [6.3.x] [beta] Spell Check 1.6 RandyM 12/05/2002 5:17 AM
Re: [6.3.x] [beta] Spell Check 1.6 LK 12/05/2002 9:28 AM
Re: [6.3.x] [beta] Spell Check 1.6 tgreene 12/05/2002 6:48 PM
Re: [6.3.x] [beta] Spell Check 1.6 tgreene 12/05/2002 6:58 PM
Re: [6.3.x] [beta] Spell Check 1.6 RandyM 12/05/2002 10:19 PM
Re: [6.3.x] [beta] Spell Check 1.6 tgreene 12/06/2002 7:31 PM
Re: [6.3.x] [beta] Spell Check 1.6 LK 12/06/2002 10:14 PM
Re: [6.3.x] [beta] Spell Check 1.6 Pilot Snipes 12/19/2002 2:57 AM
Re: [6.3.x] [beta] Spell Check 1.6 Bonzer 01/08/2003 1:16 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)