The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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> Code:
<td align="center">$adminoptions</td> 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
|
Comments |
#42
|
||||
|
||||
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> |
#43
|
|||
|
|||
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 |
#44
|
|||
|
|||
Quote:
Thanks a lot for your 'hello'... Here I'm, don't hurry/worry ! Thnx |
#45
|
||||
|
||||
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.
|
#46
|
|||
|
|||
Don't forget to change:
Code:
../showthread.php?threadid=$threadid Code:
../showthread.php?threadid=$threadid&perpage=$perpage&pagenumber=$pagenumber 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 --> 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 --> |
#47
|
|||
|
|||
Quote:
|
#48
|
|||
|
|||
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? |
#49
|
||||
|
||||
Check the area I highlighted in bold. I believe this may be where your problem is.
HTH Quote:
|
#50
|
|||
|
|||
Quote:
Are you still there ? Thnx |
#51
|
|||
|
|||
Quote:
whats the problem thu, its not that |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|