It `just works`. Nice release, thanks.

Question: How is activity measured? Just comment count? Is time involved (ie. more active this month Vs. active over the life of the site?)

Comments

sanduhrs’s picture

Assigned: Unassigned » sanduhrs
Status: Active » Fixed

The formula:

  //Calculate percentages
  $percentage->logins   = ($user->logins/$max->logins)*100;
  $percentage->pis      = ($user->pis/$max->pis)*100;
  $percentage->nodes    = ($user->nodes/$max->nodes)*100;
  $percentage->comments = ($user->comments/$max->comments)*100;
  
  //Calculate activity index
  $activity_index = ($percentage->logins+$percentage->pis+$percentage->nodes)/3;

So, we use the number of logins, the number of page impressions, the number of created nodes, the number of created comments. And all in relation to the maximum number of items of that kind. And create a percentage value from it.

vg

Anonymous’s picture

Status: Fixed » Closed (fixed)