Author Topic: Posting rosters on ProFSL forum  (Read 786 times)

0 Members and 1 Guest are viewing this topic.

Offline kenny

  • MVP
  • ****
  • Join Date: Jan 2010
  • Posts: 2653
  • Bonus inPoints: 1
    • :Blank:
    • :Blank:
    • :Columbia:
    • View Profile
Posting rosters on ProFSL forum
« on: May 11, 2012, 01:57:28 PM »
Some people have expressed their displeasure with how the rosters are presented in AFB. Unfortunately, due to the intricacies of this league, a spreadsheet is a necessity to keep track of everything efficiently. We can't *just* post rosters as text like some other leagues do.

However, because of this, I've been working on automating the roster spreadsheet so it outputs the roster in BBC (BB Code, used by ProFSL on this forum for special formatting). It takes some time to set up, but in the long run it'll be worth it. I wrote some code for the template for the 40 man roster and applied it to the Pirates roster so you can see how it looks. You can get to it by clicking on the Pirates logo in the header when you're on the main AFB forum (http://profsl.com/smf/index.php?topic=20179.0).  If you have any comments or a wishlist, I can try to modify it to accommodate it, but options are limited due to Excel, BBC and for the sake of efficiency.

Some things can only be found in the spreadsheet, such as age, service time and whether or not it's a guaranteed contract.

Don't mind the minor league portion of it yet. Still working on that.

Thanks,
Kenny
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

Offline kenny

  • MVP
  • ****
  • Join Date: Jan 2010
  • Posts: 2653
  • Bonus inPoints: 1
    • :Blank:
    • :Blank:
    • :Columbia:
    • View Profile
Re: Posting rosters on ProFSL forum
« Reply #1 on: May 11, 2012, 02:27:05 PM »
Also note that you can only see the current year and the four following years for player contracts on the posting. Limited due to space.
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

Offline ldsjayhawk

  • Legend
  • *****
  • Join Date: Oct 2011
  • Posts: 9991
  • Bonus inPoints: 0
    • :Blank:
    • :Blank:
    • :CLS:
    • :Kansas:
    • :SKC:
    • :KC:
    • View Profile
Re: Posting rosters on ProFSL forum
« Reply #2 on: May 11, 2012, 02:58:41 PM »
This is excellent!  I think this will be very helpful.  If you want to include that it is a guaranteed contract, maybe you could add a symbol after the player name?  Maybe the year next to their name if the contract extends further?  Both are extranneous and not needed in my mind.  But I am excited about this!  (Doesn't take much, does it?  :doh:)
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions
FGM :win: :SEA: 2017 + 2x AL West Div
BUSH AL :Bronze: :KC: 2021 + 4x AL Central Div
AFB AL :Bronze: :KC: 2012 + 1x Div
AFB NL :Bronze: :COL: 2018 + 2x Div

Offline kenny

  • MVP
  • ****
  • Join Date: Jan 2010
  • Posts: 2653
  • Bonus inPoints: 1
    • :Blank:
    • :Blank:
    • :Columbia:
    • View Profile
Re: Posting rosters on ProFSL forum
« Reply #3 on: May 11, 2012, 03:49:30 PM »
I can probably include a '#' after their name to indicate guaranteed contract. I'd have to manually do this for each player but shouldn't take much time.

Let me think about adding the year the contract ends. I don't want to do that manually, and at the moment, I'm not sure if I can code that in.



funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

Lindner

  • Guest
Re: Posting rosters on ProFSL forum
« Reply #4 on: May 11, 2012, 04:43:45 PM »
This is awesome Kenny.  Its a great start.  There are probably a couple things that could be added and there are some things that could add to the look-and-feel of the page, but its a great start!

I'm not sure how to do it, but it would nice to get some commas in the numbers.

$440,000 is a lot easier to read than $440000.
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

Offline kenny

  • MVP
  • ****
  • Join Date: Jan 2010
  • Posts: 2653
  • Bonus inPoints: 1
    • :Blank:
    • :Blank:
    • :Columbia:
    • View Profile
Re: Posting rosters on ProFSL forum
« Reply #5 on: May 11, 2012, 05:56:35 PM »
You would think adding commas is one of the easier things to do but it's not. This is due to the salary cell being in a "currency" format and when Excel grabs the number, it only sees the value - no commas or $. I had added the $ myself in the forum code to each forum cell.

What we can possibly do is instead of showing the salary in units of dollars, we can do it in units of millions of dollars. For example, it would show $.4 for for $400,000 or $5.2529 for $5,252,900. Let me know if you guys prefer this.

Any other comments on the look and feel? Now is the time to voice your opinion.

Going back to displaying the last year of the contract, for the most part 5 years is enough because the maximum new contract is 5 years. The rookie contracts are 6 years and we have some pre-exisiting long term contracts. If I shrink the text size, I may be able to fit the 6th year in, so we'd be cover for 99% of the players. Not sure how people's visions are though so might not be a good change.

Writing out the last year of the contract would probably entail cutting the display from 5 years to 4 years. I'm not sure if that's a good idea (if it's even possible to code).
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

Lindner

  • Guest
Re: Posting rosters on ProFSL forum
« Reply #6 on: May 11, 2012, 08:41:54 PM »
You would think adding commas is one of the easier things to do but it's not. This is due to the salary cell being in a "currency" format and when Excel grabs the number, it only sees the value - no commas or $. I had added the $ myself in the forum code to each forum cell.

What we can possibly do is instead of showing the salary in units of dollars, we can do it in units of millions of dollars. For example, it would show $.4 for for $400,000 or $5.2529 for $5,252,900. Let me know if you guys prefer this.

Any other comments on the look and feel? Now is the time to voice your opinion.

Going back to displaying the last year of the contract, for the most part 5 years is enough because the maximum new contract is 5 years. The rookie contracts are 6 years and we have some pre-exisiting long term contracts. If I shrink the text size, I may be able to fit the 6th year in, so we'd be cover for 99% of the players. Not sure how people's visions are though so might not be a good change.

Writing out the last year of the contract would probably entail cutting the display from 5 years to 4 years. I'm not sure if that's a good idea (if it's even possible to code).


I had a feeling that the commas would be tough to incorporate.  I like the idea of making putting a decimal point there ($.4 = $400k).  That seems like a good spot.

I don't think that there will be any issues with only having 5 columns.  Eventually all of those contracts will fall into the 5-year spectrum.  I'm not worried about the prospect contracts because everyone knows that the 6th year is just an ARB year.
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

Offline kenny

  • MVP
  • ****
  • Join Date: Jan 2010
  • Posts: 2653
  • Bonus inPoints: 1
    • :Blank:
    • :Blank:
    • :Columbia:
    • View Profile
Re: Posting rosters on ProFSL forum
« Reply #7 on: May 14, 2012, 02:55:22 PM »
I made one change. Salaries are expressed in millions of dollars instead of dollars. It looks like I can fit one more column in. Is this better?
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

Offline kenny

  • MVP
  • ****
  • Join Date: Jan 2010
  • Posts: 2653
  • Bonus inPoints: 1
    • :Blank:
    • :Blank:
    • :Columbia:
    • View Profile
Re: Posting rosters on ProFSL forum
« Reply #8 on: May 14, 2012, 02:57:44 PM »
The other suggestions Lindner made to formatting will be incorporated as well. Just didn't get around to it. Moving the decimal point over a few spots was trickier than I thought and took longer than I anticipated.
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

Offline kenny

  • MVP
  • ****
  • Join Date: Jan 2010
  • Posts: 2653
  • Bonus inPoints: 1
    • :Blank:
    • :Blank:
    • :Columbia:
    • View Profile
Re: Posting rosters on ProFSL forum
« Reply #9 on: May 14, 2012, 03:07:08 PM »
Also got rid of the "$" next to ARB, 2Year, 3Year and in blank cells. The Excel formula is a monster now, lol, but I'm starting to like the output.

This code gives you one row in the 40 man roster:

Code: [Select]
=CONCATENATE("[TR][TD]",B15,"[/TD][TD]",IF(ISNUMBER(M15),CONCATENATE("$",M15/1000000),M15),"[/TD][TD]",IF(ISNUMBER(N15),CONCATENATE("$",N15/1000000),N15),"[/TD][TD]",IF(ISNUMBER(O15),CONCATENATE("$",O15/1000000),O15),"[/TD][TD]",IF(ISNUMBER(P15),CONCATENATE("$",P15/1000000),P15),"[/TD][TD]",IF(ISNUMBER(Q15),CONCATENATE("$",Q15/1000000),Q15),"[/TD][/TR]")
funny
0
like
0
dislike
0
No reactions
No reactions
No reactions

 

Forum Search


Quick Profile

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Chat Room

Refresh History
  • jmntl82: Looking into it
    Yesterday at 10:29:22 PM
  • jmntl82: I better get that half bag of fritos that was discussed
    Yesterday at 10:29:41 PM
  • Jwalkerjr88: Kenny walker you can trade. Me you cant
    Yesterday at 10:50:34 PM
  • Daddy: I cant trade any Walker's
    Yesterday at 11:23:33 PM
  • Daddy: I just traded my starting CF though. Thought i was done in baseball. Just when i think im out, they pull me back in.
    Yesterday at 11:25:03 PM
  • Daddy: Yeah where the hell all these baseball deals pop up from :rofl:
    Yesterday at 11:29:01 PM
  • Daddy: The professor is going to have writers cramp.
    Yesterday at 11:31:16 PM
  • dbreer23: I just got FGM caught up. Will tackle LIVE leagues tonight, but no chance I will finish MLB.
    Yesterday at 11:53:05 PM
  • Daddy: Welcome back! :)
    Today at 12:30:25 AM
  • dbreer23: sorry that I missed the Reds' fire sale
    Today at 12:45:01 AM
  • jmntl82: I wouldn’t say missed, I’m always down for a deal
    Today at 12:48:49 AM
  • BayAreaBallers: welcome back dan
    Today at 12:50:18 AM
  • dbreer23: Thanks! Spent a few days with the in-laws in northern AZ.
    Today at 12:50:59 AM
  • BayAreaBallers: jmntl82 hit all live leagues in blistering speed was fun to be part of the trades
    Today at 12:51:14 AM
  • BayAreaBallers: oh you was in my old state i went to ASU so very familar w Arizona
    Today at 12:51:44 AM
  • BayAreaBallers: what part of Az did you go to
    Today at 12:52:09 AM
  • dbreer23: Flagstaff. I got a MS degree in astrophysics from NAU in the early 2000s. Met my wife towards the end of my time there, so I've been going back periodically for 20 years.
    Today at 12:53:12 AM
  • BayAreaBallers: dude nice ive done snow globe in flag
    Today at 12:53:46 AM
  • BayAreaBallers: *snowbowl
    Today at 12:54:02 AM
  • BayAreaBallers: i did that once in college w friends went skiing
    Today at 12:54:12 AM
  • dbreer23: I had friends who did a few day passes up there. I was a poor grad student tho so I stuck to hiking/beer drinking :)
    Today at 12:56:23 AM
  • dbreer23: and I've never skied
    Today at 12:56:33 AM
  • BayAreaBallers: oh man you should deff go once it was a great experience
    Today at 12:58:39 AM
  • BayAreaBallers: we did a weekend trip when i went during long weekend
    Today at 12:58:52 AM
  • jmntl82: Not all the LIVE leagues, I wish I knew hockey well enough to be in NHL LIVE
    Today at 01:18:21 AM
  • jmntl82: I just started really watching this year
    Today at 01:18:57 AM
  • dbreer23: same here, but I signed up anyway
    Today at 01:20:34 AM
  • jmntl82: alright you talked me into it
    Today at 01:21:53 AM
  • jmntl82: LA KINGS here I come
    Today at 01:22:15 AM
  • STLBlues91: Great job recruiting
    Today at 01:22:27 AM
  • BayAreaBallers: Nice man
    Today at 01:48:01 AM
  • Daddy: LIVE leagues will teach you. Honestly you have no choice, we throw so much information at you.
    Today at 02:02:07 AM
  • Daddy: Things move so fast. Super fast.
    Today at 02:02:29 AM
  • Daddy: @Mount_Crushmore & others have expressed a feeling of being overwhelmed the first season. He said now he is truly ready. BAB expressed similar thoughts. Took him two years.
    Today at 02:04:06 AM
  • Daddy: Year 1 and 2 are usually growth years. If you make it to season 3. You should be an animal by then. Some guys come in as animals. I like those guys.
    Today at 02:08:34 AM
  • Daddy: In hockey I got a GM in Florida. Calls herself YurMOM. First and only LIVE female GM right now. Never been on profsl. Never been in dynasty.
    Today at 02:10:14 AM
  • Daddy: She gonna put foots to yall. Watch :rofl:
    Today at 02:10:36 AM
  • STLBlues91: Psychpop check messages on here about your posts in NHL Live
    Today at 02:32:11 AM
  • BayAreaBallers: thats a funny user
    Today at 02:52:01 AM
  • indiansnation: Hey if u guys have indians prospects get ready for the next player to get called up soon Jhonkensy Noel
    Today at 03:10:10 AM
  • indiansnation: He is tearing it up in minors
    Today at 03:10:28 AM
  • jmntl82: Hopefully not like Wander
    Today at 03:13:56 AM
  • BayAreaBallers: wowww
    Today at 03:24:45 AM
  • BayAreaBallers: what a joke
    Today at 03:24:51 AM
  • jmntl82: too soon
    Today at 03:25:31 AM
  • STLBlues91: Yeah you should of waited a few years
    Today at 03:27:04 AM
  • BayAreaBallers: Like wander should have
    Today at 03:33:18 AM
  • jmntl82: Okay see I was hoping someone would say that lol ^^
    Today at 03:34:33 AM
  • BayAreaBallers: Hahaha
    Today at 03:41:49 AM
  • BayAreaBallers: jmntl82 it was only fitting
    Today at 03:45:57 AM