vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Free Thread Translator (https://vborg.vbsupport.ru/showthread.php?t=34110)

GrphicImprssion 01-17-2002 11:44 PM

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:

Arathorn 01-18-2002 12:13 PM

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.

GrphicImprssion 01-18-2002 12:37 PM

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

bobbydavro 01-18-2002 01:44 PM

is this server intensive? bandwidth high etc?

jamesdasher 01-18-2002 07:10 PM

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 :))

jamesdasher 01-18-2002 07:18 PM

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

jamesdasher 01-18-2002 07:20 PM

<I wasn't totally accurate here, read my last 'warning' on my version>

jamesdasher 01-18-2002 08:18 PM

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

jamesdasher 01-18-2002 08:30 PM

<didn't work, actually, sorry>

Jawelin 01-19-2002 08:59 AM

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


All times are GMT. The time now is 10:38 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.01172 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)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