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
  #42  
Old 02-02-2002, 05:06 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry here it is cleaned up:

Code:
<table cellpadding="0" cellspacing="0" border="0">
<tr><td>
    <font face="Verdana,Arial" size="1">
    <b>Translate thread:</b></font>
<FORM name=texur action=http://www.tranexp.com:2000/InterTran method=post><input onblur=dudeurl() type="hidden" name="url" value="http://forum.racesimcentral.com/showthread.php?threadid=$threadid"><SELECT name=from style="font-family: Verdana, Arial; font-size: 8pt" size="1">
<OPTION value=eng selected>English
<OPTION value=spa>Spanish
<OPTION value=fre>French
<OPTION value=ger>German
<OPTION value=ita>Italian
<OPTION value=poe>Portuguese
<OPTION value=pob>Brazilian Portuguese
<OPTION value=cro>Croatian (CP 1250)
<OPTION value=che>Czech (CP 1250)
<OPTION value=dan>Danish
<OPTION value=dut>Dutch
<OPTION value=spe>European Spanish
<OPTION value=fin>Finnish
<OPTION value=grk>Greek
<OPTION value=hun>Hungarian (CP 1250)
<OPTION value=ice>Icelandic
<OPTION value=jpn>Japanese (Shift JIS)
<OPTION value=spl>Latin American Spanish
<OPTION value=nor>Norwegian
<OPTION value=pol>Polish (CP 1250)
<OPTION value=rus>Russian (CP 1251)
<OPTION value=sel>Serbian (Latin)
<OPTION value=slo>Slovenian (CP 1250)
<OPTION value=swe>Swedish
<OPTION value=wel>Welsh</OPTION></SELECT><BR>
<SELECT name=to style="font-family: Verdana, Arial; font-size: 8pt" size="1">
<OPTION value=spa selected>Spanish
<OPTION value=eng>English
<OPTION value=fre>French
<OPTION value=ger>German
<OPTION value=ita>Italian
<OPTION value=poe>Portuguese
<OPTION value=pob>Brazilian Portuguese
<OPTION value=cro>Croatian (CP 1250)
<OPTION value=che>Czech (CP 1250)
<OPTION value=dan>Danish
<OPTION value=dut>Dutch
<OPTION value=spe>European Spanish
<OPTION value=fin>Finnish
<OPTION value=grk>Greek
<OPTION value=hun>Hungarian (CP 1250)
<OPTION value=ice>Icelandic
<OPTION value=jpn>Japanese (Shift JIS)
<OPTION value=spl>Latin American Spanish
<OPTION value=nor>Norwegian
<OPTION value=pol>Polish (CP 1250)
<OPTION value=rus>Russian (CP 1251)
<OPTION value=sel>Serbian (Latin)
<OPTION value=slo>Slovenian (CP 1250)
<OPTION value=swe>Swedish
<OPTION value=wel>Welsh</OPTION></SELECT><INPUT type=submit value=Go style="font-family: Verdana, Arial; font-size: 8pt"><INPUT type=hidden value=yes name=topframe>  
                          </FORM>
</td></tr>
</table>
Reply With Quote
  #43  
Old 02-02-2002, 04:43 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry all for not having gotten the hack out, been extremely busy lately with school and work and haven't had time.

James

P.S. hope to get it out this weekend, maybe
Reply With Quote
  #44  
Old 02-02-2002, 09:18 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by jamesdasher
sorry all for not having gotten the hack out, been extremely busy lately with school and work and haven't had time.
P.S. hope to get it out this weekend, maybe
np.
Thanks a lot for your 'hello'...
Here I'm, don't hurry/worry !

Thnx
Reply With Quote
  #45  
Old 02-03-2002, 03:05 PM
Stretchr's Avatar
Stretchr Stretchr is offline
 
Join Date: Dec 2001
Location: Georgia, USA
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was just wondering whether the problem of private forum translation had been resolved? If so, I'd love to see how it was done. Thanks.
Reply With Quote
  #46  
Old 02-07-2002, 03:14 PM
Archer Archer is offline
 
Join Date: Feb 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't forget to change:
Code:
../showthread.php?threadid=$threadid
to

Code:
../showthread.php?threadid=$threadid&perpage=$perpage&pagenumber=$pagenumber
So, following the my variant of code (applied to http://forum.wbfree.net).

Code:
<!-- Translation -->

<td align=center>
<table cellpadding="0" cellspacing="0" border="0">
<form method=POST action='http://www.translate.ru/rus/url/tran_url.php'><tr><td>
<font size="1" face="Arial">
<b>Translate Thread:</b><br>
<input type=hidden name=template value='General'>
<select name=direction>
<option value='re' selected>Russian to English</option>
<option value='rg'>Russian to German</option>
<option value='rf'>Russian to French</option>
<option value='er'>English to Russian</option>
<option value='gr'>German to Russian</option>
</select>
<input type=hidden name=url value="http://forum.wbfree.net/forums/showthread.php?s=&threadid=$threadid&perpage=$perpage&pagenumber=$pagenumber">

<!-- go button -->
<input type="image" src="images/go.gif" border="0" align="absbottom"></font>
</td></tr></form>
</table></td>

<!-- End of translation -->
I have most Russian-speaking visitors, but also English-speaking. They ask me to make some translator implementation. I'm using http://www.translate.ru service for it. Unfortunaly, this service can't parse URLs inside document.

The almost same code for forumdisplay template:
Code:
<!-- Translation -->

<td align=center>
<table cellpadding="0" cellspacing="0" border="0">
<form method=POST action='http://www.translate.ru/rus/url/tran_url.php'><tr><td>
<font size="1" face="Arial">
<b>Translate Thread List:</b><br>
<input type=hidden name=template value='General'>
<select name=direction>
<option value='re' selected>Russian to English</option>
<option value='rg'>Russian to German</option>
<option value='rf'>Russian to French</option>
<option value='er'>English to Russian</option>
<option value='gr'>German to Russian</option>
</select>
<input type=hidden name=url value="http://forum.wbfree.net/forums/forumdisplay.php?s=&forumid=$forumid">

<!-- go button -->
<input type="image" src="images/go.gif" border="0" align="absbottom"></font>
</td></tr></form>
</table></td>

<!-- End of translation -->
Reply With Quote
  #47  
Old 02-07-2002, 07:40 PM
Lucky Lucky is offline
 
Join Date: Dec 2001
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Stretchr
I was just wondering whether the problem of private forum translation had been resolved? If so, I'd love to see how it was done. Thanks.
+1
Reply With Quote
  #48  
Old 02-20-2002, 11:24 PM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WTF?

please help me

heres the code I putinto the template

<td align="right"><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=www.mysite.net/forum/showthread.php%3Fs%3D%26threadid%3D$threadid&Seque nce=core&Language='+this.optio ns[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>

yet I still get the error

Error: The url "http://http;//www.ochroma.net/fourm/showthread.php?s=&threadid=" could not be found

What am I doing wrong, wheres the extra http;// comming from?
Reply With Quote
  #49  
Old 02-21-2002, 12:03 AM
Stretchr's Avatar
Stretchr Stretchr is offline
 
Join Date: Dec 2001
Location: Georgia, USA
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check the area I highlighted in bold. I believe this may be where your problem is.
HTH


Quote:
Originally posted by Psychdrone
WTF?

please help me

heres the code I putinto the template

<td align="right"><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=www.mysite.net /forum/showthread.php%3Fs%3D%26threadid%3D$threadid&Seque nce=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>

yet I still get the error

Error: The url "http://http;//www.ochroma.net/fourm/showthread.php?s=&threadid=" could not be found

What am I doing wrong, wheres the extra http;// comming from?
Reply With Quote
  #50  
Old 02-21-2002, 07:10 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
[i]Originally posted by jamesdasher [/i
sorry all for not having gotten the hack out, been extremely busy lately with school and work and haven't had time.
P.S. hope to get it out this weekend, maybe
Hi, Jamesdasher.
Are you still there ?
Thnx
Reply With Quote
  #51  
Old 02-21-2002, 05:01 PM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Stretchr
Check the area I highlighted in bold. I believe this may be where your problem is.
HTH


O I know, I just didn't want to put my site there duh I am not that stupid

whats the problem thu, its not that
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 07: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.05601 seconds
  • Memory Usage 2,334KB
  • Queries Executed 27 (?)
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
  • (7)bbcode_code
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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