Oct
27
BF2 Stats :: Player Stats
Filed Under BF2 Stats, Web Programming
The last couple of days I have gotten back into working on BF2 Stats a lot. Which means quite a few updates have taken place!
Firstly, and the biggest change, I’ve split up the index page. The main page is just starting to get two much new code built up, and there was no real reason for having the leader board mixed in with the player stats.
Plus, a side benefit to that, when splitting into a second player stats page, it allowed me to easily add the Player Nickname into the Title of the page much easier. Although not a huge deal, this works well when pasting links on IRC for the bots that pick up the Page Title.
I’m themeing the BF2 Stats to match the new dootdoot page (which should go up tomorrow)… about time to get rid of that plain old ugly page. Anyway, so all the sections I’m working on are getting themed as I complete them. I’m going in opposite order as last time, starting at the bottom and working my way to the top.
The biggest request I’ve had is adding the signature to the bottom, so I made that my first goal. Simple enough.
Next was a bigger issue, resizing and lining up all of the badges, medals and ribbons. I’ve opted to space them all out evenly, and in doing so meant resizing all of the images. I didn’t think I’d have to at first, but apparently FireFox sucks when it comes to displaying PNG’s in any resolution not their native. So even though I’m resizing images from 96px to 80px… I needed to completely resize all of them anyway. Now I have several sizes of all the images, small/medium/full… joy.
After some convincing from Nowick, I changed the badges to be displayed in a medium size instead of small… this helps to distinguish between “Veteran” badges and “Unachieved” badges. Plus, since badges are the pretties, it gives the viewer something nice and pretty to stare at.
Next, and most recently, I’m “grouping” all of the stats together. For the body of the stats I’ve created two groups. They start in a default mode of “hidden” and you can expand them out to see the full stats if you wish. This allows the users to see their game stats, ‘wins/kills/overall score’ and their badges/ribbons/medals all at the start, and if they choose they can see more detailed stats by expanded them. Works out pretty darn well.
A big thanks goes to Rob whom helped me debug the JavaScript to do the Expand/Collapsing on the stats. Worked out pretty well, we found a couple bugs in his that are now fixed two, and managed to make a functions that works for both our needs. It’s great.
SQL query failed
haha. whoops. yeah. I only made the update on http://bsbf.dootdoot.com/
I haven’t updated http://bf2.dootdoot.com
I’ll do that tomorrow. :S