Googiespell MOD

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/62572?pagenum=1
04 November 2025, 18:58

Topic


leatherlips
Googiespell MOD
15 August 2006, 13:01


I've just created my very first mod! It is a spell checker mod called Googiespell. You can download it from SnitzBitz by clicking here.
The purpose of this mod is to add a spell check feature to your Snitz forum. Not only does this spell check mod find spelling errors within your posts,
but it also provides suggestions to correct the errors. I have tested this in Internet Explorer, Firefox, Opera, Mozilla and Netscape.
It is very easy to install and is a great spell checker. Please let me know what you think. Also let me know if you encounter any problems.
I've set up a demo forum so you can see it in action.
Go here to see what it is like.
Log in is demo/demo

<moved to="MOD Add-On Forum (W/Code)" by="Shaggy" /><

 

Replies ...


AnonJr
15 August 2006, 15:07


I've definitely got to check it out when I get home. Glad you got this working and set up as a MOD. bigsmile<
bobby131313
15 August 2006, 15:49




She's up and runnin' on my site, looking good!
Thank you!
I asked my members to report any bugs along with browser and OS to me.
<
Roger Fredriksson
15 August 2006, 15:54


Without logging in I tried it with "Ja måste kålla min satfning". It is Swedish and means "I have to check my spelling" but it is very badly spelled. The spell checker considered it to be English although I choosed Swedish. I like the mod but why does it not work for Swedish (to small language? ;))
<
leatherlips
15 August 2006, 19:07


MarshalMix,

I made the changes you suggested. It will make it easier for others to install. The download at SnitzBitz has been updated.
Roger Fredriksson,

I'm looking into the language issue. I'm very close to solving it.<
bobby131313
15 August 2006, 19:53


I too, changed the CSS with no problems, classes are named very nicely.
I also changed some messages in the JS file, lines 47-52 ...
this.lang_chck_spell = "Check spelling";
this.lang_revert = "Revert to";
this.lang_close = "Close";
this.lang_rsm_edt = "Stop spell checking";
this.lang_no_error_found = "Congratulations! No mistakes!";
this.lang_no_suggestions = "Sorry, you're on your own.";

Just to be a little more "unofficiallike". bigsmile

<
dayve
16 August 2006, 01:29


Just implemented it at my forum. As it was already stated, it was very easy to get it going. The only quirk I didn't like is that there are CSS declarations made outside of the CSS file so it was kind of a pain to start getting some of the colors and font size I wanted. I also wanted to make mine look like the button I was using before with the IESpell feature I had (Snitz has same one). I found in the documentation that you can create a container (<span>) to put the spell checker link anywhere you wanted so it worked out great. You can the placement and action I used at my forum.

PS. I haven't updated my Quick Reply Check Spelling button yet ... that one still uses the IESpell component.
<
leatherlips
16 August 2006, 08:26


dayve. You took it to another level! I like how you implemented it.
Care to share how you did it that way?
One of the things that bothers me is the text style. On my forum, the font style changes to something different and I can't figure out where to change it. Where did you find the other css declarations?<
leatherlips
16 August 2006, 10:26


I need help trying to figure out the language issue. Currently, regardless of which language you select, it only checks for English.
I found in the googie.asp file two different lines:

r = getURL("https://www.google.com/tbproxy/spell?lang=en", r, "","")

and
response.write getURL("https://www.google.com/tbproxy/spell?lang=en", t, "","")

If I change the parts in red above to a different language such as French (fr), it will use that language instead of English. But again, it will only check in that language regardless of which language is chosen from the dropdown.
Anyone have any ideas of how to fix this? I've tried leaving out the en but then the spell checker doesn't work at all.<
dayve
16 August 2006, 10:33


Originally posted by leatherlips
dayve. You took it to another level! I like how you implemented it.
Care to share how you did it that way?
One of the things that bothers me is the text style. On my forum, the font style changes to something different and I can't figure out where to change it. Where did you find the other css declarations?
Some of the CSS I had to modify was in the googiespell.js file, particularly this segment:
Code:

//////
// Edit layer (the layer where the suggestions are stored)
//////
GoogieSpell.prototype.createEditLayer = function(width, height) {
this.edit_layer = AJS.DIV({'class': 'googie_edit_layer'});

//Set the style so it looks like edit areas
this.edit_layer.className = this.text_area.className;
this.edit_layer.style.border = "1px solid #660000";
this.edit_layer.style.backgroundColor = "#330000";
this.edit_layer.style.padding = "0px";
this.edit_layer.style.margin = "0px";
this.edit_layer.style.fontSize = "11px";
this.edit_layer.style.fontWeight = "bold";
I added the fontSize and fontWeight lines to keep in design with my pre-existing textarea.
Since the dynamic text was being created by an innerHTML it gives me full control over how I want the messages to look. I wanted it to look like a button so I changed these lines:
Code:

this.lang_chck_spell = "<input type='button' value='Check Spelling'>";
this.lang_rsm_edt = " <input type='button' style='color:#FFD700;' value='Resume Editing'>";
I also changed the boolean to remove the spell checker and language images, since I'm using a button I didn't need it.
Code:

this.show_change_lang_pic = false;
this.show_spell_img = false;
Last but not least, I used the custom spell_container object to put the button wherever I wanted. I placed mine next to the Preview button:
Code:

Response.Write " <input name=""Preview"" type=""button"" value="" Preview "" id=""Preview"" onclick=""OpenPreview()""><span id=""spell_container""></span>"
and then anywhere underneath this container, the following code:
Code:

<SCRIPT type="text/javascript">
var googie1 = new GoogieSpell("googiespell/", "./googiespell/googie.asp?lang=");
googie1.setSpellContainer("spell_container");
googie1.decorateTextarea("ta1");
</SCRIPT>
This takes place of the default method you used:
Code:

Response.Write "<SCRIPT type=""text/javascript""> var googie1 = new GoogieSpell(""googiespell/"", ""./googiespell/googie.asp?lang=""); googie1.decorateTextarea(""ta1""); </SCRIPT>"

That should be it.
<
mikegodwin
16 August 2006, 18:22


This works great!
Thanks for the work!<
Shaggy
17 August 2006, 04:43


Can someone package this up as a mod and post the full changes necessary? I'd love to give this a whirl - good work, guys smile
<
Roger Fredriksson
17 August 2006, 06:19


I really would appreciate if someone could help leatherlips with the language issue<
leatherlips
17 August 2006, 09:06


Originally posted by Shaggy
Can someone package this up as a mod and post the full changes necessary? I'd love to give this a whirl - good work, guys smile
I already did.<
Shaggy
17 August 2006, 09:09


Good man smile Looking forward to playing with this.
<
leatherlips
17 August 2006, 09:23


Roger, Forgive my ignorance, but what language do you need it to be? Nederlands or Svenska? I know how to set it to use one language but currently can't figure out how to choose a language.<
leatherlips
17 August 2006, 10:06


I've just updated readme of the Googiespell mod at Snitzbitz to be more detailed with the customization and language setting.<
bobby131313
17 August 2006, 10:23




My users are asking for it on the quick reply box now. blackeye
Give 'em an inch....
What are the chances?
<
leatherlips
17 August 2006, 10:37


Originally posted by bobby131313
My users are asking for it on the quick reply box now. blackeye
Give 'em an inch....
What are the chances?
Easy enough...
Open topic.asp and follow the same directions as if it were for post.asp. The only exception will be step 2. Instead of looking for <textarea cols=""" look for <textarea name=""Message"" instead. Place the code in that step after textarea.<
Roger Fredriksson
17 August 2006, 11:14


Svenska is great for me and a couple of more poor souls up in the north ;)!.<
leatherlips
17 August 2006, 11:18


Roger,

1. Go to googiespell.js and look for: var GOOGIE_DEFAULT_LANG = "en";

Change the part in red to sv.
2. Next go to the googie.asp file. Look for:

r = getURL("https://www.google.com/tbproxy/spell?lang=en", r, "","")

and

response.write getURL("https://www.google.com/tbproxy/spell?lang=en", t, "","")

Change the code in red to sv.
If you would like to not have the language selection dropdown choices, you can hide it by going in the googiespell.js file.
Look for:

this.show_change_lang_pic = true;

Change the part in red to false.

<
bobby131313
17 August 2006, 12:03


Open topic.asp and follow the same directions as if it were for post.asp. The only exception will be step 2. Instead of looking for <textarea cols=""" look for <textarea name=""Message"" instead. Place the code in that step after textarea.

Worked like a charm, thank you!
<
Roger Fredriksson
17 August 2006, 12:24


ok, tack så mycket (=ok, thank you very much)<
leatherlips
17 August 2006, 21:01


I have fixed the language issue! Before, it only checked for spelling errors in English. Now it will check for errors in the language selected in the dropdown.
I have uploaded v1.1 to SnitzBitz. If you have already installed v1.0, all you need to do is
replace the googie.asp file over your old one. This will fix the
language issue for you.
v1.1 also has more details on how to customize your spell checker. There are also some minor changes made to the googiespell.js file.<
bobby131313
17 August 2006, 22:24




Real simple to add to the pop_mail.asp too! tongue
Thanks again!<
leatherlips
17 August 2006, 22:55


If you have the private message mod, you can also add it to the
privatesend.asp page. [^]
Looks like I'll have to update the readme again to include how to add it to:

Quick Reply
pop_mail.asp
privatesend.asp

bigsmile<
Shaggy
18 August 2006, 04:32


[black]Had a quick fiddle with it yesterday evening and I'm mightily impressed bigsmile One suggestion, though, for v2 is to strip out forum code and HTML (excepting line breaks) when checking the spelling otherwise you get corrections on things that don't need correcting.
[black]<
leatherlips
18 August 2006, 07:39


Shaggy, where is the forum code and html you are referring to?<
Shaggy
18 August 2006, 07:43


I meant srtip the forum code from the string you want to spellcheck. To see what I mean, try entering something like [b]test[/b] in the textarea and hitting your spellcheck button.
<
leatherlips
18 August 2006, 09:10


I've added a class style to the spell check button. If you have made it a button instead of a link you can easily make your button more attractive (instead of the big gray blocks). The files on SnitzBitz have been updated to include this new feature.
<
bobby131313
18 August 2006, 10:20




Now for the $64 question, can we add words to the dictionary?
Our niche has some words that are specific to the hobby and unrecognized.
<
AnonJr
18 August 2006, 10:30


Good question... off hand I'd say no since all the MOD does is pass the text to the Google Spell Checker - unless you can convince Google that they need to add those words.. tongue
I'd be happy to be proved wrong though.<
leatherlips
18 August 2006, 10:44


AnonJr is correct. The spell checker uses Googles spell checker.<
bobby131313
18 August 2006, 11:27




Well, it was just a matter of time before I pushed it too far. tongue
LL did you see the review I wrote for you at SnitzBitz? <<< subtle hint to everyone elsewink
<
leatherlips
18 August 2006, 11:42


Originally posted by bobby131313
LL did you see the review I wrote for you at SnitzBitz?
Yes I did. Thanks!
bobby131313, Did you notice the button style I added?<
bobby131313
18 August 2006, 14:44


bobby131313, Did you notice the button style I added?
Not yet, been playing with my new photo gallery today. Learning PHP now a little at a time. shock
I'll check it out though, I just have the generic button no.
<
dayve
20 August 2006, 21:41


Originally posted by Shaggy
I meant srtip the forum code from the string you want to spellcheck. To see what I mean, try entering something like [b]test[/b] in the textarea and hitting your spellcheck button.
That doesn't seem to cause a problem at all. The spell checker does indeed recognize the words between forum tags.<
Shaggy
21 August 2006, 06:14


Originally posted by Shaggy I meant srtip the forum code from the string you want to spellcheck. To see what I mean, try entering something like [b]test[/b] in the textarea and hitting your spellcheck button.
That doesn't seem to cause a problem at all. The spell checker does indeed recognize the words between forum tags.Oops, meant to say try [b]tst[/b].
<
Pull My Finger
21 August 2006, 10:33


Originally posted by Shaggy I meant srtip the forum code from the string you want to spellcheck. To see what I mean, try entering something like [b]test[/b] in the textarea and hitting your spellcheck button.
That doesn't seem to cause a problem at all. The spell checker does indeed recognize the words between forum tags.Oops, meant to say try [b]tst[/b].
Here is what I have on my end...... <
Eric Coleman
23 August 2006, 16:26


Normal use of Google APIs require you to obtain a license key. http://www.google.com/apis/index.html
Here is a page that details how to use the Google API to check spelling:
http://www.asp101.com/articles/jeremy/googlespell/default.asp

As you can see you need to provide your own license key. I didn't see any mention in the readme or anywhere else of this mod of where to put your license key.

After noticing the method used in this mod is completely different from the license way of spell checking I did some research. It appears this method is a reverse engineer of the google toolbar spell check. I also found out that "leatherlips" isn't the original author of this either. The original can be found here: http://amix.dk/googiespell

Since google places limits on the number of spell checks you can do in a day, as per their normal license agreement, you might want to be carefull about using this toolbar hack. If your site is popular and google notices a large number of spell checks coming from a single IP address you might get blacklisted.<
Pull My Finger
23 August 2006, 18:22


Found a Bug! When adding a New Forum Category or editing a Forum Category I get a popup message when clicking the "Create New Category" or "Edit Category Name" admin icons........ Popup Message--> "Text Area Not Found"

Before I installed this mod I installed the usergroups mod, so at first I didn't know which one caused the bug. First I ran My post.asp backup before installing usergroup code. No Bug! Then I ran post.asp with usergroup code. Again No Bug! Then I ran post.asp with usergroup and googlespell code. Now I have Bug! To be double sure I took the post.asp file backup without usergroup and googlespell code. Then added the googlespell code only. Had the Bug!
On My site IM running SHN code
Heres My SHN post.asp with my last 2 mods installed (UserGroups and GoogleSpell)
http://www.yankeewaterfowler.com/temp/post.txt <
leatherlips
23 August 2006, 19:07


Originally posted by Pull My Finger
Found a Bug! When adding a New Forum Category or editing a Forum Category I get a popup message when clicking the "Create New Category" or "Edit Category Name" admin icons........ Popup Message--> "Text Area Not Found"
This actually is not a bug. In the googiespell.js file, there is a script that causes this alert to appear. When you are creating or editing a new category, the googiespell is noticing that there isn't a textarea that is requiring to be spell checked. You can click the alert box's OK and then create/edit as normal. However, I do agree that it is annoying.
To prevent the Text Area Alert you can do this:

Open the googiespell.js file and look for:

Code:
  else 
if(this.report_ta_not_found)
alert("Text area not found");
Add the part in red shown below:

Code:
//  else 
// if(this.report_ta_not_found)
// alert("Text area not found");
Or you can simply remove those three lines completely.<
Pull My Finger
23 August 2006, 22:43


Originally posted by leatherlips

To prevent the Text Area Alert you can do this:

Open the googiespell.js file and look for:

Code:
  else 
if(this.report_ta_not_found)
alert("Text area not found");
Add the part in red shown below:

Code:
//  else 
// if(this.report_ta_not_found)
// alert("Text area not found");
Or you can simply remove those three lines completely.

Thanks! That did the trick! Thanks For the Great Mod!<
dayve
23 August 2006, 23:53


Originally posted by leatherlips

To prevent the Text Area Alert you can do this:

Open the googiespell.js file and look for:

Code:
  else 
if(this.report_ta_not_found)
alert("Text area not found");
Add the part in red shown below:

Code:
//  else 
// if(this.report_ta_not_found)
// alert("Text area not found");
Or you can simply remove those three lines completely.

Thanks! That did the trick! Thanks For the Great Mod!
Actually, I would not recommend commenting out the lines because there is a boolean type variable for preventing this message from appearing. Modify this variable in googiespell.js:

this.report_ta_not_found = true;

to

this.report_ta_not_found = false;<
leatherlips
24 August 2006, 06:53


Thanks dayve. I didn't notice that.<
Pull My Finger
24 August 2006, 18:23


Originally posted by leatherlips

To prevent the Text Area Alert you can do this:

Open the googiespell.js file and look for:

Code:
  else 
if(this.report_ta_not_found)
alert("Text area not found");
Add the part in red shown below:

Code:
//  else 
// if(this.report_ta_not_found)
// alert("Text area not found");
Or you can simply remove those three lines completely.

Thanks! That did the trick! Thanks For the Great Mod!
Actually, I would not recommend commenting out the lines because there is a boolean type variable for preventing this message from appearing. Modify this variable in googiespell.js:

this.report_ta_not_found = true;

to

this.report_ta_not_found = false;

Done! Thanks dayve for pointing that out!<
MarcelG
27 August 2006, 09:06


wow! this one is cool!!! will definitely add this one to oxle! Thanks!<
bobby131313
31 August 2006, 23:32


?????? http://orangoo.com/labs/GoogieSpell/

Already been addressed. You just have to read the thread. wink bigsmile
<
Eric Coleman
01 September 2006, 16:03


It's not free software. It is being used illegally in this 'mod.'
Pricing

I offer a license so GoogieSpell can be used with/in proprietary software. The prices are:

* $50 for a license that can be used across 3 domains (where a sub-domain or sub-directory counts as a domain). * $250 for a unlimited use license.
<
AnonJr
01 September 2006, 16:11


Context is everything. Here is the entire license bit:
License
This script is dual licensed. One is for free software ("open source") the other is for proprietary software.
The free license is the GPL. Under this license you can only use GoogieSpell with/in free software (i.e. the script can't be used in/with software where the source isn't released).
Pricing
I offer a license so GoogieSpell can be used with/in proprietary software. The prices are:

$50 for a license that can be used across 3 domains (where a sub-domain or sub-directory counts as a domain).
$250 for a unlimited use license. For support I charge $25 pr. hour.
If you have bought a license then you can upgrade to future versions of GoogieSpell for free. On one domain you can use GoogieSpell unlimited times.
If you interested in using GoogieSpell in/with proprietary software, then contact me and we can figure something out. My email is amix@amix.dk.
We fall under the former, not the latter. This is GPL'd software and the source is available.
I don't mean to be offensive, but do you have some personal beef against this MOD? I can't speak to the API issue you raised, but leatherlips gave due credit in the MOD package to the original author, though you stopped short of accusing him of taking credit. And now you're brining up a licensing issue that isn't an issue because you're not quoting the entire agreement.<
leatherlips
01 September 2006, 19:51


As AnonJr stated, the license says:
Thanks goes to:
Amir Salihefendic for developing GoogieSpell
James Newton for writing the googie.asp page
I am not taking credit for GoogieSpell. What I did however was write the instructions for how to implement it within Snitz. I considered these instructions to be a MOD. If I am wrong, then someone can correct me. There are similar MODs where the MOD author did not write the actual feature, but did put the instructions together. I'm not sure I see how mine is different.
In an earlier post (see here) I asked if anyone knew how to get GoogieSpell to work with Snitz. It wasn't totally obvious how to make it work. AnonJr tried to help but we both were not really able to get it to work. Finally, I figured it out and decided to write the instuctions for others to be able to use it. Does this not constitute a MOD?
I've never clamied to write GoogieSpell. I am not trying to take any credit other than putting together the instructions in a clear way for others to use.<
Etymon
01 September 2006, 21:35


You guys shouldn't let someone who's been a member at Snitz for over 4 years who makes less than a couple of posts a year be a bother to you. It's obvious. He doesn't want to read. He wants to pick on someone. Just blow him off and go on.
BTW, love the MOD. I think it's awesome! Thanks!
Etymon
<
AnonJr
02 September 2006, 18:42


Originally posted by Etymon
You guys shouldn't let someone who's been a member at Snitz for over 4 years who makes less than a couple of posts a year be a bother to you. It's obvious. He doesn't want to read. He wants to pick on someone. Just blow him off and go on.

I know I shouldn't, but that was a real foul shot and I can't not make sure that the record is set straight.<
Eric Coleman
04 September 2006, 12:34


I'd like to apologize to anyone that I offended. I honestly didn't see the gpl licensing on the googiespell page, all I saw was a big header for the word pricing and then some dollar amounts. My original concern regarding google spell check licensing and how the words are spell checked using the google toolbar method still remains. Google can easily change the protocol, as they have with other services of theirs in the past. It's just something to be aware of.<
modemmike
04 September 2006, 14:09


Anyone else have trouble with the quick reply textarea form box getting to big after adding this? I ended up taking out the style:100% reference to keep it from getting to big but now it looks funny because it is only 50 cols wide ... not a big deal but just wondering if there was a way to have the quick reply box be the same width as the topics above it but also have the spell check.

Very nice mod, best I have installed by far! I sued to copy all of my posts into Word before posting. <
leatherlips
04 September 2006, 14:45


Eric,

No need to apologize. You had a concern and voiced it. That is what a forum is supposed to be.
modemmike,

Do you have a link to look at? On my test forum with the googiespell mod, the Quick Reply looks fine. You can see it here. Login is demo/demo to see the Quick Reply box. Does it look like yours?<
modemmike
05 September 2006, 15:54


I sent you an email with a link leatherlips... thanks for looking.<
leatherlips
06 September 2006, 15:56


modemmike,

I emailed you with the fix, but I will post it here just in case others may run into the same problem.
The issue is not with GoogieSpell however. It was most likely due to another mod you had installed. GoogieSpell just "found" the issue.
Here is the fix:

In topic.asp look for:
wrap=""VIRTUAL""

After that add:
style=""width:100%""

It will then look like this:
wrap=""VIRTUAL"" style=""width:100%""<
MarcelG
07 September 2006, 09:40


I've just implemented this mod on oxle, and I must admit it's a great mod! I've got 3 questions though, and I hope you guys can be of help.
Question 1: how do I change the style of the menus as shown below. It now uses Times New Roman ; I want this one to use 'Tahoma,Geneva,sans-serif' instead, to match the rest of the site.
I see that Dayve has succesfully changed that on burningsouls, but I'm lost on where I should change that.
Question 2: How do I reposition the icon that's used for the language selection, ánd directly show which language is used? I want it to shift up a wee bit. Actually I want it to center vertically. Modifying the icon is an option for fake positioning....
Question 3: My forums are dutch and english, divided per catagory. Cat_ID 16 is dutch. How can I make sure the default language for the GoogleSpell feature is set to Dutch when someone uses post.asp in any of the forums belonging to that catagory ?<
bobby131313
07 September 2006, 09:51



Well, I can answer #1.
In googiespell.css the following lines control that window...
.googie_list {
font-family: Tahoma,Geneva,sans-serif; margin: 0;
padding: 0;
}

.googie_list td {
font-size: 13px;
padding: 2px 0 2px 0;
cursor: pointer;
list-style-type: none;
color: #000;
}

.googie_list_onhover {
background-color: #FBEC72;
}

.googie_list_onout {
background-color: #ecefff;
}

.googie_list_selected {
background-color: #ccc;
}

.googie_list_revert {
color: #b91479;
}

.googie_list_close {
color: #b91414;
}


I'm pretty sure you could just add the line in red.
<
MarcelG
07 September 2006, 09:59


Thanks a bunch!! Not sure how I missed this... bigsmile
Question 2 has also been answered now (by myself). Change the style for the image like this:
Code:
.googie_lang_3d_click img {
vertical-align: top; border-top: 1px solid #555;
border-left: 1px solid #555;
border-right: 1px solid #b1b1b1;
border-bottom: 1px solid #b1b1b1;
}

.googie_lang_3d_on img {
vertical-align: top; border-top: 1px solid #b1b1b1;
border-left: 1px solid #b1b1b1;
border-right: 1px solid #555;
border-bottom: 1px solid #555;
}
Showing the selected language is step 2 for that question. clown
Any idea for question 3?<
MarcelG
07 September 2006, 10:28


Ehm....anyone had this symptom before ; the spellcheck going haywire and selecting parts of words instead of entire words? <
leatherlips
07 September 2006, 12:14


Not quite sure how to answer number 3...
But the way it currently works is it remembers the vistitors language choice via the cookie. If they selected the language of their choice, then it will always default to that language, unless of course they delete the cookie. So in essence, the user themselves change the default language.
Regarding the haywire partial selecting of words...was it set to English at the time?<
MarcelG
07 September 2006, 13:39


I'll see if I can modify the cookie easily.
Regarding the haywire ; Yes, was set to English. The beginning of the post was correctly underlined, but when moving to the end, it got really bad.<
wildatom
21 September 2006, 14:52


Help?!?! & Thanks!
I tried installing this mod on my current forum. I also downloaded and setup a new snitz forum with no mods.
I can click on the spell check button all day but nothing happens. Also the misspelled words are not underlined.<
leatherlips
21 September 2006, 15:12


Do you have a URL for your forum(s) I could look at?<
dayve
23 September 2006, 16:56


Originally posted by MarcelG
I'll see if I can modify the cookie easily.

The cookie value is easy to modify and I've already tried that but as I've stated previously the issue that occurs seems to be intermittent.<
AnonJr
24 September 2006, 09:49


Originally posted by wildatom
I can click on the spell check button all day but nothing happens. Also the misspelled words are not underlined.

Are you sure you included all the appropriate JavaScrip? It sounds like it could be some sort of problem there... though as leatherlips said, a link to see the problem in action would help. smile<
wildatom
04 October 2006, 08:38


If the server I'm hosting the forum on is blocked from google (or the internet all together) would this be the reason? Leatherlips said the code looks fine.<
AnonJr
04 October 2006, 09:19


Yeah, that would be a problem. tongue This MOD uses Google's spell-checker API and (to the best of my knowledge) needs to communicate with Google's servers.<
leatherlips
04 October 2006, 11:56


wildatom,

Try this:

In post.asp, replace:

<script type=""text/javascript""> var googie1 = new GoogieSpell(""googiespell/"", ""./googiespell/googie.asp?lang=""); googie1.decorateTextarea(""ta1"");</script>
With this:

<script type=""text/javascript""> var googie1 = new GoogieSpell(""googiespell/"", ""https://www.google.com/tbproxy/spell?lang=""); googie1.decorateTextarea(""ta1"");</script>
It may or may not work, but give it a try and let me know.<
MaD2ko0l
04 October 2006, 18:12


hi...i am having the same problem as wildatom is having...i can press the check spelling button and it will show the little animation and then it will say "No spelling errors found" then goes back to normal.
any ideas??? here is a link to where i have installed it
http://www.gamingcrypt.co.uk/aaa/forum/post.asp?method=Topic&FORUM_ID=9

thanks for the help<
leatherlips
04 October 2006, 18:31


Have you made any modifications to any of the files in the GoogieSpell mod?<
MaD2ko0l
04 October 2006, 18:35


i have changed the #ffffff(white) colours to black in googiespell.css and that is all<
leatherlips
04 October 2006, 18:37


Has it worked in the past or has it never worked?
Could you provide a text version of your post.asp file and your googie.asp file?<
MaD2ko0l
04 October 2006, 18:44


this is a fresh install..i have just downloaed the mod from snitz bitz and i dont think i have modified post.asp apart from this googie spellchecker but here are the txt versions of the files

post.asp googie.asp<
leatherlips
04 October 2006, 19:00


Everything looks fine. I wonder if the spell checker is reaching the Google site?<
MaD2ko0l
04 October 2006, 19:17


eerrmmm how can i check to see if it is reching google???
woudl this be a problem on my server or is this somthign that everyone should be getting???<
leatherlips
04 October 2006, 19:27


MaD2koOl,

Try this:

In googie.asp remove the following line:

lang = request.querystring("lang")
And in googie.asp look for this:

response.write getURL("https://www.google.com/tbproxy/spell?lang=" & lang, t, "","")
And replace it with this:

response.write getURL("http://www.google.com/tbproxy/spell?lang=en", t, "","")<
MaD2ko0l
04 October 2006, 19:30


nope..still the same<
leatherlips
04 October 2006, 19:32


I left out the s in the following line:

response.write getURL("https://www.google.com/tbproxy/spell?lang=en", t, "","")<
MaD2ko0l
04 October 2006, 19:34


nope...still dont work with or without the "s"<
leatherlips
04 October 2006, 19:35


To be honest, I'm not sure. Unless it has something to do with your server. Maybe someone brighter than I can figure it out.
Did you try the suggestion I made to wildatom?<
MaD2ko0l
04 October 2006, 19:38


yesh i tryed that suggestion adn it did the same thing...nothing<
leatherlips
04 October 2006, 19:41


Did you leave everything in the googiespell folder? (I'm sure you did, I'm just trying to be sure everything is covered.)<
MaD2ko0l
04 October 2006, 19:43


yep... i did exactly to the readme and uploaded the googiespell folder as instructed...i then tryed it and couldnt see the text because of my colour scheme so i changed the colours in the .css file and i get nothing<
leatherlips
04 October 2006, 19:45


I'm sorry it's not working for you. I can't think of why it isn't working. dissapprove I'll look into it and see what I can find out.<
MaD2ko0l
04 October 2006, 19:48


ok mate, thanks for the help, i will try again tomorrow...maybe some sleep will help me ;-)<
leatherlips
04 October 2006, 20:02


Here is another try...
Since you are in the UK, maybe you need to call the UK version of Google.
First restore the GoogieSpell back to the original installing by undoing all of the previous suggested changes.
Then, in googie.asp change this:

response.write getURL("https://www.google.com/tbproxy/spell?lang=" & lang, t, "","")
To this:

response.write getURL("https://www.google.co.uk/tbproxy/spell?lang=" & lang, t, "","")
It's a shot in the dark...<
MaD2ko0l
04 October 2006, 20:06


nope...didnt work<
MaD2ko0l
05 October 2006, 05:23


i think it may have somthign to do with the textarea or javascript because when i click on the textarea when making a post it shows that i have an error

as u can see in this image

line 276 reads this

Code:
                <td bgColor="lightsteelblue"><textarea id="ta1" class="textarea" cols="70" name="Message" rows="12" wrap="VIRTUAL" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);"></textarea><br /></td>

now in post.asp that is the line where i added the id and class, thsi is what that line looks like

Code:
			"                <td bgColor=""" & strPopUpTableColor & """><textarea id=""ta1"" class=""textarea"" cols=""" & intCols & """ name=""Message"" rows=""" & intRows & """ wrap=""VIRTUAL"" onselect=""storeCaret(this);"" onclick=""storeCaret(this);"" onkeyup=""storeCaret(this);"" onchange=""storeCaret(this);"">" & Trim(CleanCode(TxtMsg)) & "</textarea><br /></td>" & vbNewLine & _

but i have also removed id=""ta1"" class=""textarea"" from that line and still get the error message.
any ideas on this or am i just looking in the wrong place?<
Shaggy
05 October 2006, 05:31


Originally posted by MaD2ko0l as u can see in this image
Mad', you'll get a more accurate & detailed error message from Firefox's Javascript Console.
<
wildatom
27 November 2006, 09:21


Leatherlips - I believe the problem is that our forums are both behind firewalls that don't have access to Google. Thus making this awesome mod fail. If I use the same forum code on a server that has access to google then it works fine. Sound right? or is your code use the end users connection to talk with Google?
Originally posted by leatherlips
MaD2koOl,

Try this:

In googie.asp remove the following line:

lang = request.querystring("lang")
And in googie.asp look for this:

response.write getURL("https://www.google.com/tbproxy/spell?lang=" & lang, t, "","")
And replace it with this:

response.write getURL("http://www.google.com/tbproxy/spell?lang=en", t, "","")
<
AnonJr
27 November 2006, 11:29


That would indeed be the problem. The MOD needs to access Google's servers.<
MaD2ko0l
27 November 2006, 13:44


Originally posted by AnonJr
That would indeed be the problem. The MOD needs to access Google's servers.

is there a way to allow the client side (ie me) to get access to googles servers???<
AnonJr
27 November 2006, 14:13


For the life of me I can't recall if the server or the client (specifically) needs access to Google. This MOD wasn't intended to run isolated from the internet.<
dayve
27 November 2006, 14:41


The download for this comes with a script that acts as a proxy to the google servers. More info about how to do this can be found here as well:

You can't directly run this script online - this is a browser security issue. To solve this you can have a simple "local" sever (i.e. a server that you can send requests to) that sends requests to Google. That is, instead of sending requests to...

http://orangoo.com/labs/GoogieSpell/Documentation/
<
AnonJr
27 November 2006, 16:34


But who reads the documentation? tonguewink<
dayve
27 November 2006, 16:59


Originally posted by AnonJr
But who reads the documentation? tonguewink
I am one of the many few that always RTFM. wink<
AnonJr
28 November 2006, 08:13


I have a mug with that on it. bigsmile I keep it on my desk here at work. Too bad no one got the hint....<
wildatom
29 November 2006, 08:06


It would of been nice if this info was included in the readme that comes with this mod.

You can't directly run this script online - this is a browser security issue. To solve this you can have a simple "local" sever (i.e. a server that you can send requests to) that sends requests to Google. That is, instead of sending requests to...

http://orangoo.com/labs/GoogieSpell/Documentation/

<
© 2000-2021 Snitz™ Communications