Making team tables: a bit of instruction

Anything goes here OT stuff is OK too!
User avatar
Mike
Test 2
PostsCOLON 11390
JoinedCOLON Thu May 06, 2010 7:08 pm

Making team tables: a bit of instruction

Post by Mike »

[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.

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]
User avatar
kimmer
PostsCOLON 18090
JoinedCOLON Thu Sep 02, 2010 2:25 pm
LocationCOLON Ontario, Canada

Re: Making team tables: a bit of instruction

Post by kimmer »

TY!
armandtanzarian

Re: Making team tables: a bit of instruction

Post by armandtanzarian »

ooohhh...this is interesting Mikey! i likes.
User avatar
KapG
PostsCOLON 11908
JoinedCOLON Tue May 04, 2010 5:46 pm
LocationCOLON Toronto (beach area)

Re: Making team tables: a bit of instruction

Post by KapG »

Yah this is pretty cool. Thanks man.
armandtanzarian

Re: Making team tables: a bit of instruction

Post by armandtanzarian »

All Done, looks good, thanks Mike

viewtopic.php?f=21&t=111&p=362#p362
User avatar
Mike
Test 2
PostsCOLON 11390
JoinedCOLON Thu May 06, 2010 7:08 pm

Re: Making team tables: a bit of instruction

Post by Mike »

mr. bruin wroteCOLONAll Done, looks good, thanks Mike

viewtopic.php?f=21&t=111&p=362#p362
Nice, looking good. Any suggestions? Optional centering maybe?
armandtanzarian

Re: Making team tables: a bit of instruction

Post by armandtanzarian »

Well we can post a link to HTML color codes for people who want to customize further:

http://html-color-codes.info/

I like the way it is now. When you say centering do you mean vertical centering?
User avatar
kyuss
PostsCOLON 14876
JoinedCOLON Thu May 06, 2010 12:54 pm

Re: Making team tables: a bit of instruction

Post by kyuss »

Mike wroteCOLON
mr. bruin wroteCOLONAll Done, looks good, thanks Mike

viewtopic.php?f=21&t=111&p=362#p362
Nice, looking good. Any suggestions? Optional centering maybe?
yep, that's what came to my kind, but not with reference to pagination.. if the format necessarily has 4 players for any forward position, i was thinking of something that would point out if someone listed there as winger is actually a center.
User avatar
Mike
Test 2
PostsCOLON 11390
JoinedCOLON Thu May 06, 2010 7:08 pm

Re: Making team tables: a bit of instruction

Post by Mike »

mr. bruin wroteCOLONWell we can post a link to HTML color codes for people who want to customize further:

http://html-color-codes.info/

I like the way it is now. When you say centering do you mean vertical centering?
Yep, HEX codes can be seen inline here by clicking "font colour" and copying the one you want.

I have the tables auto-center, but I could put in another variable so you could pick "left", "right", or "center".
User avatar
Mike
Test 2
PostsCOLON 11390
JoinedCOLON Thu May 06, 2010 7:08 pm

Re: Making team tables: a bit of instruction

Post by Mike »

kyuss wroteCOLONyep, that's what came to my kind, but not with reference to pagination.. if the format necessarily has 4 players for any forward position, i was thinking of something that would point out if someone listed there as winger is actually a center.
Unfortunately there's only so much customization I can program in without making it cumbersome for people with limited HTML/BBcode knowledge to use; I could add another variable to individually colour every single cell, but that would add about 30% more input for users. If you want notation for players out of position I suggest just putting an asterisk next to the name or something.
User avatar
Nick
PostsCOLON 16044
JoinedCOLON Tue Apr 13, 2010 1:15 am

Re: Making team tables: a bit of instruction

Post by Nick »

Doesn't work on app.
User avatar
Mike
Test 2
PostsCOLON 11390
JoinedCOLON Thu May 06, 2010 7:08 pm

Re: Making team tables: a bit of instruction

Post by Mike »

Nick wroteCOLONDoesn't work on app.
Thought it unlikely to work. Haven't used that app in ages...
User avatar
hong57
PostsCOLON 7106
JoinedCOLON Mon May 03, 2010 7:38 pm

Re: Making team tables: a bit of instruction

Post by hong57 »

mr. bruin wroteCOLONAll Done, looks good, thanks Mike

viewtopic.php?f=21&t=111&p=362#p362
table looks good team looks even better!
Image
#91 - John Tavares
User avatar
hong57
PostsCOLON 7106
JoinedCOLON Mon May 03, 2010 7:38 pm

Re: Making team tables: a bit of instruction

Post by hong57 »

testing

[tfwds]#00BF40, #FF0000, #FF0000, #FFFFFF, #FFFFFF, #FFFFFF, Alex Ovechkin, 9,538,462, Jason Spezza, 7,000,000, Derek Stepan, 875,000, Teddy Purcell, 2,362,500, John Tavares, 5,500,000, Andrew Ladd, 4,400,000, Matt Cooke, 1,800,000, Travis Zajac, 3,887,500, David Clarkson, 2,666,667, Dwight King, 750,000, Zack Smith, 700,000, Daniel Winnik, 1,800,000, Kevin Porter ($537,000), Tom Gilbert, 4,000,000, Justin Faulk, 900,000, Kyle Quincey, 3,775,000, Josh Gorges, 3,900,000, Jan Hejda, 3,250,000, Niklas Hjalmarsson, 3,500,000, Robert Bortuzzo ($525,000) / Jakub Kindl ($883,333), Roberto Luongo, 5,333,333, Henrik Karlsson, 862,500, none, , 68,746,295, 1,453,705, 38, 64[/tfwds]
Image
#91 - John Tavares
User avatar
MSP4LYFE
PostsCOLON 11503
JoinedCOLON Mon May 03, 2010 4:22 pm
LocationCOLON Mississauga, Ontario
CONTACTCOLON

Re: Making team tables: a bit of instruction

Post by MSP4LYFE »

[tfwds]#0000FF, #00FF80, #FFFFFF, #FFFFFF, #000000, #000000, Ryane Clowe, 3,625,000, Ryan Kesler, 5,000,000, Patrick Kane, 6,300,000, Ryan Malone, 4,500,000, Tyler Ennis, 3,000,000, Marian Hossa, 5,275,000, Nick Foligno, 3,083,333, Boone Jenner, 925,000, Jack Skille, 825,000, Colton Gillies, 625,000, Marty Reasoner, 1,350,000, Mike Brown, 736,667, Dana Tyrell ($600,000), Alexander Edler, 3,250,000, Marc Methot, 3,000,000, Kimmo Timonen, 6,333,333, Alexander Sulzer, 725,000, Brayden McNabb, 900,000, Matt Carkner, 1,500,000, Adrian Aucoin ($2,250,000) / Steve Eminger ($750,000), Jonas Hiller, 4,500,000, Jeff Deslauriers, 612,500, none, , 58,740,833, 11,459,167, 39, 50[/tfwds]

Image
armandtanzarian

Re: Making team tables: a bit of instruction

Post by armandtanzarian »

Looking good fellas! The teams are strong. This league is quite balanced now. Some strong ass teams out there.
armandtanzarian

Re: Making team tables: a bit of instruction

Post by armandtanzarian »

[tfwds]#000000, #FFBF00, #FFFFFF, #FFFFFF, #000000, #000000, Daniel Sedin, 6,100,000, Ryan Getzlaf, 5,325,000, Jarome Iginla, 7,000,000, Ryan Callahan, 4,275,000, David Krejci, 5,250,000, Blake Wheeler, 2,550,000, Logan Couture, 2,875,000, Steve Ott, 2,950,000, Mikael Samuelsson, 3,000,000, Darrol Powe, 1,066,666, Derek McKenzie, 1,000,000, Zac Rinaldo, 544,000, Nate Thompson ($900,000), Jason Garrison, 4,600,000, Brent Seabrook, 5,800,000, Stephane Robidas, 3,300,000, Johnny Boychuk, 3,367,000, Derek Engellend, 567,000, Mike Weaver, 1,100,000, Jared Spurgeon ($526,667), Tuukka Rask, 3,500,000, Anton Khudobin, 875,000, none, , 66,471,333, 3,728,667, 38, 46[/tfwds]
User avatar
Shep
PostsCOLON 13901
JoinedCOLON Tue May 04, 2010 2:04 pm

Re: Making team tables: a bit of instruction

Post by Shep »

Mike wroteCOLON
Nick wroteCOLONDoesn't work on app.
Thought it unlikely to work. Haven't used that app in ages...
I can't stand the app.
Inaugural GM
[STL] 2009 - 2016
[PHI] 2019 -
Lee
PostsCOLON 16828
JoinedCOLON Tue Jun 15, 2010 12:29 pm

Re: Making team tables: a bit of instruction

Post by Lee »

I'm with Shep, app is annoying when you don't use it and it constantly asks if you want to install it.
User avatar
KapG
PostsCOLON 11908
JoinedCOLON Tue May 04, 2010 5:46 pm
LocationCOLON Toronto (beach area)

Re: Making team tables: a bit of instruction

Post by KapG »

[quote="Mike"][tfwds]#B40404, #0404B4, #EBF4FA, #FFFFFF, #FBFBEF, #000000, Ilya Kovalchuk, 6,667,0000, Alex Burmistrov, 1,500,000, Tomas Vanek, 7,143,000, Taylor Hall, 3,750,000, Vladimir Sobotka, 1,300,000, Vladimir Tarasenko, 1,750,000, Cam Atkinson, 875,500, Gregory Campbell, 1,600,000, Matt Martin, RFA, Nino Niederreiter, 2,795,000, Zenon Konopka, 925,000, Justin Abdelkader, 1,700,000, Adam Burish ($1,850,000), Christian Ehrhoff, 4,000,000, P.K. Subban, RFA, Zbynek Michalek, 4,000,000, Brad Stuart, 3,600,000, Jason Demers, 1,250,000, Mark Fistric, 1,475,000, Erik Gustafsson ($900,000) / David Savard ($917,000), Semyon Varlamov, 2,833,000, Jean-Sebastien Giguere, 1,250,000, none, , 46,713,000, lots, 33, 54[/tfwds]
BUTTON_POST_REPLY

Return to