:noid:
Just analyzing the index.php code I found the line:
PHP Code:
eval("\$vbstats = \"".gettemplate('vbstats_forumhome')."\";");
so I guessed the 'external' name of this 'bit' was actually
$vbstats and not
$vbstats_forumhome as I tried to insert before into
forumhome template... :kiss:
Thanks.
Hwr, some number on that first page didn't match... Infact I had activeusers as a negative number, and the rate absolutely inconsistant.
The part in index.php
PHP Code:
// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));
should be replaced with
PHP Code:
// Active/Non?
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbersmembers['users']- $nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbersmembers['users']));
That's because the
$numbermembers variable is not a number but a string (comes from a format for thousands separator)...
My version used the original value coming from SELECT....
Hope this could be useful to the advanced options...
Thanks a lot for such a fast answer.
P.S.: the starting date. I didn't found anywhere on vbstats.php pages... :?:
Thanks again.
Bye