vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   End-User Options - Forum Translator by Google (https://vborg.vbsupport.ru/showthread.php?t=258009)

Baghira 03-26-2011 02:24 PM

Wow, Cool. Thanks.

Simple and effective

LeventX 05-12-2011 08:50 AM

Perfect....Thank you.Installed..

billstelling 05-15-2011 11:38 PM

Code:

<!-- Translate vBulletin -->
<style>
.goog-te-banner-frame{display: none !important;}
body{top: 0px !important;}
</style>

<style>
.goog-te-balloon-frame{display: none !important;}
font{background: transparent !important;}
</style>

<div id="google_translate_element" class="footer_select"></div><script>
function googleTranslateElementInit() {new google.translate.TranslateElement({
        pageLanguage: 'en',    gaTrack: true,}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!-- /Translate vBulletin -->

there is no pop up in this one and instead it is a list like the theme selector and also the stuff wont pop up when you mouse over text.. much more user friendly.. you can check it out on my site www.thewindowscenter.com. I found the changed code on google dev.
I want to change the powered by google to the right of it instead on under it if anyone can figure that one out. or get rid of that part all together.. either way is fine with me.

BadgerDog 05-16-2011 10:19 AM

Quote:

Originally Posted by billstelling (Post 2196153)
there is no pop up in this one and instead it is a list like the theme selector and also the stuff wont pop up when you mouse over text.. much more user friendly.. you can check it out on my site www.thewindowscenter.com. I found the changed code on google dev.
I want to change the powered by google to the right of it instead on under it if anyone can figure that one out. or get rid of that part all together.. either way is fine with me.

Thanks ... :up:

Do you put your gaId: in anywhere, or is it necessary?

Also, any idea how to make the mod appear ONLY if the user acessing the site has his browser set for anything other than English? This is a nice mod, but it does dramatically slow down the home page display by up to a few seconds, depending upon how busy the access is to Google to get the code. It would be great for us if it only went out to Google to get the code and offer the translate option if the accessing user's browser was not set for English.

Regards,
Doug

billstelling 05-17-2011 03:11 AM

no i didn't put it in with it. stopped using adsense and gaId.. you can add that part back if you do.. I guess an andif parameter could be added, I'm just not sure of how to do it for there product. will take a better coder.. I'm still leaning it all. I can do mods and what not to existing code but not good enough you to do my own stuff. I just figure it out by trial and error..
but i do like this one and like you wish it was a bit more configurable.

raj4x 05-26-2011 02:14 PM

Quote:

Originally Posted by billstelling (Post 2196153)

I want to change the powered by google to the right of it instead on under it if anyone can figure that one out. or get rid of that part all together.. either way is fine with me.

Add/change to:

PHP Code:

layoutgoogle.translate.TranslateElement.InlineLayout.HORIZONTAL 

That should put the text on right side next to box.
Still finding a way to remove the whole thing, might not be possible.

Cheers, Raj.

raj4x 05-26-2011 02:19 PM

Did anyone notice the translation does not "stick"...?

If you select a language on a page/thread and click on new thread, it's back to the default language again?

TheLastSuperman 05-26-2011 03:38 PM

Quote:

Originally Posted by raj4x (Post 2200221)
Did anyone notice the translation does not "stick"...?

If you select a language on a page/thread and click on new thread, it's back to the default language again?

Works fine for me navigating, usually takes a second to reload the page - translated of course.... "New Thread" though might be the issue besides you don't want everyone posting in languages you can't admin so best for it to return to your default language as a reminder per say imo.

raj4x 05-28-2011 09:05 AM

Quote:

Originally Posted by TheLastSuperman (Post 2200241)
Works fine for me navigating, usually takes a second to reload the page - translated of course.... "New Thread" though might be the issue besides you don't want everyone posting in languages you can't admin so best for it to return to your default language as a reminder per say imo.

Yep, works now, thanks. :)

billstelling 05-28-2011 01:00 PM

Code:

<!-- Translate vBulletin -->
<style>
.goog-te-banner-frame{display: none !important;}
body{top: 0px !important;}
.goog-te-balloon-frame{display: none !important;}
font{background: transparent !important;}
</style>
<div id="google_translate_element" class="footer_select"></div><script>
function googleTranslateElementInit() {new google.translate.TranslateElement({
layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,
        pageLanguage: 'en',    gaTrack: true,}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!-- /Translate vBulletin -->

this is how i have it now.


All times are GMT. The time now is 07:58 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.01685 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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