– Fantasy Stat Tracker …Tracker

A blog about the development of – The Fantasy Baseball Stat Tracker

Posts Tagged ‘log on’

Log-in Issues (User Sessions)

Sunday, May 11th, 2014

A number of people have reported issues logging in to today. After a little exploration, I found that the database table that records user session data was corrupted. After repairing the table, seems to be back to normal and properly logging users in.

This is the first time we’ve encountered this issue, so I’m not going to dig further into the cause of the corruption. If it happens again, though, I’ll dig a bit deeper.

For now, you should be able to log in normally. If you have any problems, please let me know.

2010 Updates

Saturday, March 6th, 2010

I’m in the process of implementing a series of updates to for the 2010 season. The biggest noticeable difference will be an entire new look and feel. The new layout will allow for 1, 2, and 3-column pages that should let more efficiently use space.

Other changes in progress include:

  • Integrated log-in/sign-up function
  • User-defined backgrounds
  • More flexibility in the “invite friends” functionality
  • Updated log-in flow
  • Drag-and-drop bench
  • Integration with Zend framework

Among the other items I’m planning to get to before opening day:

  • Add OPS to statistics available for tracking
  • Implement Lucene search for “Find Friends”
  • SSL for log-in flow

If you have other suggestions, please add a comment or drop me a long at

I’ll go into more detail about the updated features over the coming weeks. In the mean time, I’m just trying to get things done before the season kicks-off!

iPhone Optimized Mobile

Tuesday, June 16th, 2009

Finally, after months of development (also known as “inactivity”), now has a mobile-optimized verion:! Currently Mobile only allows for tracking of stats–no account or team management. With a very simple interface you can log-in, view your dashboard–complete with summary stats for all teams, and track the stats of all your fantasy teams and players.

I currently only have an iPhone, so that is what the site is optimized for. If you have a Pre, Blackberry, or Android phone I would appreciate any feedback and screenshots you can send me of how the site is rendering and performing.

The interface is still undergoing some tweaking, but it is very minor and should not impact the current functionality. After I get a feel for how the mobile version of is performing, I’ll start to plan out the addition of more functionality. I’m not sure if the mobile site will ever be feature-complete, but I expect it will be moving in that direction.

Luckily the object-oriented architecture of made the mobile site painless to implement. I would guess it’s been less than 8 hours in development and most of that time has gone into fine-tuning the interface. Hopefully future additional functionality will be as simple to add!

Two Days of Updates

Thursday, April 2nd, 2009

I quit working too late last night to post about the updates, so I’ll cover a couple days’ work now.

The biggest visible change was an update to the top site navigation. Previously, after logging-in, if you visited the home page or Tracker blog, there was no way to return to the system without logging-in again. Obviously, that was inconvenient. The home page and blog now both recognize an authenticated session and will display a new navigation link (that exists throughout the site now) to visit the Dashboard. This will get you back “into” without needing to log-in again.

The other big functional change is on the Add Player page. After receiving a report that adding a player was causing an alert in Firefox, I dug in to see what was happening. Unfortunately the alert was simply a slow script notice, not an actual error. What I ultimately determined was that the cumulative stat bubbles that I added the other day were causing an odd JQuery loop when the page is unloaded. Rather than trying to dig into JQuery to see what the problem was, I determined it could be alleviated by reducing the number of instances of the stat bubbles on the page. So the Add Player page now features pagination! Search results will be displayed 50 at a time with pagination links at the bottom of the page. This leads to quicker load times of the page, as well, so it seems like an improvement all-round.

Complicating the new Add Player pagination is the position filter. That filter literally filters down the players shown on the page, based on position.  All it really does is turn off the display of players that don’t match the filter. So, previously, changing the filter to a specific position would cause a display of all players at that position. Now, changing the filter will only show the players among the currently displayed 50 that match. This seems confusing to me, so I think I will need to re-write how it works.

On a non-visible vein, I’ve incorporated the functionality to allow Users to view other Users’ teams. This is a precursor to the social-stat-tracking concept I’ve been discussing. There is no interface to share your teams with other Users yet–the relationship has to be manually set in the database. There is a new relationship type, though. Originally a team only had one User related to it: the Owner who had total control to do anything with the team they wished. Now there is a Viewer User type. This User type can only view the team. They cannot change the team name, delete the team, add players, remove players, bench players, or change the team’s stats. I’m hoping to waste a good chunk of time this weekend working on social-stat-tracking. With a lot of luck, I’ll have something working by opening day.

On a reality-strikes front: the iPhone web app won’t be ready for opening day. Once life settles down a bit, I’ll try to get back to it later this Spring or Summer.

iPhone Progress

Tuesday, February 17th, 2009

Today has seen substantial progress on the iPhone web app version of It now allows Users to log-in, create teams, and access a Team page. As of right now, no information other than the team name is displayed on the Team page, but it’s progress. So far I’ve had to duplicate most of the log-in and user session authentication files, but both apps are sharing the same objects for teams and players.  It’s not where I would like to be, but it’s better than nothing.

I started work on an icon set for the button navigation of the mobile site. It is further evidence that I’m not a designer, but all things considered, I’m pretty pleased with them so far.

A few days ago I implemented the Dashboard discussed in the previous post. It still doesn’t do anything but provide access to all of a User’s team pages.

Password Reset

Wednesday, February 4th, 2009

Today’s excitement: Password Reset! If a User forgets their password, there is now an option to have a new password generated and emailed to them. It seems like a pretty easy concept (and one that probably should have been built long ago), but there are actually quite a few pieces involved:

  • Request Password Form
  • Confirm User Account Script
  • Fail Mechanism if the User Account can’t be Confirmed
  • Password Generation Script
  • HTML Email Template
  • Password Reset Email
  • Password-Sent Confirmation Page

It took a couple hours to get all the various pieces up and working together, but I’ve tested with a couple different accounts now and it seems to be working correctly. So if you set up an account last year but now can’t remember your password to set up your 2009 team, you are in luck!

The mechanism requires that you enter both the user name and email address for the account on which you wish to reset the password. We don’t have any high-tech security on the site (security questions, TSA guards, strip searches, etc.) so I figured we should at least require knowledge of multiple data points for the account. If someone forgets either their user name or email address as well, they’re basically out of luck. I’m sure if someone emailed me with that concern, though, I’d try to help them get re-established.

One outstanding side effect of the new reset password process is the design and build of an HTML email template for Until now, hadn’t sent any emails. It didn’t confirm account creation, team creation, system outages/upgrades, or anything else. Now that I’ve put together the template it will be much easier to add in logical email notices. I’ll try to be reasonable about it, though, and not spam everyone that signs up for an account.

2009 is around the corner

Wednesday, January 21st, 2009

With 2009 Spring Training fast approaching, I’ve begun work to improve the Fantasy Baseball Stattracker for the new season. As you’ve probably already noticed, the Stattracker has a name:! There is a brief overview of where the name came from on the site. I’ll likely move that over to the blog eventually.

Besides the name change and subsequent move to, there are a number of back-end upgrades already in place.

  1. The database has been upgraded to a newer version that allows for stronger password encryption.
  2. A new login script has been added that takes advantage of the stronger password encryption so as soon as you log in, your old account will be upgraded with the new encryption.
  3. This blog is now running the latest WorkPress – 2.7. Between the upgrade and the server change there were a few hurdles to overcome, but I think everything is up and running.

Among the front-end changes I anticipate before the 2009 season starts are improvements to the account sign-up process, SSL implementation of the sign-up and log-on processes, and an iPhone-optimized web application. I’d like to build a real iPhone app for, but with no budget I probably won’t try to tackle the $99 iPhone developer fee.

If there are other improvements that would make the site better for you and your friends, please post a comment and I’ll see what I can do.

Here’s to an exciting 2009!

Lots of changes today

Wednesday, May 14th, 2008

There were a number of nice additions to the Fantasy Stat Tracker today. Among them:

  • Change team name – edit the name of a team you have created
  • Delete team – remove a team from your account
  • Linked player names – player names now link to the player’s profile page
  • Google Analytics – added GA webstats to the site
  • View Team link – added a link to the “account nav” to link to your team’s stats page (or render a drop-down list if you have multiple teams)

I also moved the “home page” link from the footer up to the “blog nav”. So we now have links to the blog home page and the Fantasy Stat Tracker home page in the top left corner of the page. The addition of the “view team” link and the relocation of the home link already seem to make it a lot easier to navigate the tool. As I mentioned the other day, though, I’ll be continuing to look at the navigation architecture for the site.

Along with the additions mentioned above, I performed a number of minor code enhancements. I worked on better escaping of SQL strings to be sent to the DB and some advancements in auto-redirecting users about the site based on whether or not the user account has a team associated with it (or multiple teams). There is also a check in place now to prevent people from accessing teams’ stats for other peoples’ teams. Previously you could edit the Location bar to change the TeamID that was being passed and see other peoples’ teams. You wouldn’t have been able to make any changes, but you could view the team nonetheless. Now you can’t.

Most noticeably, I re-organized the home page and brought a log-on form directly onto the page. The Fantasy Stat Tracker home page content was re-written slightly to better explain the free nature of this project. Some advertising verbiage was also added to encourage people to sign-up for an account.