Results 1 to 12 of 12

Thread: Lineup Table Tutorial

  1. #1
    Guess Who's Back missionhockey21's Avatar
    Join Date
    Mar 2005
    Posts
    18,014
    MLB ERA
    1.56
    Blog Entries
    8

    Lineup Table Tutorial

    This will be pretty short and to the point, but hopefully it will be helpful. I believe Mario commented on it and while no one has to do it, some may like to use it for posting lineups or stat lines.

    To start out, you need to include:
    [php][/php]All the data or info you put in will be inbetween this code.

    On your first line, you are essentially setting up how many columns your table will be, and each row has to match this structure (even if nothing is in it, the space markers have to be there.

    To separate them into individual boxes, you need to do so using | like:
    [php] #|Pos.|Name|...|Pos.|Name [/php]If you follow the format you laid out, everything should nicely and nearly be displayed under the appropriate heading. And you should be able to use different fonts, colors, smilies, etc within the tables you create.

    I am posting the lineup table I made a couple of games ago for you anyone to use as a template to get an idea of how it works.

    [php]
      Washington Nationals  Cincinnati Reds
    #Pos.Name...Pos.Name
    1.2BFelipe Lopez...CFRyan Freel
    2.SSChristian Guzman...1BScott Hatteberg
    3.3BRyan Zimmerman...RFKen Griffey Jr.
    4.LFRyan Church...2BBrandon Phillips
    5.RFAustin Kearns...LFAdam Dunn
    6.1BDmitri Young...3BEdwin Encarnacion
    7.CBrian Schneider...SSAlex Gonzalez
    8.CFNook Logan...CDavid Ross
    9.PJason Simontacchi...PKyle Lohse
    [/php]
      Washington Nationals  Cincinnati Reds
    #Pos.Name...Pos.Name
    1.2BFelipe Lopez...CFRyan Freel
    2.SSChristian Guzman...1BScott Hatteberg
    3.3BRyan Zimmerman...RFKen Griffey Jr.
    4.LFRyan Church...2BBrandon Phillips
    5.RFAustin Kearns...LFAdam Dunn
    6.1BDmitri Young...3BEdwin Encarnacion
    7.CBrian Schneider...SSAlex Gonzalez
    8.CFNook Logan...CDavid Ross
    9.PJason Simontacchi...PKyle Lohse

    Very simple with a very nice result in the end I believe.

  2. #2
    Hall of Famer
    Join Date
    Apr 2005
    Location
    Kingsport, TN
    Posts
    18,743
    MLB ERA
    3.62

    Re: Lineup Table Tutorial

    Test:

     Washington Nationals  Cincinnati Reds
    #Pos.Name...Pos.Name
    1.2BFelipe Lopez...CFRyan Freel
    2.SSChristian Guzman...1BScott Hatteberg
    3.3BRyan Zimmerman...RFKen Griffey Jr.
    4.LFRyan Church...2BBrandon Phillips
    5.RFAustin Kearns...LFAdam Dunn
    6.1BDmitri Young...3BEdwin Encarnacion
    7.CBrian Schneider...SSAlex Gonzalez
    8.CFNook Logan...CDavid Ross
    9.PJason Simontacchi...PKyle Lohse

    Took me quite a while, but I got it. For some reason it kept trying to add a table code after "Cincinnati Reds" and I have no idea how to delete it. It just automatically pops up. I got rid of it somehow, but I wouldn't be able to do it again without messing with it for a while.


    Test 2:

     Chodes  Dweebs
    #Pos.Name...Pos.Name
    1.2BMommy...CFPal
    2.SSDude...1BMoron
    3.3BRyan Zimmerman...RFKen Griffey Jr.
    4.LFRyan Church...2BBrandon Phillips
    5.RFAustin Kearns...LFAdam Dunn
    6.1BDmitri Young...3BEdwin Encarnacion
    7.CBrian Schneider...SSAlex Gonzalez
    8.CFNook Logan...CDavid Ross
    9.PJason Simontacchi...PKyle Lohse

    Test 3:

     Washington Nationals  Cincinnati Reds
    #Pos.Name...Pos.Name
    1.2BFelipe Lopez...CFRyan Freel
    2.SSChristian Guzman...1BScott Hatteberg
    3.3BRyan Zimmerman...RFKen Griffey Jr.
    4.LFRyan Church...2BBrandon Phillips
    5.RFAustin Kearns...LFAdam Dunn
    6.1BDmitri Young...3BEdwin Encarnacion
    7.CBrian Schneider...SSAlex Gonzalez
    8.CFNook Logan...CDavid Ross
    9.PJason Simontacchi...PKyle Lohse

    The only way I can do this without having the table code added in there automatically is pastin the PHP code in a word document. Then copying it from there and pasting the same exact thing back on here. Then the code doesn't automatically get added in there.



  3. #3
    Guess Who's Back missionhockey21's Avatar
    Join Date
    Mar 2005
    Posts
    18,014
    MLB ERA
    1.56
    Blog Entries
    8

    Re: Lineup Table Tutorial

    redsr, or anyone using my tutorial, the PHP code is showing up with different markings if you copy and paste it using the direct editor (ie you see bold type when you select it versus just the code around it like really old vB versions) either turn the advanced editor off by hitting and then pasting, or just manually type it in.

    Sorry about that one folks!

  4. #4
    Negative Optimist
    Join Date
    May 2007
    Location
    Springfield, Ohio
    Posts
    305
    AAA ERA
    0.83

    Re: Lineup Table Tutorial

    [table=head]||Washington Nationals|||Cincinnati Reds
    #|Pos.|Name|...|Pos.|Name
    1.|2B|Felipe Lopez|...|CF|Ryan Freel
    2.|SS|Christian Guzman|...|1B|Scott Hatteberg
    3.|3B|Ryan Zimmerman|...|RF|Ken Griffey Jr.
    4.|LF|Ryan Church|...|2B|Brandon Phillips
    5.|RF|Austin Kearns|...|LF|Adam Dunn
    6.|1B|Dmitri Young|...|3B|Edwin Encarnacion
    7.|C|Brian Schneider|...|SS|Alex Gonzalez
    8.|CF|Nook Logan|...|C|David Ross
    9.|P|Jason Simontacchi|...|P|Kyle Lohse[/table]

    Or you can just copy and paste this whole board and make the necc. info changes like I just did. And walaa! It didn't work, hmmm back to the drawing board.

    When and how the Reds add to their five World Championships, nine pennants and nine division titles seems less important than the franchises' lineage, which traces a line back to the dawn of the professional game and their role as keeper of the historic flame they lit by birthing the Red Stockings in 1869.

  5. #5
    Negative Optimist
    Join Date
    May 2007
    Location
    Springfield, Ohio
    Posts
    305
    AAA ERA
    0.83

    Re: Lineup Table Tutorial

    [php]
      Washington Nationals  Cincinnati Reds
    #Pos.Name...Pos.Name
    1.2BFelipe Lopez...CFRyan Freel
    2.SSChristian Guzman...1BScott Hatteberg
    3.3BRyan Zimmerman...RFKen Griffey Jr.
    4.LFRyan Church...2BBrandon Phillips
    5.RFAustin Kearns...LFAdam Dunn
    6.1BDmitri Young...3BEdwin Encarnacion
    7.CBrian Schneider...SSAlex Gonzalez
    8.CFNook Logan...CDavid Ross
    9.PJason Simontacchi...PKyle Lohse
    [/php]

    crappp!

    When and how the Reds add to their five World Championships, nine pennants and nine division titles seems less important than the franchises' lineage, which traces a line back to the dawn of the professional game and their role as keeper of the historic flame they lit by birthing the Red Stockings in 1869.

  6. #6
    Negative Optimist
    Join Date
    May 2007
    Location
    Springfield, Ohio
    Posts
    305
    AAA ERA
    0.83

    Re: Lineup Table Tutorial

    [PHP]
      Washington Nationals  Cincinnati Reds
    #Pos.Name...Pos.Name
    1.2BFelipe Lopez...CFRyan Freel
    2.SSChristian Guzman...1BScott Hatteberg
    3.3BRyan Zimmerman...RFKen Griffey Jr.
    4.LFRyan Church...2BBrandon Phillips
    5.RFAustin Kearns...LFAdam Dunn
    6.1BDmitri Young...3BEdwin Encarnacion
    7.CBrian Schneider...SSAlex Gonzalez
    8.CFNook Logan...CDavid Ross
    9.PJason Simontacchi...PKyle Lohse
    [/PHP]

    Ugggh!

    When and how the Reds add to their five World Championships, nine pennants and nine division titles seems less important than the franchises' lineage, which traces a line back to the dawn of the professional game and their role as keeper of the historic flame they lit by birthing the Red Stockings in 1869.

  7. #7
    Negative Optimist
    Join Date
    May 2007
    Location
    Springfield, Ohio
    Posts
    305
    AAA ERA
    0.83

    Re: Lineup Table Tutorial

    [php]
      Washington Nationals  Cincinnati Reds
    #Pos.Name...Pos.Name
    1.2BFelipe Lopez...CFRyan Freel
    2.SSChristian Guzman...1BScott Hatteberg
    3.3BRyan Zimmerman...RFKen Griffey Jr.
    4.LFRyan Church...2BBrandon Phillips
    5.RFAustin Kearns...LFAdam Dunn
    6.1BDmitri Young...3BEdwin Encarnacion
    7.CBrian Schneider...SSAlex Gonzalez
    8.CFNook Logan...CDavid Ross
    9.PJason Simontacchi...PKyle Lohse
    [/php]

    And walaa??? Son of a gitch!!! I just suck at this sort of stuff, I have no idea what I am doing wrong at this point.

    When and how the Reds add to their five World Championships, nine pennants and nine division titles seems less important than the franchises' lineage, which traces a line back to the dawn of the professional game and their role as keeper of the historic flame they lit by birthing the Red Stockings in 1869.

  8. #8
    Negative Optimist
    Join Date
    May 2007
    Location
    Springfield, Ohio
    Posts
    305
    AAA ERA
    0.83

    Re: Lineup Table Tutorial

    [php]]l lPittsburgh Peglegsl l lCincinnati Deadlegs[/color][/PHP]

    1 thing at a time here. Ah screw it, I leave it to the professionals.

    When and how the Reds add to their five World Championships, nine pennants and nine division titles seems less important than the franchises' lineage, which traces a line back to the dawn of the professional game and their role as keeper of the historic flame they lit by birthing the Red Stockings in 1869.

  9. #9
    Guess Who's Back missionhockey21's Avatar
    Join Date
    Mar 2005
    Posts
    18,014
    MLB ERA
    1.56
    Blog Entries
    8

    Re: Lineup Table Tutorial

    This is a catch 22 if you try to copy it. The only way I could show it without vB wanting to make the image was to put it in a php code block, but when you copy that directly, it doesn't work because it picks up on the info from the php block.

    Just simply try to type it up, only a few lines, with the table open and close and all info in between (like it's laid out)... it should work then. I am sorry this is so difficult.

    Edit (Copy and paste, remove the period after table in both instances):
    [table=head.]||Washington Nationals|||Cincinnati Reds
    #|Pos.|Name|...|Pos.|Name
    1.|2B|Felipe Lopez|...|CF|Ryan Freel
    2.|SS|Christian Guzman|...|1B|Scott Hatteberg
    3.|3B|Ryan Zimmerman|...|RF|Ken Griffey Jr.
    4.|LF|Ryan Church|...|2B|Brandon Phillips
    5.|RF|Austin Kearns|...|LF|Adam Dunn
    6.|1B|Dmitri Young|...|3B|Edwin Encarnacion
    7.|C|Brian Schneider|...|SS|Alex Gonzalez
    8.|CF|Nook Logan|...|C|David Ross
    9.|P|Jason Simontacchi|...|P|Kyle Lohse[/table.]

  10. #10
    Hall of Famer
    Join Date
    Apr 2005
    Location
    Kingsport, TN
    Posts
    18,743
    MLB ERA
    3.62

    Re: Lineup Table Tutorial

    Is there any way to make this into a chart that is something othetr than a lineup? I am trying to make a matchups chart for the game tonight.

    Here is what I got:

    [table=head]Versus Jason Jennings
    OPPOSING HITTER|...|AB|H|HR|BB|SO|BA|OBP|SLG|OPS
    Adam Dunn|...|18|6|1|3|5|.333|.429|.611|1.040
    Ken Griffey Jr|...|13|4|2|2|2|.308|.400|.769|1.169
    Alex Gonzalez|...|11|5|1|1|2|.455|.500|.727|1.227
    Brandon Phillips|...|4|1|0|0|1|.250|.250|.250|.500
    Scott Hatteberg|...|3|0|0|0|0|.000|.000|.000|.000
    David Ross|...|2|0|0|0|.000|.000|.000|.000
    [/table]

    When I highlite and then click on the icon below I get this:


    Versus Jason Jennings
    OPPOSING HITTER
    Adam Dunn
    Ken Griffey Jr
    Alex Gonzalez
    Brandon Phillips
    Scott Hatteberg
    David Ross

    Is there a way for me to make this chart work for things like this?

  11. #11
    Guess Who's Back missionhockey21's Avatar
    Join Date
    Mar 2005
    Posts
    18,014
    MLB ERA
    1.56
    Blog Entries
    8

    Re: Lineup Table Tutorial

    Versus Jason Jennings...         
    OPPOSING HITTER...ABHHRBBSOBAOBPSLGOPS
    Adam Dunn...186135.333.429.6111.040
    Ken Griffey Jr...134222.308.400.7691.169
    Alex Gonzalez...115112.455.500.7271.227
    Brandon Phillips...41001.250.250.250.500
    Scott Hatteberg...30000.000.000.000.000
    David Ross...2000.000.000.000.000 
    The top line must follow in format with following lines.

  12. #12
    Hall of Famer
    Join Date
    Apr 2005
    Location
    Kingsport, TN
    Posts
    18,743
    MLB ERA
    3.62

    Re: Lineup Table Tutorial

    OK, I got it. The lines on top next to the heading will be the formatting. I see now.

    Thanks mission! Got it in the game thread now!

Tags for this Thread

Posting Permissions

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