Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Googiespell MOD
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 8

leatherlips
Senior Member

USA
1838 Posts

Posted - 15 August 2006 :  13:01:12  Show Profile  Visit leatherlips's Homepage  Reply with Quote
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" /><

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 23 August 2006 21:33:13

AnonJr
Moderator

United States
5768 Posts

Posted - 15 August 2006 :  15:07:20  Show Profile  Visit AnonJr's Homepage  Reply with Quote
I've definitely got to check it out when I get home. Glad you got this working and set up as a MOD. <
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 15 August 2006 :  15:49:57  Show Profile  Visit bobby131313's Homepage  Reply with Quote


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.

<

Switch the order of your title tags
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 15 August 2006 :  15:54:47  Show Profile  Visit Roger Fredriksson's Homepage  Reply with Quote
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? ;))
<

rf/www.avgifter.com
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 15 August 2006 :  19:07:09  Show Profile  Visit leatherlips's Homepage  Reply with Quote
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.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 15 August 2006 :  19:53:30  Show Profile  Visit bobby131313's Homepage  Reply with Quote
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".


<

Switch the order of your title tags

Edited by - bobby131313 on 15 August 2006 19:54:21
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 16 August 2006 :  01:29:24  Show Profile  Visit dayve's Homepage  Reply with Quote
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.

<

Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 16 August 2006 :  08:26:14  Show Profile  Visit leatherlips's Homepage  Reply with Quote
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?<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 16 August 2006 :  10:26:23  Show Profile  Visit leatherlips's Homepage  Reply with Quote
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.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 16 August 2006 10:27:20
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 16 August 2006 :  10:33:46  Show Profile  Visit dayve's Homepage  Reply with Quote
quote:
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:

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

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.

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:

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:

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

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


That should be it.
<

Go to Top of Page

mikegodwin
Starting Member

USA
18 Posts

Posted - 16 August 2006 :  18:22:25  Show Profile  Visit mikegodwin's Homepage  Reply with Quote
This works great!

Thanks for the work!<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 17 August 2006 :  04:43:55  Show Profile  Reply with Quote
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

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 17 August 2006 :  06:19:04  Show Profile  Visit Roger Fredriksson's Homepage  Reply with Quote
I really would appreciate if someone could help leatherlips with the language issue<

rf/www.avgifter.com
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 17 August 2006 :  09:06:53  Show Profile  Visit leatherlips's Homepage  Reply with Quote
quote:
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
I already did.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 17 August 2006 :  09:09:27  Show Profile  Reply with Quote
Good man Looking forward to playing with this.

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 17 August 2006 :  09:23:07  Show Profile  Visit leatherlips's Homepage  Reply with Quote
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.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page
Page: of 8 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07