--- user2userpoints-original.module	2007-07-03 12:24:13.000000000 -0500
+++ user2userpoints.module	2008-01-20 18:44:50.000000000 -0600
@@ -38,6 +38,19 @@ function user2userpoints_menu($may_cache
   } 
   return $items; 
 } 
+/* Give points at footer of nodes and comments */
+function user2userpoints_link($type, $node = NULL, $teaser = FALSE) {
+  global $user;
+  $links = array();
+  if ($node->uid != $user->uid && $node->type != 'page' && user_access(USER2USERPOINTS_PERM_SEND)) {
+      $links['user2userpoints'] = array(
+      'title'              => t('Give !points', userpoints_translation()),
+      'href'    => 'user2userpoints/'. $node->name
+      );
+  }
+  return $links;
+}
+
 
 function user2userpoints_giveform($name = '') { 
   $form = array();
@@ -45,6 +58,7 @@ function user2userpoints_giveform($name 
        '#type'          => 'textfield',
        '#title'         => t('To'),
        '#default_value' => $name,
+       '#autocomplete_path' => 'user/autocomplete',
        '#size'          => 50,
        '#maxlength'     => 64,
        '#required'      => TRUE
