vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Translate every page on the fly (https://vborg.vbsupport.ru/showthread.php?t=215249)

doa24uk 06-02-2009 10:00 PM

Translate every page on the fly
 
1 Attachment(s)
NOTE: This MOD will work on ANY version of vBulletin - 3.4,3.5,3.6,3.7,3.8 etc...


This will give you a Google translate box which will allow users to translate your pages on the fly into their own language!


Step 1


Go here and choose your forum native language, copy the code given in the box.

Step 2


In FORUMHOME FIND

Code:

<!-- end today's birthdays -->
</if>

INSERT AFTER

{Code copied from Step 1}


In FORUMDISPLAY FIND

Code:

<!-- ############## END THREADS LIST ##############  -->
</if>


INSERT AFTER

{Code copied from Step 1}


In SHOWTHREAD FIND

Code:

<!-- / social bookmarking links -->
</if>

INSERT AFTER

{Code copied from Step 1}


In USERCP FIND

Code:

$template_hook[usercp_main_pos6]

INSERT AFTER

{Code copied from Step 1}

TheLastSuperman 06-03-2009 11:47 AM

Nice attempt... others out there even one by UKBL :D

so everyone, pick your poison i.e. this one or others all seem good. Ohh and on the fly is kind of misleading I assumed everytime you clicked a link it would already bring it up translated... silly me but you see what I mean :p

relaxiha 06-28-2009 07:58 PM

thank you ! work fine

saadessa 06-29-2009 03:55 PM

thank you ! work fine

ricardoNJ 10-21-2009 02:00 PM

uninstalled.
It is a bit annoying that it always appears at the top, a band wanting to translate the page. Anyway: thanks!

Simon Lloyd 11-20-2009 03:16 PM

I've marked this installed however i only used the suggestion of adding the translate tool, rather than make all those template edits you could simply include it in your header or, as i have done make it floating :)

justasiam 03-23-2010 11:50 PM

Is there a new set of instructions available for v4.xx of vBulletin? Also of vbCMS and vbBlog.

inciarco 03-24-2010 01:40 AM

Google's Translator Causes Errors on Internet Explorer 6, so You Have to Create a Conditional to Exclude IE6 Browsers to Use the Translator, (the Users will get an Error Page if Not).

I Use the Following Code:

Quote:

<if condition="(is_browser('firefox') or is_browser('chrome') or is_browser('ie', '8'))">

GOOGLE_TRANSLATOR_CODE

</if>
I Haven't Tested Yet if the Translator Works Fine on Internet Explorer 7, that's why I haven't included yet a:

Quote:

or is_browser('ie', '7')
Also, the Chrome Browser should be Included with the Following Instructions:

Add Google Chrome to the is_browser() function

Another Simpler Code Might be the Following, to Exclude the Internet Explorer 6 Browser, and use the Translator on Every Other Browser and Internet Explorer Version:

Quote:

<if condition="(!is_browser('ie', '6'))">

GOOGLE_TRANSLATOR_CODE

</if>

You Can Use the Google Translator Tool Code on the Header Template and it'll be Used on All the Board's Pages. ;)

My Best Regards.

:)


All times are GMT. The time now is 04:49 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.01135 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete