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 - 18 September 2009 :  21:52:31  Show Profile
Hi,
That happens once in a while.Iam researching that part as on now.I think it is to do with UNICODE with regard to our webpages.Do we have unicode support/charecter encoding? If you go to this page :
http://www.google.com/transliterate/indic and type in english and the converted hindi if you cut and paste in our reply areas it some time shows up ok but otherwise it is numbers.
so i don't yet got the reason!

Edited by - puthenveetil on 19 September 2009 01:08:12
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 18 September 2009 :  22:09:17  Show Profile  Visit leatherlips's Homepage
It's weird. On the subject, it is Hindi. On the post preview it is Hindi. But the acutual post is numbers.

You can see it on my test forum here:

http://www.mangionemagic.com/forumsnitz/topic.asp?TOPIC_ID=11

Log in is demo/demo

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 22:11:05
Go to Top of Page

puthenveetil
New Member

54 Posts

Posted - 18 September 2009 :  22:22:11  Show Profile
Hi,
Is it to do with the database.Because when you are previewing it does't get inserted in the database.Iam also getting the same characters!But how is it that the subject in hindi and the rest in vague numbers?
Yor are the brilliant one hope you will find out.Iam also googling.

Edited by - puthenveetil on 19 September 2009 00:54:26
Go to Top of Page

puthenveetil
New Member

54 Posts

Posted - 18 September 2009 :  22:30:50  Show Profile
Hi,
I added some more replies and it came out OK.But when i added again only the numbers came up.

Edited by - puthenveetil on 18 September 2009 22:32:23
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 19 September 2009 :  08:13:27  Show Profile  Visit leatherlips's Homepage
I think I fixed it.

In config.asp look for the following just below the copyright section:

Session.LCID = 1033 '## Do Not Edit
Response.Buffer = true

ABOVE that add:

Session.Codepage = 65001
Response.Charset = "utf-8"

It should now look like this:

Session.Codepage = 65001
Response.Charset = "utf-8"
Session.LCID = 1033 '## Do Not Edit
Response.Buffer = true

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 19 September 2009 08:27:15
Go to Top of Page

puthenveetil
New Member

54 Posts

Posted - 19 September 2009 :  11:45:53  Show Profile
Hi,
Wonderful job.You did it.Thanks a thousand again.Be in touch.Hope you will publish a Mod on this.
Regards.

Edited by - puthenveetil on 19 September 2009 12:56:30
Go to Top of Page

puthenveetil
New Member

54 Posts

Posted - 20 September 2009 :  13:57:45  Show Profile
Hi,.
I wanted a hyperlink "help" a space after the transliteration control in the same <tr.How do I get it ? whenever I try to do the hyperlink it goes on th the next line and the space become wider. This is the link:
http://www.google.com/transliterate/indic/about_mappings_ml.html
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 20 September 2009 :  15:31:39  Show Profile  Visit leatherlips's Homepage
In inc_header.asp look for:

"a:active  {color:" & strActiveLinkColor & ";text-decoration:" & strActiveTextDecoration & "}" & vbNewLine & _

Below that add:


".divtransl {float:left}" & vbNewLine & _

In inc_post_buttons.asp look for:

'##### 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 #####


REPLACE it with:

'##### 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"" class=""divtransl""></div><table><tr><td><div class=""divtransl""><a href=""http://www.google.com/transliterate/indic/about_mappings_ml.html"" target=""_blank"" tabindex=""-1"">" & getCurrentIcon(strIconSmileQuestion,"Help","align=""middle""") & "</a></div></td></tr></table></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 - 20 September 2009 :  15:57:21  Show Profile
Hi,
Yes it worked fine for all textareas.However on the Quick Reply page the help icon does'nt show up.
Please also send me the fix for IE error msg if you got it.
Thanks a lot.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 20 September 2009 :  17:42:35  Show Profile  Visit leatherlips's Homepage
The Quick Reply doesn't usually get the extra stuff. It's just the "barebones" reply text area. I'll post the code for the Quick Reply soon...

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 - 20 September 2009 :  19:55:02  Show Profile  Visit leatherlips's Homepage
For the QuickReply, open 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><input id=""transl1"" type=""hidden"" name=""none"" value=""none""></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"" class=""divtransl""></div><table><tr><td><div class=""divtransl""><a href=""http://www.google.com/transliterate/indic/about_mappings_ml.html"" target=""_blank"" tabindex=""-1"">" & getCurrentIcon(strIconSmileQuestion,"Help","align=""middle""") & "</a></div></td></tr></table><input id=""transl1"" type=""hidden"" name=""none"" value=""none""></td>" & vbNewLine & _
         "              </tr>" & vbNewLine & _


As for the minor errors in IE, do the following:
(Thanks to classicmotorcycling for help with the below code.)

In inc_header.asp look for:

%>
<!--#INCLUDE FILE="transliteration.asp"-->
<%


CHANGE it to:

if request.servervariables("URL") = "/forum/post.asp" then
%>
<!--#INCLUDE FILE="transliteration.asp"-->
<%
Elseif mlev > 0 and request.servervariables("URL") = "/forum/topic.asp" then
%>
<!--#INCLUDE FILE="transliteration.asp"-->
<%
end if


Change the parts in green to reflect the name of the folder where your forum is stored.

Also, earlier in this thread I told you to but the
%>
<!--#INCLUDE FILE="transliteration.asp"-->
<%
in two sections of the code. But you only need it in the second place. You can remove it from the first place.

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 21 September 2009 12:01:36
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 20 September 2009 :  21:29:45  Show Profile  Visit leatherlips's Homepage
I discovered a problem but do not know how to fix it. If you try to edit a post this happens:



Does anyone know how to fix this? Line 642 is in green:

if MoveTopicAllowed = "1" then
      else
         strSql = strSql & " AND F.FORUM_ID = " & rs("FORUM_ID")
      end if
   end if

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 - 20 September 2009 :  21:37:55  Show Profile  Visit leatherlips's Homepage
I found the fix. I should have done the search first...

Change this:

strSql = strSql & " AND F.FORUM_ID = " & rs("FORUM_ID")

To this:

strSql = strSql & " AND F.FORUM_ID = " & strRqForumID

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 - 21 September 2009 :  14:12:28  Show Profile
Hi,
which asp page should I change the fallowing:-


Change this:


strSql = strSql & " AND F.FORUM_ID = " & rs("FORUM_ID")

To this:


strSql = strSql & " AND F.FORUM_ID = " & strRqForumID
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 21 September 2009 :  14:39:24  Show Profile  Visit leatherlips's Homepage
That change should be made in post.asp.

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.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07