--- vote_up_down/vud_comment/vud_comment.module	2010-08-01 22:14:51.000000000 -0700
+++ vote_up_down/vud_comment/vud_comment.module	2010-11-16 17:36:24.000000000 -0800
@@ -48,6 +48,13 @@ function vud_comment_admin_settings() {
     '#default_value' => variable_get('vud_comment_widget', 'plain'),
     '#options'       => vud_widget_get_names(),
   );
+  $form['vud_comment_widget_placement'] = array(
+    '#type'          => 'radios',
+    '#title'       => t('Widget placement'),
+    '#description' => t('Choose whether to display the voting widget in comment links or body.'),
+    '#default_value' => variable_get('vud_comment_widget_placement', 0),
+    '#options'       => array(0 => 'Content', 1 => 'Links'),
+  );
   $form['vud_comment_votes'] = array(
     '#type'          => 'radios',
     '#title'       => t('Votes display'),
@@ -96,7 +103,7 @@ function vud_comment_comment(&$comment, 
     case 'view':
       $type = _vud_comment_get_node_type($comment->nid);
       $comment_allow = in_array($type, variable_get('vud_comment_node_types', array()), TRUE);
-      if ($comment_allow && user_access('use vote up/down on comments')) {
+      if ($comment_allow && user_access('use vote up/down on comments') && variable_get('vud_comment_widget_placement', 0) == 0) {
         $tag = variable_get('vud_tag', 'vote');
         $widget = variable_get('vud_comment_widget', 'plain');
         $comment->comment = theme('vud_widget', $comment->cid, 'comment', $tag, $widget) . $comment->comment;
@@ -147,9 +154,18 @@ function vud_comment_link($type, $object
   switch ($type) {
     case 'comment':
       $comment = &$object;
-      $votes_display_mode = variable_get('vud_comment_votes', 1);
-      $widget_theme = variable_get('vud_comment_widget', 'plain');
+      $type = _vud_comment_get_node_type($comment->nid);
+      $comment_allow = in_array($type, variable_get('vud_comment_node_types', array()), TRUE);
       $tag = variable_get('vud_tag', 'vote');
+      $widget_theme = variable_get('vud_comment_widget', 'plain');
+
+      if ($comment_allow && user_access('use vote up/down on comments') && variable_get('vud_comment_widget_placement', 0) == 1) {
+        $links['vud_comment_widget'] = array(
+          'title' => theme('vud_widget', $comment->cid, 'comment', $tag, $widget_theme),
+          'html' => TRUE,
+        );
+      }
+      $votes_display_mode = variable_get('vud_comment_votes', 1);
       if ($votes_display_mode) {
         $links['vud_comment_votes_count'] = array(
           'title' => theme('vud_votes', $comment->cid, $type, $tag, $widget_theme),
