Author |
Topic |
leatherlips
Senior Member
USA
1838 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 15 August 2006 : 15:07:20
|
I've definitely got to check it out when I get home. Glad you got this working and set up as a MOD. < |
|
|
bobby131313
Senior Member
USA
1163 Posts |
Posted - 15 August 2006 : 15:49:57
|
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 |
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 15 August 2006 : 15:54:47
|
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 |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
bobby131313
Senior Member
USA
1163 Posts |
Posted - 15 August 2006 : 19:53:30
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 16 August 2006 : 01:29:24
|
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
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
Posted - 16 August 2006 : 10:26:23
|
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 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 16 August 2006 : 10:33:46
|
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. < |
|
|
|
mikegodwin
Starting Member
USA
18 Posts |
Posted - 16 August 2006 : 18:22:25
|
This works great!
Thanks for the work!< |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 17 August 2006 : 04:43:55
|
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.” |
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 17 August 2006 : 06:19:04
|
I really would appreciate if someone could help leatherlips with the language issue< |
rf/www.avgifter.com |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 17 August 2006 : 09:09:27
|
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.” |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Topic |
|