Quote:
Originally Posted by kh99
That's strange. If you want to debug it, you could temporarily change the last line like:
Code:
$template_hook['postbit_userinfo_right_after_posts'] .= "<dt>Posts Per Day</dt><dd>$post[posts] $days $ppd</dd>";
Then see what the three numbers are. Is it possible that the number is so small it's rounding to 0?
|
I get the following kh99:
Posts Per Day : 9,624 4896 0
It is working because 9,624 / 4896 is the total post per day i am getting.....but it wont display it on the postbit_legacy...
Any thoughts?
--------------- Added [DATE]1373886774[/DATE] at [TIME]1373886774[/TIME] ---------------
I changed it to the following:
Code:
if (($days = round((TIMENOW-$post['joindateline']) / 86400)) <= 0)
{
$days = 1;
}
$ppd = round($post['posts'] / $days, 4);
$template_hook['postbit_userinfo_right_after_posts'] .= "<dt>Posts Per Day</dt><dd>$ppd</dd>";
and got :
Posts Per Day : 0.0018
instead of the 1.97 ......
--------------- Added [DATE]1373888531[/DATE] at [TIME]1373888531[/TIME] ---------------
So I have been told that because my total post count is 9,625, this plugin's code is interpreting the "," as an integer? So it has to be converted to a float so that it rounds of the number correctly since it has the "," in the number?
--------------- Added [DATE]1373925272[/DATE] at [TIME]1373925272[/TIME] ---------------
Any update on this you guys?