Tuesday 29 April 2014

Horse History (And stable/Jockey History)

An all-encompassing piece of code. This is a great example of how the new Track King can be more efficient behind the scenes, and less confusing for players.

I've replaced 4 pages (Stable Diary, Stable History, Horse History, Jockey History) with one page.... implemented as a Tab which can appear on Horse, jockey, or stable.

This Tab formats the history into "bitesize" chunks, (12 week blocks for horses and stable history, and 4 week blocks for jockeys and stable diary) and allows OC members to page back to the start of the "object"...and non-OC to page back once only.

I even think the display is fairly tidy, given the chaotic nature of the data being displayed!

I'm pretty sure all items are being displayed correctly, but if anyone would like to undertake a comprehensive survey of horses bought, sold, studded, bred, yearlings, retired, cup winners, races, travel, and so forth, that would be awesome!! ;-)

9 comments:

  1. Only just started to look at this but it seems the 'previous' button only works on the top of the page and not the bottom.
    Great to be able to see jock RIs on this.

    ReplyDelete
    Replies
    1. Cheers Rhed - fixed that now, should be good.

      Delete
    2. Appears the bottom buttons are reversed here.

      Delete
    3. Sigh lol... fixed now, really ;-)

      Delete
  2. Should the jockey RIs have the same wording as horse RIs? Expecting "eager to chase", "won't spare horse" etc for jockeys.

    Maybe you're not done yet considering your current work on jockeys. Posting before I forget anyway.

    ReplyDelete
    Replies
    1. Chase, traffic, etc of course. Don't know what I was thinking but I think you know what I mean.

      Delete
  3. Some 11yo, 12yo and 13yo stallions are throwing errors on history and not showing it. Problem Encountered - 200 OK. Samples taken from current auctions and HOF.
    Some are fine so good luck with that one :P

    Found some older stallions from HOF (older than 13yo) that had no error but simply stated "No results were found in the given date range".

    A really old one did give a popup alert - "Some important data appears to be missing from that request?"
    Address: horse.php?hid=50280



    ReplyDelete
    Replies
    1. Cheers Sez - both these issues should be fixed now too.

      The "no results in date range" is quite possible, unless you can think of better wording or a good reason to change the functionality, I'm happy to leave that as it sits.... ;-)

      Thanks heaps for your help

      Delete