Making html tables on chesstalk!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Making html tables on chesstalk!

    Perhaps someone can translate this onto the French board... My French isn't up to this level of technical stuff.

    Anyway, let's say you want to make a table. If you do a normal HTML table code, it won't work:

    <table><tr><td>hi!</td></tr></table>


    But, if you do vbcode it now will. Replace all <>'s with []'s. You cannot use any additional variables at this time though.

    PHP Code:
    start

    [table][tr][th]title1[/th][th]title2[/th][/tr][tr][td]data1[/td][td]data2[/td][/tr][/table]

    end 
    That turns out like this:
    start

    data1 data2
    end
    Note that if you try to make the code legible, it'll put tons of extra lines in:

    PHP Code:
    start

    [table]
    [
    tr]
    [
    th]title1[/th]
    [
    th]title2[/th]
    [/
    tr]
    [
    tr]
    [
    td]data1[/td]
    [
    td]data2[/td]
    [/
    tr]
    [/
    table]

    end 
    That turns out like this:

    start

    data1 data2
    end
    Anyway, hope that helps some people.
    Christopher Mallon
    FIDE Arbiter

  • #2
    Re: Making html tables on chesstalk!

    If anybody still uses old {DOS} command line batch files, this changes a minimal but proper html table into something like what you need to post it here:
    Code:
    chg -v -i %1 -s [13][10] -r ""
    chg -v -i %1 -s " border=0" -r ""
    chg -v -i %1 -s " border=1" -r ""
    chg -v -i %1 -s "</thead>" -r ""
    chg -v -i %1 -s "<thead>" -r ""
    chg -v -i %1 -s [60] -r [91]
    chg -v -i %1 -s [62] -r [93]
    chg is not a built-in command, it's an old free utility.
    CHG is Copyright (C) 1988 John Kruper. All Rights Reserved.
    works at least up to Win XP SP 3. A google search does not find the utility. Hmmm.... Hey, it was only 22 years ago!

    Comment

    Working...
    X