vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Translate a Thread in a Google Pop-Up Window (https://vborg.vbsupport.ru/showthread.php?t=168439)

Scalemotorcars 02-16-2008 09:30 PM

Its the flash header. I reverted the header template back to the default and Wah-la it worked perfectly. Google for some reason is having a problem with it. Got any ideal???

Digital Jedi 02-16-2008 09:52 PM

This is a jack-leg fix, and I'm not sure it will work, but do you happen to have an alternate skin that doesn't use the flash headers? One of the things I had to do with the old Bablefish hack, was change the URLs in the code to something else. Like for awhile there, I had them link to the archive version of the thread, or to a different style ID. Like I said, it's a jack-leg fix, but the first thing that popped into my head.

Scalemotorcars 02-16-2008 11:37 PM

No the Flash header is a part of the site. Now that I know what the problem is I'll dig around on Google and see if theres a fix. As soon as I get it working Ill post the results here so you can add to your instructions. Thanks for everything... Daniel

One more thing. I tried putting the code into the navbar so I could translate all my portal pages but I couldn't get the <tr><td>~</td></tr>. part of the code to work anywhere. The button was easy to place anywhere on the navbar. Any Ideal where to but all the Country code?

Scalemotorcars 02-17-2008 10:44 AM

Problem solved. There were 2 issues with this hack not working with the Google Translator.

1st: For some reason Google didn't like my "objectSwap.js" This is the code to get around the pesky active X on IE.

2nd: There was a snag with my Flash content. I was using a Macromedia Shockwave Flash 6 but it kept hanging at the content. I changed it to Flash 8 and still it got stuck. SO.... I stuck the flash on its own page and used an IFrame in the header.

I know, I know its an Iframe but it works.

Now to move it into the Navbar so all pages can be translated. This would be handy for everyone with the VBadvanced CMPS portal system like myself. Make all global pages translatable. Also need to look into a fix for the ended session when translated. Any ideals.

Scalemotorcars 02-17-2008 12:44 PM

Got this into the navbar. Not really hard at all but who knows how to change the language code from "showthread.php" to translate the entire page from the navbar?

Heres the basic code for one language.
PHP Code:

<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Car&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/ae.gif" alt="Arabic" width="15" height="10" border="0" /> <span title="Arabic">Arabic</span></a></td></tr


Digital Jedi 02-17-2008 01:44 PM

Quote:

Originally Posted by Scalemotorcars (Post 1445068)
Problem solved. There were 2 issues with this hack not working with the Google Translator.

1st: For some reason Google didn't like my "objectSwap.js" This is the code to get around the pesky active X on IE.

2nd: There was a snag with my Flash content. I was using a Macromedia Shockwave Flash 6 but it kept hanging at the content. I changed it to Flash 8 and still it got stuck. SO.... I stuck the flash on its own page and used an IFrame in the header.

I know, I know its an Iframe but it works.

That's great. I'm glad you posted it here in case anyone encouters the same problem. Hey, I've always thought Iframes were awesome. ;)

Quote:

Now to move it into the Navbar so all pages can be translated. This would be handy for everyone with the VBadvanced CMPS portal system like myself. Make all global pages translatable. Also need to look into a fix for the ended session when translated. Any ideals.
Quote:

Originally Posted by Scalemotorcars (Post 1445136)
Got this into the navbar. Not really hard at all but who knows how to change the language code from "showthread.php" to translate the entire page from the navbar?

Give me just a couple of days, and I'll post the vBadvanced version of this. In order to get the benefit from it in the Navbar, you would need completely different code in the URL area. It's not hard, just different based on your needs.

Scalemotorcars 02-17-2008 04:43 PM

That would be awesome. I'm looking forward to it. :up:

Scalemotorcars 02-19-2008 04:17 PM

Any luck yet? I haven't had the time myself but Ill give it a wack sometime this week if you don't have the time either. :)

Scalemotorcars 02-21-2008 12:32 PM

I'm not having any luck with this.

To recap. I'm trying to get this to work from any .com page. Especially with the vbadvanced CMPS pages and the forum.

Its easy enough to add the Language button to the navbar but I cant get the rest of the code to work from that location. Any ideals???

Digital Jedi 02-21-2008 12:56 PM

There's a slight bug with the one I'm working with. It worked earlier, but I noticed that it didn't like some modifications to my portal page. I'm trying to work that out to see if it's the new HTML I added, or on Google's end.


All times are GMT. The time now is 04:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01082 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete