--- vote_up_down.module	Mon Feb 19 05:38:54 2007
+++ vote_up_down-model.module	Fri Mar  2 17:55:31 2007
@@ -133,6 +133,13 @@ function vote_up_down_admin_settings() {
     '#options' => array(0 => t('No'), 1 => t('Yes')),
     '#description' => t('If yes a link will be displayd on nodes and commets that will reset the users votes on that node/comment.'),
   );
+    $form['vote_widget_settings_advanced']['vote_up_down_downvote_link'] = array(
+    '#type' => 'radios',
+    '#title' => t('Link to allow users to vote down (for use with alternate widget)'),
+    '#default_value' => variable_get('vote_up_down_downvote_link', 0),
+    '#options' => array(0 => t('No'), 1 => t('Yes')),
+    '#description' => t('If yes a link will be displayed on nodes and comments which will allow registered users to vote down a node/comment.'),
+  );
 
   return system_settings_form($form);
 }
@@ -258,8 +265,17 @@ function vote_up_down_link($type, $node 
             'href' => "vote_up_down/$type/$node->nid/0",
             'attributes' => array('title' => t('Reset your vote.')),
             'query' => drupal_get_destination()
+          ); 
+      global $user;
+      if (variable_get('vote_up_down_downvote_link', 0) && ($user->uid)) {
+            $links['vote_down'] = array(
+            'title' => t('Vote down'),
+            'href' => "vote_up_down/$type/$node->nid/-1",
+            'attributes' => array('title' => t('Vote down')),
+            'query' => drupal_get_destination()
           );
-        }
+         }
+         }
         if ($teaser && variable_get('vote_up_down_link_node', 0) && variable_get('vote_up_down_link_node', 0) != 2) {
           $links['vote_up_down_points'] = theme('vote_up_down_points', $node->nid, $type, TRUE);
         }
@@ -276,6 +292,15 @@ function vote_up_down_link($type, $node 
           'attributes' => array('title' => t('Reset your vote.')),
           'query' => drupal_get_destination()
         );
+        global $user;
+      if (variable_get('vote_up_down_downvote_link', 0) && ($user->uid)) {
+            $links['vote_down'] = array(
+            'title' => t('Vote down'),
+            'href' => "vote_up_down/$type/$node->cid/-1",
+            'attributes' => array('title' => t('Vote down')),
+            'query' => drupal_get_destination()
+          );
+         } 
       }
       if (variable_get('vote_up_down_link_comment', 0) && user_access('view up-down vote')) {
         $links['vote_up_down_points_c'] = theme('vote_up_down_points', $node->cid, $type, TRUE);
