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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Google transliteration api
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 5

puthenveetil
New Member

54 Posts

Posted - 17 September 2009 :  11:14:37  Show Profile
Hi,
I don't see the control button on Quick Reply.I have included <!--#INCLUDE FILE="transliteration.asp"--> on both asp files.
New Topic and Reply to Topic pages works fine.
Thanks
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 17 September 2009 :  12:50:36  Show Profile  Visit leatherlips's Homepage
quote:
Originally posted by puthenveetil

Hi,
I don't see the control button on Quick Reply.I have included <!--#INCLUDE FILE="transliteration.asp"--> on both asp files.

The only file you should have <!--#INCLUDE FILE="transliteration.asp"--> is in the inc_header.asp file. It should not be in the post.asp or topic.asp files.

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

puthenveetil
New Member

54 Posts

Posted - 17 September 2009 :  12:54:52  Show Profile
Ok.I will do the needful and let you know.
Thanks
Go to Top of Page

puthenveetil
New Member

54 Posts

Posted - 17 September 2009 :  21:09:06  Show Profile
Hi,
Except for the Quick Reply textarea and Reply to topic it works fine.I removed the <!--#INCLUDE FILE="transliteration.asp"--> from post and topic asp and included it only in inc_header.asp file.
Error :Exception in make Transliteratable:Invalid textfield id transl1
code:0
URL : http://localhost/bullentinBoard/topic.asp?whichpage=1&TOPIC_ID=97#297


Thanks for helping.

Edited by - puthenveetil on 17 September 2009 22:04:52
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 September 2009 :  07:57:47  Show Profile  Visit leatherlips's Homepage
The google transliteration code is looking for both id's. In the regular topic post it has both the Subject and Message fields. However, in the Reply and Quick Reply there is only the Message field, therefore it is giving the error.

For the Quick Reply, do this:

In topic.asp look for:

"              <tr>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Type in Hindi:</b></font><br><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Press Ctrl+g to toggle between English and Hindi</font></td>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """><div id=""translControl""></div><input id=""transl1"" type=""hidden"" name=""none"" value=""none""></td>" & vbNewLine & _
         "              </tr>" & vbNewLine & _

Add the part in red. Also, change the parts in green to this: strForumCellColor

What this does is tricks the google code into thinking there is a text field with the id in it. It is really a hidden field.

I'll get the the Reply fix later. I'm at work and only have a few minutes right now...

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 18 September 2009 07:59:58
Go to Top of Page

puthenveetil
New Member

54 Posts

Posted - 18 September 2009 :  11:00:01  Show Profile
Hi,
Thanks.Yes it worked for Quick Reply.
Thanks
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 September 2009 :  11:14:14  Show Profile  Visit leatherlips's Homepage
Actually, we need to do a few more changes to make it all work.

Follow these steps and it should be fine:

Open your transliteration.asp file and look for this line:

var ids = [ "transl1", "ta1" ];

Change it to:

var ids = [ "transl1", "ta1", "hidden1", "hidden2" ];

Then in topic.asp look for:

"              <tr>" & vbNewLine & _
         "                <td bgColor=""" & strForumCellColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Type in Hindi:</b></font><br><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Press Ctrl+g to toggle between English and Hindi</font></td>" & vbNewLine & _
         "                <td bgColor=""" & strForumCellColor & """><div id=""translControl""></div></td>" & vbNewLine & _
         "              </tr>" & vbNewLine & _


Change it to:

"              <tr>" & vbNewLine & _
         "                <td bgColor=""" & strForumCellColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Type in Hindi:</b></font><br><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Press Ctrl+g to toggle between English and Hindi</font></td>" & vbNewLine & _
         "                <td bgColor=""" & strForumCellColor & """><div id=""translControl""></div><input id=""hidden1"" type=""hidden"" name=""none"" value=""none""><input id=""hidden2"" type=""hidden"" name=""none"" value=""none""><input id=""transl1"" type=""hidden"" name=""none"" value=""none""></td>" & vbNewLine & _
         "              </tr>" & vbNewLine & _


In post.asp look for:

Response.Write "              <tr>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Type in Hindi:</b></font><br><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Press Ctrl+g to toggle between English and Hindi</font></td>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """><div id=""translControl""></div></td>" & vbNewLine & _
         "              </tr>" & vbNewLine


Change it to:

Response.Write "              <tr>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Type in Hindi:</b></font><br><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Press Ctrl+g to toggle between English and Hindi</font></td>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """><div id=""translControl""></div><input id=""hidden1"" type=""hidden"" name=""none"" value=""none""><input id=""hidden2"" type=""hidden"" name=""none"" value=""none""></td>" & vbNewLine & _
         "              </tr>" & vbNewLine

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

puthenveetil
New Member

54 Posts

Posted - 18 September 2009 :  13:00:20  Show Profile
Hi,
Yes,will do and let you know by evening.
Go to Top of Page

puthenveetil
New Member

54 Posts

Posted - 18 September 2009 :  15:30:24  Show Profile
Hi,
The above changes were made in the asp pages downloaded from your site.
However in none of the pages transliteration controls are shown or effected.
Can you make changes and post the links as above please.
It shall be highly appreciated.
I have made the suggested changes in transiliteration asp.

Edited by - puthenveetil on 18 September 2009 16:11:00
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 September 2009 :  17:00:56  Show Profile  Visit leatherlips's Homepage
Let me look at it some more. When I get it working in all cases I'll post it for you.

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 - 18 September 2009 :  17:19:53  Show Profile  Visit leatherlips's Homepage
OK. I went a whole new way to do this. I think it should work now.

First, download the new files from here:

http://www.mangionemagic.com/Transliteration.zip

Simply overwrite your current files with the new one. Be sure to back up your old ones first in case something goes wrong. The files to overwrite are post.asp, topic.asp and transliteration.asp.

Next, open your inc_post_buttons.asp page and add this at the very bottom just above the %>

'##### Transliteration MOD Below #####

      Response.Write "              <tr>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Type in Hindi:</b></font><br><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Press Ctrl+g to toggle between English and Hindi</font></td>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """><div id=""translControl""></div></td>" & vbNewLine & _
         "              </tr>" & vbNewLine

'##### Transliteration MOD Above #####

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

puthenveetil
New Member

54 Posts

Posted - 18 September 2009 :  20:35:15  Show Profile
Hi,
Thanks a thousand for your valuable time.It works like a charm in all textareas. It will be nice if you post a new MOD on this one.
Thanks again.

Edited by - puthenveetil on 18 September 2009 20:56:52
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 September 2009 :  20:51:18  Show Profile  Visit leatherlips's Homepage
Is everything working as you expected?

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

puthenveetil
New Member

54 Posts

Posted - 18 September 2009 :  20:57:57  Show Profile
See my recently edited post above please.Yes It works as expected.
Thanks
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 September 2009 :  21:08:41  Show Profile  Visit leatherlips's Homepage
I have one question for you. When you enter your text, does the final post show the hindi text? On my test forum it does not. It instead shows something like this:

#2335;#2375;#2360;#2381;#2335;

It does however show hindi text for the subject title. I don't know if that is just my browser setup or some other factor. I was curious to know if yours actually posted the hindi text.

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 5 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07