Written by Scott
So I've taken a bit of a break from Grav and Twig, in part because I need to reconsider a couple of things based on my designs and in part because I need to do a bit more reading on Twig before my ambition exceeds my ability and I rage quit because I can't do something I want it to do (I had that a lot with Wordpress early on, even phpBB when I used to make themes for that, so I know to take the time to read up on things now).
So I've jumped back into taking a look at STATS. Oh boy. Where to even start with this thing. I was so crudely putting it together in a rush to have it done I hadn't considered just how poorly I was putting it together. It's a database driven application that should really have at least a few classes and functions that lighten the load on the server but I haven't done ANY of that. I've got database queries left-right-and-center occasionally doing the same thing multiple times when I could just be smarter with one database call. Talk about sloppy.
The front-end design is not 100% finalised, I don't mind the colour scheme but I want to make it so users can select different colour schemes and save it as a preference. Which, to be honest, is going to require a bit of a rebuild of the whole front end so I'm going to save that for later the code is already messy enough without overhauling the layouts. I want to move to templates so I get rid of the mess of PHP files lying around. That's a problem for another time though.
The ACP is mostly functional, managing a couple of things still needs some work but this is another area I think requires a bit of a tweak to the design. Not as major here as the front-end though as there's no desire to put a bunch of different colour schemes in the ACP. You can see in the screenshot above the ACP homepage is still littered with my workings on different things. Setting user levels; generating activation codes for registering accounts; working out EPOCH times; date and time conversions; text encryption for password storage; working out special character insertion. You know, development stuff.
This is one of the more complete page layouts for locations. I've been using data from an online racing community I'm part of but don't have track maps at the moment so I made a placeholder image.
I'll have a bit more to say about this once I've had a chance to dig through and find all my sloppy mistakes. I'd start again but this would the third time of asking starting from scratch so I'm not sure I'm keen on that idea.
That's all for now, Scott.