Great work Psionic! This update solves all of the problems I had.
As something extra, I've also never personally liked how the Bots and Unknowns are mixed in amongst the legitimate browsers and operating systems, so I've done a quick modification to my download putting them at the bottom. I'd thought I'd share it if anyone else wants to do it.
NOTE: This works with both numerical sorting and alphabetical sorting, depending on the option you've chosen.
Step 1:
Make the following file edits:
Open: psistats.php
Find:
PHP Code:
eval('$browserbit .= "' . fetch_template('psistats_browserbit') . '";');
REPLACE with:
PHP Code:
if (substr($browser['browser'], 0, 3) == 'Bot' || $browser['browser'] == 'Unknown')
{
eval('$unbrowserbit .= "' . fetch_template('psistats_browserbit') . '";');
} else {
eval('$browserbit .= "' . fetch_template('psistats_browserbit') . '";');
}
Find:
PHP Code:
eval('$osbit .= "' . fetch_template('psistats_osbit') . '";');
REPLACE with:
PHP Code:
if ($os['os'] == 'Unknown')
{
eval('$unosbit .= "' . fetch_template('psistats_osbit') . '";');
} else {
eval('$osbit .= "' . fetch_template('psistats_osbit') . '";');
}
Step 2:
Make the following template edits:
Template: PSISTATS_OS
Find:
UNDERNEATH add:
Find:
UNDERNEATH add:
That's it! I'm quite new at coding so I apologise if this is not the most effecient way to do this. If you have a better way, please post it here so it benefits all of us.