Ok, thanks for your reply. Glad to see it's working in a future version.
I did go ahead and alter the code as needed. I simply just had to make the
raid_count fuction more global and use it on the memberlist page. I'm guessing this probably caused more queries than normal, but I wasn't too worried.
My code ended up looking like this:
Code:
$percent_of_raids_all = raid_count($row['member_firstraid'], time(), $row['member_name']);
$individual_raid_count_all = ( $rc[$row['member_name']] > 0 ) ? $rc[$row['member_name']] : 0;
$percent_of_raids_30 = raid_count(mktime(0, 0, 0, date('m'), date('d')-30, date('Y')), time(), $row['member_name']);
$individual_raid_count_30 = $rc_30[$row['member_name']];
if ($individual_raid_count_30 == $individual_raid_count_all)
{
$percent_of_raids_30 = $percent_of_raids_all;
}
$percent_of_raids_60 = raid_count(mktime(0, 0, 0, date('m'), date('d')-60, date('Y')), time(), $row['member_name']);
$individual_raid_count_60 = $rc_60[$row['member_name']];
if ($individual_raid_count_60 == $individual_raid_count_all)
{
$percent_of_raids_60 = $percent_of_raids_all;
}
$percent_of_raids_90 = raid_count(mktime(0, 0, 0, date('m'), date('d')-90, date('Y')), time(), $row['member_name']);
$individual_raid_count_90 = $rc_90[$row['member_name']];
if ($individual_raid_count_90 == $individual_raid_count_all)
{
$percent_of_raids_90 = $percent_of_raids_all;
}