RotoGuru Basketball Forum

View the Forum Registry

XML Get RSS Feed for this thread


Self-edit this thread


0 Subject: TSN Hoops: Team Validity Screener

Posted by: Guru
- [330592710] Fri, Dec 04, 2009, 15:38

With the TSN site redesign, it's not a simple exercise to screen all of your teams to ensure that all slots are filled and all teams are valid.

To assist in that effort, I've just built a program that will print out a current summary of all of teams registered under your ID (Ultimate and Basic).

The program will need to log into your TSN account to do this, so you will need to include your TSN username and password in the URL. (I do not store this information anywhere - but you'll simply have to trust me on that.)

Here is the generic URL:
http://rotoguru1.com/hoop/jscript/check_my_teams.php?username=XXXXX&pass=PPPP

where XXXXX is your TSN username (the name you log in with)
and PPPP is your password

Once you run this once, I suggest that you bookmark the URL so that you'll be easily able to run it. I can't provide a working link for it, since it has to include the unique username and password for each account.

I ran it for my teams, and it seems to work OK. I tried selling a player to go invalid, and then ran it, and it successfully flagged the incomplete roster. So I think it's working - but, as always, I cannot make any assurances. In any event, it's certainly a more efficient review mechanism than going through every team lineup, one by one.

Hopefully, this will save some anxiety and avoid some unfortunate errors.

Let me know if you encounter any issues.
1deejay
      Sustainer
      ID: 501182710
      Fri, Dec 04, 2009, 15:51
Great tool Guru.
However I bookmarked it and get this(if I open the Bookmark):

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4763648 bytes) in /home/www/rotoguru1/hoop/jscript/Request.php on line 938

If I copy/paste from here, then it works fine....
2Guru
      ID: 330592710
      Fri, Dec 04, 2009, 16:43
I suspect that's just a coincidence.

The error message occurs occasionally when the server doesn't have enough memory to allocate. Usually, if you wait a few moments, it'll run OK.

There may have been too many people trying to run it at once after I posted it.
3damoose
      ID: 181042723
      Fri, Dec 04, 2009, 17:20
Cool little tool, but my important teams
are on page 2 of my front office
4Guru
      ID: 330592710
      Fri, Dec 04, 2009, 17:27
Wasn't even aware that there was a page 2. I'll work on that. How many teams fit on page one?
5damoose
      ID: 181042723
      Fri, Dec 04, 2009, 17:36
Ten teams per page
6deejay
      Sustainer
      ID: 501182710
      Fri, Dec 04, 2009, 18:20
2

Its ok now...
7reebbertxx
      Dude
      ID: 561124720
      Fri, Dec 04, 2009, 18:25
Another amazing tool. I wonder why TSN can't figure out how to get all that info on 1 page.

Thanks again.

8Guru
      ID: 330592710
      Sat, Dec 05, 2009, 15:53
Still haven't accommodated managers with more than 10 teams, but I'll get there.

Meanwhile, I did make an enhancement to let you sort the results in a way that might be more intuitive.

Currently, teams are displayed in the same order that they appear on your team overview page.

If you would rather arrange them to appear in a different sequence, then you can append a "sort" value to the URL.

Here's how to do it. Let me use an example.
Assume you have 5 teams. Looking at your TSN team page, you would like to have the teams arranged as follows:
1st column: 4th team listed at TSN
2nd column: 1st team listed at TSN
3rd column: 5th team listed at TSN
4th column: 2nd team listed at TSN
5th column: 3rd team listed at TSN

Simply append this to the end of the URL:
&sort=4-1-5-2-3

That should do it.
9Guru
      ID: 330592710
      Mon, Dec 07, 2009, 12:39
Program has been updated to handle more than 10 teams, and also displays Total SNP and League rank (since the data is readily available.)
10KI on new Apple
      ID: 4511172713
      Thu, Jan 28, 2010, 22:45
was looking for this again today!
bumping it to the front page.
thanks again Guru.
11Guru
      ID: 330592710
      Wed, Oct 27, 2010, 11:08
I have updated this program to work for RotoHog Salary Cap.

Same link as last year (see opening post)

Same re-sorting capability (see post 8)

Let me know if something isn't working properly.
Rate this thread:
5 (top notch)
4 (even better)
3 (good stuff)
2 (lightweight)
1 (no value)
If you wish, you may rate this thread on scale of 1-5. Ratings should indicate how valuable or interesting you believe this thread would be to other users of this forum. A '5' means that this thread is a 'must read'. A '1' means that this is a complete waste of time.

If you have previously rated this thread, rating it again will delete your previous rating.

If you do not want to rate this thread, but want to see how others have rated it, then click the button without entering a rating, or else click here.

RotoGuru Basketball Forum

View the Forum Registry

XML Get RSS Feed for this thread


Self-edit this thread




Post a reply to this message:

Name:
Email:
Message:
Click here to create and insert a link
Click here to insert a block of hidden (spoiler) text
Ignore line feeds? no (typical)   yes (for HTML table input)


Viewing statistics for this thread
Period# Views# Users
Last hour11
Last 24 hours33
Last 7 days1210
Last 30 days2419
Since Mar 1, 200728781390