Cancel all my other problems, they are all solved, I had missed one file when I uploaded to the live server. My only issue is still the avatars count, which denies to move from zero.
OK, I figured that out, you are counting only users who have a custom avatar. Not the ones which are using one of the site's provided ones. I modified your code as below.
Edit file /statistic/sides/forum.php and find:
PHP Code:
//User und Profilbilder
//Avatars
$avatars = $DB_site->query_first("
SELECT COUNT(*) as avatar, SUM(filesize) AS size
FROM " . TABLE_PREFIX . "customavatar
");
$all_avatars = vb_number_format($avatars['avatar']);
Replace that with:
PHP Code:
//User und Profilbilder
//Avatars
$avatars1 = $DB_site->query_first("
SELECT COUNT(*) as avatar, SUM(filesize) AS size
FROM " . TABLE_PREFIX . "customavatar
");
$all_avatars1 = vb_number_format($avatars1['avatar']);
$avatars2 = $DB_site->query_first("
SELECT COUNT(*) as avatar
FROM " . TABLE_PREFIX . "user where avatarid!='0'
");
$all_avatars2 = vb_number_format($avatars2['avatar']);
$all_avatars = $all_avatars1 + $all_avatars2;
That solved the issue.
Rgds