--- userpoints_votingapi.module.orig	2008-08-03 23:56:19.000000000 +0400
+++ userpoints_votingapi.module	2008-09-15 23:20:54.000000000 +0400
@@ -43,6 +43,15 @@
       '#default_value' => variable_get(userpoints_votingapi_daily_threshold, 0),
       '#description' => t('The maximum number of votes -- that will earn User Points -- in a 24-hour period.<br />Select 0 to ignore.'),
     );
+
+    $form[$group]['userpoints_votingapi_tid'] = array(
+      '#type'          => 'select',
+      '#title'         => t('Category'),
+      '#default_value' => variable_get(userpoints_votingapi_tid, 0),
+      '#options'       => userpoints_get_categories(),
+      '#description' => t('Votes will be assigned to this category. You can modify what categories are available by modifying the <a href="!url">Userpoints taxonomy</a>.', 
+        array('!url' => url('admin/content/taxonomy/'. variable_get(USERPOINTS_CATEGORY_DEFAULT_VID, '')))),
+    );
   }
 }
 
@@ -62,6 +71,7 @@
     'entity_id' => $vote['content_id'],
     'entity_type' => $vote['content_type'],
     'operation'     => t('vote'),
+    'tid'         => variable_get('userpoints_votingapi_tid', 0),
     'description' => t('Vote cast: !content_type !content_id.',array('!content_type'=> $vote['content_type'], '!content_id'=> $vote['content_id'])),
     )
   );
@@ -84,6 +94,7 @@
     'entity_id' => $vote['content_id'],
     'entity_type' => $vote['content_type'],
     'operation'     => t('vote'),
+    'tid'         => variable_get('userpoints_votingapi_tid', 0),
     'description' => t('Vote cancelled: !content_type !content_id.',array('!content_type'=> $vote['content_type'], '!content_id'=> $vote['content_id'])),
     )
   );
@@ -93,4 +104,4 @@
 function userpoints_votingapi_within_threshold($uid, $threshold) {
   $number = db_result(db_query("SELECT COUNT(*) FROM {votingapi_vote} WHERE uid = %d AND timestamp > %d", $uid, time() - 86400));
   return ($number <= $threshold ? TRUE : FALSE);
-}
\ No newline at end of file
+}
