I have this new fields in my user table called QUADS and BIKES
In my getinfo I have them showing statistically.
Quads: 2
Bikes: 5
The counter counts threads made in certain forum ids.
What I want to do is have something showing the average amount of Quad and Bike posts per month.
I only can come up with this.
PHP Code:
$qbtime = (time() - $userinfo[joindate]) / 2592000; // Days Joined
if ($qbtime < 1) { // User has been a member for less than one day.
$qbpermonth = "$userinfo[quads]";
} else {
$qbpermonth = sprintf("%.2f",($userinfo[quads] / $qbtime));
}
This only does the monthly average of quads and not quads and bikes combined.
I dont no how to combine both values of quads and bikes and average a monthly value to it.
That what I need help on. I hope someone understands me hehe.