Fixes
Fixed issue when viewing user tanks page for a user with no internal tank data on record.
Fixed issue when viewing user tanks page for a user with no internal tank data on record.
Due to coding error all existing API Tokens are no longer considered valid by WG's API. As such, you'll need to create a new API Token (https://clantools.us/account/settings/tokens) to replace any existing token. Sorry for the trouble.
Similar to the player lookup, there's now also a clan lookup. It still has room for improvement, however there's enough there already that I feel it's worth releasing. Accessable via the Tools dropdown, or just click here. For an effective summery, see the image below (click for larger version).
The Clan's Tank page has also been replaced by the combination of the tanks and performance tabs, though the tank list also includes a more detailed view of available tanks.
Known Available won't be very useful without having your members add an API Token on Clan Tools (https://clantools.us/account/settings/tokens) as it only shows confirmed in garage tanks (which requires an API token from that user to get their in garage status) and which are unlocked. Possibly Available is effectively the same as what was shown as available before as it shows unlocked tanks that are known to be "in garage", or that there is no in garage data for. Available Maximum shows what is effectively the same as "count" on the clan lookup page, and is effectively just a simple count of every member for which that tank was reported by the WG API.
Everything isn't objectively better though, as everything (except in garage and tank locking) is retrieved from the WG API each time. Previously the Clan Tools server loaded this data once a day and served the statistical information that way. This was extremely costly. For the 1,764 users with stats being tracked, there are 786,868 database entries for stats alone. Though the bigger issue was the time it took to load this data, which was around 30 minutes (for 8 clans). This simply wasn't scalable, nor an effective use of the limited resources available to Clan Tools. As such, while I understand the longer waiting times are less than ideal, they are a necessity.
In Garage data now correctly reflects if the data isn't available (due to the lack of an API token for the user).
The player's tank page now sources its data from the Wargaming API, rather than pulling stats from Clan Tools. The In Garage and Tank Locking data is still provided by Clan Tools, so no information has been lost.
I've added a link to matches and removed the link to payouts on the clan home nav dropdown. My personal view is that the nav dropdown should have links to pages which are likely to be used at least one a day; payouts is more a once a week sort of thing. On the other hand, matches (if used) is something which is likely to see daily use.
Note: Some might have noticed that this post seems a day or two late; for various reasons this didn't end up getting posted until today.
A few days ago parts of the player lookup broke for players who had the new "Fury" premium tank due to a few reasons, changes have been made to prevent such issues in the future:
Another key feature using Clan Tools to accept clan applications was the (primarily) statistical information it provided about the applicant in one place. I wanted to expand that featureset to all of the clans using Clan Tools, and anyone else idealy. However, the system I was using simply wasn't capable of performing "on the fly" lookups. So I started from scratch, and the result is by far better than the original system it was trying to mimic, while also being much less resource intensive to the server.
Rather than ramble off the features, here's a screenshot:
(The white strip thing is my attempt at indicating I cut out some rows to shorten the image, if that isn't clear)
Accessable via the Tools menu (Tools > Player Lookup), or you can just click here.
For some time now Clan Tools has supported players applying to participating clans through Clan Tools; however, not everyone may want to use Clan Tools for dealing with clan applications. Still, clans that did had the option to have various (at this point minor and likely completely ineffective) bits of advertising, which wasn't fair to the clans who didn't want to use Clan Tools for this.
In an effort to fix this, two new clan application modes have been added: Displaying a message (with support for formatting via markdown) and redirecting to another site (which is really just a short cut for a message with a link). Of the two choices, I would highly recommend taking the additional time to write a short message, even if you still want to redirect to another website because result is much better, as shown below.
vs.
I've moved editing a user's groups to a different page labeled "Edit Account Groups", it should show up directly under the edit account settings link.