Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Translate a Thread in a Google Pop-Up Window Details »»
Translate a Thread in a Google Pop-Up Window
Version: 2.00, by Digital Jedi Digital Jedi is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 01-21-2008 Last Update: 08-18-2008 Installs: 29
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Support and updates for this mod will now be given in the 3.7.x thread, as this should work no matter what your version of vB. If you have any questions, please ask in that thread.





Screenshot



Supported Languages
العربية (Arabic)
Български (Bulgarian)
中国 (Chinese - Simplified)
中國 (Chinese - Traditional)
Hrvatski (Croatian)
Česky (Czech)
Dansk (Danish)
Nederlands (Dutch)
English (This is merely a direct link to the Google Translator)
Suomi (Finnish)
Fran?ais (French)
Ελληνική (Greek)
Deutsch (German)
हिन्दी (Hindi)
Italiano (Italian)
日本語 (Japanese)
한국어 (Korean)
Norsk (Norwegian)
Polski (Polish)
Portugu?s (Portuguese)
Rom?nă (Romanian)
Русский Russian
Espa?ol (Spanish)
Svenska (Swedish)


Live Demo
Look for the "Translate" drop-down menu beside the "Display Modes" drop-down.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 02-21-2008, 11:11 PM
paulvev's Avatar
paulvev paulvev is offline
 
Join Date: Mar 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my forum has a tiny bit of flash in the header...this modification gives me a white page on the google popup saying "Google error - Server Error - Please try again in 30 seconds" but its not working at all ?

Any suggestions?
Reply With Quote
  #83  
Old 02-22-2008, 12:36 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It probably means just that. An internal server error. In fact, I believe Google was having some problems earlier today. Try again later on and it should work fine.
Reply With Quote
  #84  
Old 02-22-2008, 08:51 PM
paulvev's Avatar
paulvev paulvev is offline
 
Join Date: Mar 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Think so? Im not sure...its been 24 hours now and the server error is still showing each time i try to translate.

Going in via google, its translation of web page services (directly) seems to be working ok? Anybody got any ideas...i'd love this on my forum...i have people from 28 different countries!

Is there a way that the popup can show just the thread or post, rather than the header/navbar?
Im sure the problem lies in my flash header or complex navbar.
Reply With Quote
  #85  
Old 02-22-2008, 09:12 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hrm, that sounds odd. Have you tried the workaround ScaleMotoreCars tried? He was having trouble with his flash banner as well.

By the way, I think I've almost got the bugs on that vBa module worked out. But I can't be sure it will work for every forum until you try it out. So consider it a Beta.
Reply With Quote
  #86  
Old 02-22-2008, 09:53 PM
paulvev's Avatar
paulvev paulvev is offline
 
Join Date: Mar 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also have the Limited Guest hack installed. I turned it off
https://vborg.vbsupport.ru/showt...=Limited+Guest

still didnt work. My forum is set up for guests to be able to view posts.
I do have a tiny bit of flash in my header..

you can see whats happening here :
http://www.forumvme.com/showthread.php?t=699
The language menu opens up fine, but the google translation page struggles and gives a "google internal server error"...although i know its not google, cos all the examples including your demo are actually working right now.

I'm using Firefox... but it doesnt work in IE too.
Im pretty stuck now to be honest. Any ideas?
Reply With Quote
  #87  
Old 02-23-2008, 03:19 AM
Magnusson2u Magnusson2u is offline
 
Join Date: Dec 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's some great shit! I can't use it, but I love it!
Reply With Quote
  #88  
Old 02-25-2008, 06:57 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paulvev View Post
I also have the Limited Guest hack installed. I turned it off
https://vborg.vbsupport.ru/showt...=Limited+Guest

still didnt work. My forum is set up for guests to be able to view posts.
I do have a tiny bit of flash in my header..

you can see whats happening here :
http://www.forumvme.com/showthread.php?t=699
The language menu opens up fine, but the google translation page struggles and gives a "google internal server error"...although i know its not google, cos all the examples including your demo are actually working right now.

I'm using Firefox... but it doesnt work in IE too.
Im pretty stuck now to be honest. Any ideas?
I'm thinking it is Google. It's just having a problem with your site in particular. You wouldn't get a server error message if it was on your end. I suggest disabling your hacks one by one, and trying each time to see which one might be causing the problem. I'd start with your advertisements first, and see if it's the flash causing the problem. Google is having a problem processing something and it's causing an error on their end.

Quote:
Originally Posted by Magnusson2u View Post
That's some great shit! I can't use it, but I love it!
Why, thank you.
Reply With Quote
  #89  
Old 02-26-2008, 02:04 AM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Google doesn't like the flash get around JS script. I took a quick look at your site and noticed your flash gets around the active-X. So however your doing that I bet thats your problem.
Reply With Quote
  #90  
Old 02-28-2008, 08:09 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry this took so long. Just been busy.

This will create a vBadvanced module on your home page. Let's test this first and make sure it works for everyone, before we tackle a module for all your pages and the additional language options.

Step 1
(For vBadvanced 3.0.0) Go to Admin CP >>> vBa CMPS >>> Add Module>>>Template Module

Step 2

Name the module what you will. I named mine Translate this Page. The important options to set are as follows. You can set the others to whatever you wish.
Template to Include: translate_page
Template Content:
PHP Code:
<center>  
   <
table width="99%" class="tcat">
      <
tr>
         <
td id="languagemenu" nowrap="nowrap">
            <
a href="$show[nojs_link]#goto_languagemenu"><strong>Translate this Page</strong></a>
           <if 
condition="$show['popups']"><script type="text/javascript"vbmenu_register("languagemenu"); </script></if>
         </
td>
      </
tr>
   </
table>
</
center>
 <
br />
 
  <!-- 
Language Translator Menu -->
   <
div class="vbmenu_popup" id="languagemenu_menu" style="display:none">
  <
table cellpadding="4" cellspacing="1" border="0">
<
tr><td class="thead">Translate this Page</td></tr>
 
<!-- 
Arabic -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Car&hl=en&ie=UTF-8','','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>
 
<!-- 
Chinese (Simplified) -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Czh-CN&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/cn.gif" alt="Chinese (Simplified)" width="15" height="10" border="0" /> <span title="Chinese (Simplified)">Chinese (s)</span></a></td></tr>
 
<!-- 
Chinese (Traditional) -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Czh-TW&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/tw.gif" alt="Chinese (Traditional)" width="15" height="10" border="0" /> <span title="Chinese (Traditional)">Chinese (t)</span></a></td></tr>
 
<!-- 
English -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://www.google.com/language_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=700,height=500')">
<
img src="$stylevar[imgdir_button]/us.gif" alt="English" width="15" height="10" border="0" /> <span title="English">English</span></a></td></tr>
 
<!-- 
French -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Cfr&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/fr.gif" alt="French" width="15" height="10" border="0" /> <span title="French">Fran?ais</span></a></td></tr>
 
<!-- 
German -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Cde&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/de.gif" alt="German" width="15" height="10" border="0" /> <span title="German">Deutsch</span></a></td></tr>
 
<!-- 
Greek -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Cel&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/gr.gif" alt="Greek" width="15" height="10" border="0" /> <span title="Greek">Greek</span></a></td></tr>
 
<!-- 
Italian -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Cit&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/it.gif" alt="Italian" width="15" height="10" border="0" /> <span title="Italian">Italiano</span></a></td></tr>
 
<!-- 
Japanese -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Cja&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/jp.gif" alt="Japanese" width="15" height="10" border="0" /> <span title="Japanese">Japanese</span></a></td></tr>
 
<!-- 
Korean -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Cko&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/kr.gif" alt="Korean" width="15" height="10" border="0" /> <span title="Korean">Korean</span></a></td></tr>
<!-- 
Portuguese -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Cpt&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/pt.gif" alt="Portuguese" width="15" height="10" border="0" /> <span title="Portuguese">Portuguese</span></a></td></tr>
 
<!-- 
Russian -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Cru&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/ru.gif" alt="Russian" width="15" height="10" border="0" /> <span title="Russian">Russian</span></a></td></tr>
 
<!-- 
Spanish -->
<
tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&langpair=en%7Ces&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/es.gif" alt="Spanish" width="15" height="10" border="0" /> <span title="Spanish">Espa?ol</span></a></td></tr
    
<!-- 
Dutch -->
<
tr><td class="vbmenu_option"><a href="#" onclick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.COM&amp;langpair=en%7Cnl&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
img src="$stylevar[imgdir_button]/nl.gif" alt="Dutch" width="15" height="10" border="0" /> <span title="Dutch">Nederlands</span></a></td></tr>
  
   </
table></div>
   <!-- / 
Language Translator Menu --> 
Use Module Wrapper Template: No
Step 3
Replace each instance of YOURDOMAIN.COM with the location of your forum.

Step 4
After setting your other settings to preference, save the module and when prompted, add it to the page your using as your home page.

And that should do it. The rest can be set to your customizations. When you wish to edit the appearance and the code of the module, you will go to your Style Manager and edit the template named adv_portal_translate_page. Here's mine in action: www.cogonline.net
Reply With Quote
  #91  
Old 02-29-2008, 04:22 AM
Tom S Tom S is offline
 
Join Date: Feb 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You so much for writing this code. It is going to help our research like you would not believe. I have just worked on this for around an hour (I am really new to this code stuff). But I did get it working correctly. Now if I could just figure out what I did wrong with the Mp3 player

Check out my Forum: http://www.bigfootreferenceguide.com/index.php

You guys are geniuses in my book. I was just noticing the update to add to the Template Module. This will not overwrite what I have just done, correct? This will be for the next Forum Skin that I build?

Tom S.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:01 PM.


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.11889 seconds
  • Memory Usage 2,392KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete