Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-14-2002 Last Update: Never Installs: 0
 
No support by the author.

Well someone requested this as a hack, but it ended up being a template modification so it's here.

Anyway, what this does is adding a drop down menu with a list of languages, and you just select one and the thread will be translates.

The install this, add the following HTML code:
Code:
	<td align="center"><table cellpadding="0" cellspacing="0" border="0"><tr><td><smallfont><b>Translate Thread:</b><br>
	<select name="lang" onchange="window.location=('http://fets3.freetranslation.com:5081/?Url=path_to_forums%2Fshowthread.php%3Fs%3D%26threadid%3D$threadid&Sequence=core&Language='+this.options[this.selectedIndex].value)">
		<option value="-1" selected>Please select direction:</option>
		<option value="English/Spanish">English to Spanish</option>
		<option value="English/French">English to French</option>
		<option value="English/German">English to German</option>
		<option value="English/Italian">English to Italian</option>
		<option value="English/Norwegian">English to Norwegian</option>
		<option value="English/Portuguese">English to Portuguese</option>
		<option value="Spanish/English">Spanish to English</option>
		<option value="French/English">French to English</option>
		<option value="German/English">German to English</option>
		<option value="Italian/English">Italian to English</option>
		<option value="Portuguese/English">Portuguese to English</option>
	</select></smallfont></td></tr></table></td>
right before this:
Code:
	<td align="center">$adminoptions</td>
in your showthread template.

You only need to change the red part, like this. If the forum is at http://www.vbulletin.com/forum you need to replace the red part with "www.vbulletin.com%2Fforum" (you drop the http:// and change / into %2F as you can see!).

That's it.

Show Your Support

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

Comments
  #22  
Old 01-17-2002, 11:44 PM
GrphicImprssion's Avatar
GrphicImprssion GrphicImprssion is offline
 
Join Date: Jan 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wish I could report that this was a success, but it did not help any with the password problem, it still comes back to a translated login sreen for me. :cry:
Reply With Quote
  #23  
Old 01-18-2002, 12:13 PM
Arathorn Arathorn is offline
 
Join Date: Nov 2001
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the login error as well, so I fiddled around with jamesdasher's script and it now works. It works for me and my users aren't getting the logon screen. CAVEAT: Besides the fact that some tiny changes were made, I have NO idea what I did to fix this (i.e. it might not work for you).

In SHOWTHREAD.PHP

AFTER THIS:
Quote:
<td>$forumjump</td>
ADD:
Quote:
<td>
<!-- TRANSLATER -->
<table border=0 cellpadding=2 cellspacing=0 width=614>
<form action="http://babelfish.altavista.com/tr" method="post">
<input type="hidden" name="doit" value="done">
<input type="hidden" name=tt value="url">
<input type="hidden" name=url value="http://www.yoursite.com/showthread.php?threadid=$threadid">
<tr><td class=s>Translate from <B>
<select name="lp">
<option value="en_zh" >English to Chinese</option>
<option value="en_fr" >English to French</option>
<option value="en_de" >English to German</option>
<option value="en_it" >English to Italian</option>
<option value="en_ja" >English to Japanese</option>
<option value="en_ko" >English to Korean</option>
<option value="en_pt" >English to Portuguese</option>
<option value="en_es" SELECTED>English to Spanish</option>
<option value="zh_en" >Chinese to English</option>
<option value="fr_en" >French to English</option>
<option value="fr_de" >French to German</option>
<option value="de_en" >German to English</option>
<option value="de_fr" >German to French</option>
<option value="it_en" >Italian to English</option>
<option value="ja_en" >Japanese to English</option>
<option value="ko_en" >Korean to English</option>
<option value="pt_en" >Portuguese to English</option>
<option value="ru_en" >Russian to English</option>
<option value="es_en" >Spanish to English</option>
</select></B>
<input type="Submit" value="Translate">
</td></tr>
</form>
</table>
<!-- TRANSLATER -->
</td>
Note: You can't translate the same page twice in a row. The frames generated by babelfish kills it.

Request: Anyone know how I can alter this to work on any page on the forums? It would be awesome if this could be added to the header.
Reply With Quote
  #24  
Old 01-18-2002, 12:37 PM
GrphicImprssion's Avatar
GrphicImprssion GrphicImprssion is offline
 
Join Date: Jan 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This too unforuneately did not work for me, in fact I am curious as to what else you may have done because the only code changes I see in your scipt vs the original altavista script are superficial, centering tag gone, button type, and text display wording.

This is what i see as being the problem and I need the input of a techie type to try and figure it out:

<input type="hidden" name=url value="http://www.yoursite.com/showthread.php?threadid=$threadid">
The question is, what can be added to this line to force the translator to identify the user's "cookie" for the bb site rather than the translator site? Think this is possible?

GI
Reply With Quote
  #25  
Old 01-18-2002, 01:44 PM
bobbydavro bobbydavro is offline
 
Join Date: Jan 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this server intensive? bandwidth high etc?
Reply With Quote
  #26  
Old 01-18-2002, 07:10 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see any reason why it would be in anyway server intensive, as it all takes place on another site (though I could be wrong as I am not the most advanced in this stuff )
Reply With Quote
  #27  
Old 01-18-2002, 07:18 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, not exactly sure what your problem is so I can't promise this will help at all...but you could try changing the hidden form element with the link to:

Code:
<input type="hidden" name="url" value="http://www.yoursite.com/showthread.php?s=$session[sessionhash]&threadid=$threadid">
Hope that works!

James
Reply With Quote
  #28  
Old 01-18-2002, 07:20 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<I wasn't totally accurate here, read my last 'warning' on my version>
Reply With Quote
  #29  
Old 01-18-2002, 08:18 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if for some reason the babelfish script is messing up your layout a lot (it was for me quite a bit)...you can try the following which is a script for http://translation.lycos.com.

pretty much the same just a different system (so some different elements in the form.

same basic instructions just different code

Code:
<td align="center"><table cellpadding="0" cellspacing="0" border="0"><tr><td>
<form action="http://translation.lycos.com/" method="post">
<input type="hidden" name="urltext" value="http://www.teenssucceed.com/showthread.php?threadid=$threadid">
<smallfont><b>Translate Thread:</b></smallfont><br>
<select name="lp">
<option value='de_en'>German to English</option>
<option value='de_fr'>German to French</option>
<option value='en_de'>English to German</option>
<option SELECTED value='en_es'>English to Spanish</option>
<option value='en_fr'>English to French</option>
<option value='en_it'>English to Italian</option>
<option value='en_pt'>English to Portuguese</option>
<option value='es_en'>Spanish to English</option>
<option value='es_fr'>Spanish to French</option>
<option value='fr_de'>French to German</option>
<option value='fr_en'>French to English</option>
<option value='fr_es'>French to Spanish</option>
<option value='fr_it'>French to Italian</option>
<option value='fr_pt'>French to Portuguese</option>
<option value='it_en'>Italian to English</option>
<option value='it_fr'>Italian to French</option>
<option value='pt_en'>Portuguese to English</option>
</select>
$gobutton
</form>
</td></tr></table></td>
James
Reply With Quote
  #30  
Old 01-18-2002, 08:30 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<didn't work, actually, sorry>
Reply With Quote
  #31  
Old 01-19-2002, 08:59 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GREAT TEMPLATE CUSTOMIZATION, Chen !!!


I always have been searchin!

Just a hack-oriented question :stoned: : could I made that combo-box displayed ONLY on some forum (for example, configurable in AdminCP within new/edit forum with a new field in db like 'multilanguage' area ?
Because I have a couple of international areas, so I'd prefer put that bit only in those ones.

Thanks a lot
Reply With Quote
Reply


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 11:02 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.05354 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (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