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)

Crogge 02-07-2011 09:16 PM

Quote:

Originally Posted by Infopro (Post 2159801)
...

I'm not sure I understand the increased loading time thing. Pages don't load any slower with this in footer that I can see.

...

Well my forums loads normally in 1-2 seconds for me and with this modification it takes 4-5 seconds minimum because its connecting to Google first even if its not in use (No translation).

BadgerDog 02-07-2011 09:36 PM

Quote:

Originally Posted by Crogge (Post 2159938)
Well my forums loads normally in 1-2 seconds for me and with this modification it takes 4-5 seconds minimum because its connecting to Google first even if its not in use (No translation).

Yup ... +1 ...

Anyway, on the other matter, what I'm trying to say ... is it possible to make the execution of this mode conditional?

In other words, wrap the mod in IF THEN code?

ie: If the language is NOT English, then execute this code

Code:

<!-- Translate vBulletin -->
<div id="google_translate_element" class="footer_select"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    multilanguagePage: true,
    gaTrack: true,
    gaId: 'UA-12345-12',
    layout: google.translate.TranslateElement.InlineLayout.SIMPLE
  }, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!-- /Translate vBulletin -->


ELSE do not execute the mod....

Is that any clearer and is it possible to create such a conditional? :)

Thanks for any help ...

Regards,
Doug

Dr.osamA 02-07-2011 10:35 PM

Excellent = 5 stars

installed

thank you

SuperTaz 02-09-2011 11:11 PM

Simple and easy. Thank you. Nominated also.

8thos 02-09-2011 11:52 PM

Slowed my site down a lil bit. Uninstalled.

jitsuboy 02-10-2011 05:35 AM

Anyway to put this in the header instead?

OldSchoolDSL 02-18-2011 11:20 PM

Nominated Mod of The Month

This worked wonderfully on my test site, but because I use CometChat... Which already adds to my load ... I will not be able to use this on my community.

thr45h3r 02-19-2011 01:56 AM

Clean easy and works great :)

Marked Installed

Thanks

BlueCheri 02-19-2011 12:15 PM

Great!

Installed and nominated :)

Thanx

scottct1 02-22-2011 01:46 PM

Quote:

Originally Posted by Crogge (Post 2159938)
Well my forums loads normally in 1-2 seconds for me and with this modification it takes 4-5 seconds minimum because its connecting to Google first even if its not in use (No translation).

I have had to uninstall it from mine because of this issue.

I hope they can fix it as its a great mod, but I was getting to many complaints from people.


All times are GMT. The time now is 04:01 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.01279 seconds
  • Memory Usage 1,739KB
  • 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_code_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