Index: affiliates.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/affiliates/affiliates.module,v retrieving revision 1.1.4.5.2.14 diff -r1.1.4.5.2.14 affiliates.module 916,929c916,930 < < if ($user->uid != $account->uid) { < // someone else viewing their points < $points = db_result(db_query("SELECT SUM(aa.points) AS points < FROM {affiliates} a, {affiliates_ads} aa < WHERE aa.ad_id = a.ad_id < AND a.user_id = %d", $account->uid)); < < $items[] = array( < 'title' => t('Affiliate points'), < 'value' => $account->name . " has earned " . number_format($points) . " points.", < ); < } < return array(t('Affiliate') => $items); --- > $points = db_result(db_query("SELECT SUM(aa.points) AS points > FROM {affiliates} a, {affiliates_ads} aa > WHERE aa.ad_id = a.ad_id > AND a.user_id = %d", $account->uid)); > $affiliates[] = array( > '#type' => 'user_profile_item', > '#title' => t('Affiliate points'), > '#value' => $account->name . " has earned " . number_format($points) . " points." > ); > if ($affiliates) { > $affiliates['#type'] = 'user_profile_category'; > $affiliates['#title'] = t('Affiliates'); > $affiliates['#weight'] = 8; > $account->content['Affiliates'] = $affiliates; > }