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!! ;-)
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.
ReplyDeleteGreat to be able to see jock RIs on this.
Cheers Rhed - fixed that now, should be good.
DeleteAppears the bottom buttons are reversed here.
DeleteSigh lol... fixed now, really ;-)
DeleteShould the jockey RIs have the same wording as horse RIs? Expecting "eager to chase", "won't spare horse" etc for jockeys.
ReplyDeleteMaybe you're not done yet considering your current work on jockeys. Posting before I forget anyway.
Chase, traffic, etc of course. Don't know what I was thinking but I think you know what I mean.
DeleteFixed thanks
DeleteSome 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.
ReplyDeleteSome 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
Cheers Sez - both these issues should be fixed now too.
DeleteThe "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