Index: user2userpoints/user2userpoints.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/userpoints_contrib/user2userpoints/user2userpoints.module,v
retrieving revision 1.4.2.2
diff -u -p -r1.4.2.2 user2userpoints.module
--- user2userpoints/user2userpoints.module	27 Nov 2009 02:39:48 -0000	1.4.2.2
+++ user2userpoints/user2userpoints.module	12 Feb 2011 08:37:44 -0000
@@ -20,13 +20,17 @@ define('USER2USERPOINTS_SHOW_LINKS',    
  * Implements hook_user().
  */
 function user2userpoints_user($op, &$edit, &$account, $category = NULL) {
-  if ($op == 'view') {
+  global $user;
+  if ($op == 'view' && $user->uid != $account->uid && user_access(USER2USERPOINTS_PERM_SEND)) {
     $url = 'user2userpoints/'. $account->name;
-    $items[t('!Points', userpoints_translation())] = array(
-      'value' => l(t('Give !points to '. $account->name, userpoints_translation()), $url),
-      'class' => 'member',
+    $account->content['user2userpoints'] = array(
+      '#type' => 'user_profile_category',
+      '#title' => t('Give points'),
+      'link' => array(
+        '#type' => 'user_profile_item',
+        '#value' => l(t('Give !points', userpoints_translation()), $url),
+      ),
     );
-    return array(t('!Points', userpoints_translation()) => $items);
   }
 }
 
