+ Reply to Thread
Results 1 to 10 of 10

Thread: Translation 'hack'

  1. #1
    Senior Member John is on a distinguished road
    Join Date
    Apr 2000
    Location
    Hastings, UK
    Age
    26
    Posts
    4,063
    Thanks to Brian Palik for this.

    Add this somewhere in the showthread template:

    Code:
    <center>
    <FORM NAME="systran" ACTION="http://translator.go.com/" METHOD=POST>
    <input type="hidden" name="input_type" value="url">
    <input type="hidden" name="url" value="$bburl/showthread.php?threadid=$threadid&pagenumber=$pagenumber">
    <FONT SIZE="2" FACE="arial, helvetica"><b>Translate This Page</b></font>
    <BR>
    <SELECT NAME="lp" >
    <OPTION VALUE="en_sp" selected> English to Spanish
    <OPTION VALUE="en_fr"> English to French
    <OPTION VALUE="en_ge"> English to German
    <OPTION VALUE="en_it"> English to Italian
    <OPTION VALUE="en_pt"> English to Portuguese
    </SELECT> <INPUT TYPE="submit" VALUE="Translate"><br>
    <FONT SIZE="2" FACE="arial, helvetica">Powered by <a href="http://www.systransoft.com/english/products/personal/go_personal.html">Systran</a> Translation Software</font></form>
    </center>
    John Percival

    Artificial intelligence usually beats real stupidity

  2. #2
    Senior Member Menno is on a distinguished road Menno's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Age
    25
    Posts
    1,226
    Wouldn't this fall under the code hacking forum?
    - Insert viable disclaimer here -

    ArtBeast!

  3. #3
    Senior Member Stallion is on a distinguished road
    Join Date
    Apr 2000
    Location
    Cumberland, RI, US
    Age
    26
    Posts
    706
    Considering that there's no code editing involved? No.

    I have a feeling most of the common UBB hacks can be done through templates (as is with OpenTopic, if you would believe it yourself)
    // Chris Lambert <chris.lambert@vbulletin.com>

  4. #4
    Senior Member Stallion is on a distinguished road
    Join Date
    Apr 2000
    Location
    Cumberland, RI, US
    Age
    26
    Posts
    706

    Oh, one more thing...

    I'm planning on making a spiffy new version of the hack which will translate individual posts instead.
    // Chris Lambert <chris.lambert@vbulletin.com>

  5. #5
    Senior Member JonnyQuest is on a distinguished road
    Join Date
    Apr 2000
    Location
    NYC
    Posts
    253
    Can I see this anywhere...?

  6. #6
    Senior Member John is on a distinguished road
    Join Date
    Apr 2000
    Location
    Hastings, UK
    Age
    26
    Posts
    4,063
    Have a look here:

    http://www.elitecaraudio.com/forums/...?threadid=2129

    (This is Brian's board using basically the same code)
    John Percival

    Artificial intelligence usually beats real stupidity

  7. #7
    Member bsousa is on a distinguished road
    Join Date
    Aug 2004
    Posts
    31
    Quote Originally Posted by John
    Thanks to Brian Palik for this.

    Add this somewhere in the showthread template:

    Code:
    <center>
    <FORM NAME="systran" ACTION="http://translator.go.com/" METHOD=POST>
    <input type="hidden" name="input_type" value="url">
    <input type="hidden" name="url" value="$bburl/showthread.php?threadid=$threadid&pagenumber=$pagenumber">
    <FONT SIZE="2" FACE="arial, helvetica"><b>Translate This Page</b></font>
    <BR>
    <SELECT NAME="lp" >
    <OPTION VALUE="en_sp" selected> English to Spanish
    <OPTION VALUE="en_fr"> English to French
    <OPTION VALUE="en_ge"> English to German
    <OPTION VALUE="en_it"> English to Italian
    <OPTION VALUE="en_pt"> English to Portuguese
    </SELECT> <INPUT TYPE="submit" VALUE="Translate"><br>
    <FONT SIZE="2" FACE="arial, helvetica">Powered by <a href="http://www.systransoft.com/english/products/personal/go_personal.html">Systran</a> Translation Software</font></form>
    </center>

    Any update on how to make this work in 3.0.3?

  8. #8
    Member bsousa is on a distinguished road
    Join Date
    Aug 2004
    Posts
    31
    Not a lot of straight HTML in the 303 showthread.php file...can anyone show me how I can implement this translation hack here?

  9. #9
    Senior Member Chroder will become famous soon enough Chroder will become famous soon enough Chroder's Avatar
    Join Date
    Dec 2002
    Location
    Toronto, Ontario
    Age
    20
    Posts
    1,449
    It is a template hack, not a code hack.
    -- Christopher
    DeskPRO - Lead Developer :: Follow me on twitter

  10. #10
    Member bsousa is on a distinguished road
    Join Date
    Aug 2004
    Posts
    31
    So can you tell me how it would work then?

+ Reply to Thread

Similar Threads

  1. sug: replace vars for 'buddy' and 'ignore'
    By Mas*Mind in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Wed 28th Mar '01, 5:03pm
  2. Unknown column 'sessionhash' in 'field list' ?
    By eva2000 in forum Pre beta 4.1 bugs
    Replies: 10
    Last Post: Sat 10th Mar '01, 12:14am

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts