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 |
#22
|
||||
|
||||
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:
|
#23
|
|||
|
|||
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:
Quote:
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. |
#24
|
||||
|
||||
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 |
#25
|
|||
|
|||
is this server intensive? bandwidth high etc?
|
#26
|
|||
|
|||
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 )
|
#27
|
|||
|
|||
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"> James |
#28
|
|||
|
|||
<I wasn't totally accurate here, read my last 'warning' on my version>
|
#29
|
|||
|
|||
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> |
#30
|
|||
|
|||
<didn't work, actually, sorry>
|
#31
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|