? vud_hidden_comments.patch
Index: vud.css
===================================================================
RCS file: vud.css
diff -N vud.css
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ vud.css	27 Apr 2010 08:21:01 -0000
@@ -0,0 +1,17 @@
+/* $Id$  */
+/* VUD CSS file */
+div.negative-dimmed {
+	filter:alpha(opacity=50);
+  -ms-filter:”alpha(opacity=50)”;
+	-moz-opacity:0.5;
+	-khtml-opacity: 0.5;
+	opacity: 0.5;
+}
+
+div.negative-dimmed:hover {
+	filter:alpha(opacity=100);
+  -ms-filter:”alpha(opacity=100)”;
+	-moz-opacity: 1;
+	-khtml-opacity: 1;
+	opacity: 1;
+}
\ No newline at end of file
Index: vud.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vote_up_down/Attic/vud.module,v
retrieving revision 1.1.2.23
diff -u -p -r1.1.2.23 vud.module
--- vud.module	12 Mar 2010 08:06:45 -0000	1.1.2.23
+++ vud.module	27 Apr 2010 08:21:01 -0000
@@ -158,4 +158,4 @@ function vud_ctools_plugin_directory($mo
   if ($module == 'vud') {
     return $plugin;
   }
-}
+}
\ No newline at end of file
Index: vud.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vote_up_down/Attic/vud.theme.inc,v
retrieving revision 1.1.2.26
diff -u -p -r1.1.2.26 vud.theme.inc
--- vud.theme.inc	12 Mar 2010 08:10:25 -0000	1.1.2.26
+++ vud.theme.inc	27 Apr 2010 08:21:01 -0000
@@ -90,6 +90,7 @@ function vud_widget_proxy($cid, $type, $
 
   ctools_add_js('ajax-responder');
   drupal_add_js(drupal_get_path('module', 'vud') . '/vud.js');
+  drupal_add_css(drupal_get_path('module', 'vud') . '/vud.css');
   vud_add_files('css', $plugin);  // Search and add the CSS files.
   vud_add_files('js', $plugin);   // Search and add the JS files.
 
@@ -190,7 +191,10 @@ function vud_votes_proxy($cid, $type, $t
   }
   else {
     $variables['points'] = $vote_result;
-    if ($vote_result < 0) {
+    if ($vote_result < variable_get('vud_comment_dimmed', array())){
+      $variables['class'] = 'negative-dimmed';
+    }
+      elseif ($vote_result < 0) {
       $variables['class'] = 'negative';
     }
     else {
Index: vud_comment/vud_comment.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vote_up_down/vud_comment/Attic/vud_comment.module,v
retrieving revision 1.1.2.18
diff -u -p -r1.1.2.18 vud_comment.module
--- vud_comment/vud_comment.module	12 Mar 2010 08:06:45 -0000	1.1.2.18
+++ vud_comment/vud_comment.module	27 Apr 2010 08:21:01 -0000
@@ -62,6 +62,12 @@ function vud_comment_admin_settings() {
     '#default_value' => variable_get('vud_comment_reset', 0),
     '#options'       => array(0 => 'No', 1 => 'Yes'),
   );
+  $form['vud_comment_dimmed'] = array(
+    '#type'          => 'textfield',
+    '#title'         => t('Trigger point for dimmed comments'),
+    '#default_value' => variable_get('vud_comment_dimmed', '-5'),
+    '#description'   => t('Negatively voted comments will be dimmed once votes reach this point (default: -5).'),
+  );
 
   return system_settings_form($form);
 }
@@ -72,6 +78,8 @@ function vud_comment_admin_settings() {
 function vud_comment_comment(&$comment, $op) {
   switch ($op) {
     case 'view':
+      // TODO: the following line needs to set the $comment->vud to the current comments $vote_count
+      $comment->vud = rand(-8, 2);
       $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')) {
