--- extra_voting_forms.module	2008-12-06 07:42:55.000000000 +0100
+++ extra_voting_forms_mine.module	2009-03-22 19:08:24.000000000 +0100
@@ -1180,6 +1180,19 @@ function extra_voting_forms_show_form($o
       $r = votingapi_select_results($criteria);
 
       $total_score_display = (int)$r[0]['value'];
+
+// edited munikho
+// getting the total up and total of down votes
+      $criteria2 = array();
+      $criteria2['content_type'] = extra_voting_forms_c($o->sk_type); 
+      $criteria2['content_id'] = $o->sk_id;
+      $criteria2['value_type'] = 'points';
+      $criteria2['tag'] = 'vote';
+      $criteria2['function'] = 'count';
+      $count = votingapi_select_results($criteria2);
+
+	  $total_score_down_display = ($count[0]['value'] - $r[0]['value']) /2;
+	  $total_score_up_display = $count[0]['value'] - $total_score_down_display;
     }
   }
   else {
@@ -1197,7 +1210,8 @@ function extra_voting_forms_show_form($o
       break;
     // Form type 3 (Karma UP/Down)
     case 3:
-      $form .= theme('extra_voting_forms_3', $substyle, $o, $total_score_display, $existing_vote, $voting_not_allowed_flag, $draw_js_destination_variable_flag);
+	//edited by munikho
+      $form .= theme('extra_voting_forms_3', $substyle, $o, $total_score_display, $total_score_up_display, $total_score_down_display, $existing_vote, $voting_not_allowed_flag, $draw_js_destination_variable_flag);
       break;
     // Form type 4 (Karma UP only)
     case 4:
@@ -1297,7 +1311,6 @@ function theme_extra_voting_forms_1($sub
   // **********************************************************
   // DRAW THE ACTUAL FORM
   // **********************************************************
-
   $form .= '
     <div class="extra_voting_forms karma_1_'.$substyle.'">
     <form action="'.$action.'" method="post" class="karma_form'.$is_promoted_class.'" id="z'.$o->sk_id.'">
@@ -1387,7 +1400,8 @@ function theme_extra_voting_forms_2($sub
  *
  * @ingroup themeable
  */
-function theme_extra_voting_forms_3($substyle, $o, $total_score_display, $existing_vote, $voting_not_allowed_flag, $draw_js_destination_variable_flag ) {
+// edited by munikho
+function theme_extra_voting_forms_3($substyle, $o, $total_score_display, $total_score_up_display, $total_score_down_display, $existing_vote, $voting_not_allowed_flag, $draw_js_destination_variable_flag ) {
 
   // **********************************************************
   // PREPARING BASIC VARIABLES
@@ -1404,11 +1418,11 @@ function theme_extra_voting_forms_3($sub
   $action = base_path() ."extra_voting_forms/handle";
 
   if ($total_score_display !== FALSE ) {
-    $karma_score_display = '<span class="karma_score">'. $total_score_display .'</span>';
+    $karma_score_display = '<div class="karma_numbers"><span class="karma_score">'. $total_score_display .'</span><span class="karma_up_down">+'. $total_score_up_display .' / -' . $total_score_down_display.'</span></div>';
   }
 
