Making team tables: a bit of instruction
PostedCOLON Tue Sep 11, 2012 3:30 pm
[tfwds]#0000FF, #BBD9EE, #EBF4FA, #FFFFFF, #000000, #000000, Patrick Sharp, 5,900,000, Jonathan Toews, 6,300,000, Andy Mcdonald, 4,700,000, Brad Marchand, 2,500,000, Patrice Bergeron, 5,000,000, Tyler Seguin, 3,500,000, Alex Steen, 3,362,500, Mike Fisher, 4,200,000, David Moss, 2,100,000, Andrew Shaw, 565,000, Chris Kelly, 3,000,000, Matt Read, 900,000, Marcel Goc ($1,700,000), Kris Letang, 3,500,000, Ryan McDonagh, 1,300,000, Ryan Whitney, 4,000,000, Filip Kuba, 4,000,000, Greg Zanon, 2,250,000, Rostislav Klesla, 2,975,000, Andy Sutton ($1,750,000) / Jay Harrison ($700,000), Jonathan Quick, 1,800,000, Jonathan Bernier, 1,250,000, none, , 67,302,500, 2,897,500, 35, 44[/tfwds]
The raw code is below. Almost all the style and structure elements are now programmed into our forum, so pretty much all you need to do is plug in values.
First, start with the "tfwds" tag (between square brackets []). After that you need to define the colours you want to use. The first three are the background colours (header cell, player cell, reserves cell) and the second three are the respective text colours.
After that you need to type the players name, followed by the salary. Commas are tricky, and if you have a trailing comma with a space after it PHPBB will think you are on the next item and skip to it. This is how it knows where to store what data. You can page-break (press enter) if you like, just make sure you have a space after the trailing comma.
For extra players/reserves you need to follow a bit of formatting here. This was unavoidable. You can't separate players with commas, so I used a forward slash.
Do the same thing for d-men and goalies...
After that you have four more items to enter: injured players (if you don't have any type none or whatever, you just need a trailing comma), salary spent, cap space, total contracts, and total players.
Obviously this is all voluntary, just thought I'd put up some pointers for those who would like to try it out.
Edit: removed a bit of unnecessary formatting from the reserves areas.
The raw code is below. Almost all the style and structure elements are now programmed into our forum, so pretty much all you need to do is plug in values.
First, start with the "tfwds" tag (between square brackets []). After that you need to define the colours you want to use. The first three are the background colours (header cell, player cell, reserves cell) and the second three are the respective text colours.
After that you need to type the players name, followed by the salary. Commas are tricky, and if you have a trailing comma with a space after it PHPBB will think you are on the next item and skip to it. This is how it knows where to store what data. You can page-break (press enter) if you like, just make sure you have a space after the trailing comma.
For extra players/reserves you need to follow a bit of formatting here. This was unavoidable. You can't separate players with commas, so I used a forward slash.
Do the same thing for d-men and goalies...
After that you have four more items to enter: injured players (if you don't have any type none or whatever, you just need a trailing comma), salary spent, cap space, total contracts, and total players.
Obviously this is all voluntary, just thought I'd put up some pointers for those who would like to try it out.
Edit: removed a bit of unnecessary formatting from the reserves areas.
CodeCOLON Select all
[tfwds]#0000FF, #BBD9EE, #EBF4FA, #FFFFFF, #000000, #000000,
Patrick Sharp, 5,900,000, Jonathan Toews, 6,300,000, Andy Mcdonald, 4,700,000,
Brad Marchand, 2,500,000, Patrice Bergeron, 5,000,000, Tyler Seguin, 3,500,000,
Alex Steen, 3,362,500, Mike Fisher, 4,200,000, David Moss, 2,100,000,
Andrew Shaw, 565,000, Chris Kelly, 3,000,000, Matt Read, 900,000,
[b][size=120]Marcel Goc[/size][/b] ($1,700,000),
Kris Letang, 3,500,000, Ryan McDonagh, 1,300,000,
Ryan Whitney, 4,000,000, Filip Kuba, 4,000,000,
Greg Zanon, 2,250,000, Rostislav Klesla, 2,975,000,
[b][size=120]Andy Sutton[/size][/b] ($1,750,000) / [b][size=120]Jay Harrison[/size][/b] ($700,000),
Jonathan Quick, 1,800,000,
Jonathan Bernier, 1,250,000,
none,
,
67,302,500,
2,897,500,
35,
44[/tfwds]