Saturday, 12 July 2014

STables...and Blogs...Do you LIKE it?!

The past few days I've been hammering out a lot of the "stable" page.

It's not complete, but there's some stuff that could do with being hammered in testing to ensure it works well. It will put us in good stead for when we get to building forums, being as a lot of this code will provide the basic functionality there too.

I know that Trophies are a little messy... I'm thinking I might have just one trophy shelf on display, and then up/down arrows just above/below the "world" tag, to scroll to other "categories" of Cup
  1. The Calendar (and on your own stable, the Current Events) - yet to be added. It should be a brief bit of work and I expect it completed early next week.
    • Calendar will be almost identical to the one in TK. When looking at someone elses stable, you will simply see their racing events and future cup invitations. 
    • Events will provide the info from the Current Events block as per current TK, but broken into sections "Race Invitations, "Results", "Recent Events", "Community", and "Advice". The first 3 are fairly obvious, the Community link will tell you about anyone who has 'liked' or 'disliked' any of your posts recently, any guestbook posts to your stable, as well as any bookmarked stables that have posted recently to forums or blog. The "Advice" block will have general simple advice which is particularly targetted at newbies, like suggesting they buy more agistments as appropriate or enter league races and so forth.
  2. Results and History Tabs - should work immediately, as they are using the same code as per Jockeys and horses.
  3. Guestbook & Blog - This is the Big feature that could use testing!
    • Stable Owner can post to Blog, edit old blogs
    • Stable Owner can Delete guestbook posts
    • Visitors can post to guestbook
    • All viewers can like/dislike blogs and guestbook items.
    • Posts use a nice "WYSIWYG" editor, which allows embedded images. It should NOT allow formatting other than what is provided.
    • There will most likely be display issues on "old" TK with these posts.. but I don't care!
    • Anyone who has the ability, see if you can "hack" the editor and try to add an "onclick" or a "mouseover" event to something that you post... or any sort of javascript....anything that is clearly naughty.

**UPDATE** The Current Events page should be completed now too

Silks are proving problematic, and I need Fishbrain to do a small re-write of his Flash code. But Logo and Rename should now be done