6
           
            
                
     
    
    you could.
modify xoopspoll_block_poll.html
(added a line for the comments. below the line for the vote button)
 <td class="foot" align="center" colspan="2"><input type="submit" value="<{$block.lang_vote}>" /> <input type="button" value="<{$block.lang_results}>" onclick="location='<{$xoops_url}>/modules/xoopspoll/pollresults.php?poll_id=<{$poll.id}>'" />td> 
  tr> 
      <tr><td class="foot" align="center" colspan="2"><b>Comments (<{$poll.comments}>)b>td>tr>  
add a function in the xoopspoll class in the xoopspoll.php file in the module's class folder.
 function getcomments($poll_id){ 
        $db =& Database::getInstance(); 
        global $module_handler; 
        $pollmod = $module_handler->getByDirname('xoopspoll'); 
        $sql= "SELECT count(com_id) FROM ".$db->prefix('xoopscomments')." WHERE com_modid = '".$pollmod->getVar('mid')."' AND com_itemid = '".$poll_id."'"; 
        $result = $db->query($sql); 
        while ($row = $db->fetchArray($result)) { 
            $amt=$row['count(com_id)']; 
        } 
        unset($pollmod); 
        return $amt; 
    }  
and then modify the XOOPS poll block in the blocks/xoopspoll.php file. in the module's folder
.modified the line below so it sets a value for our comments variable.
 $poll = array('id' => $polls[$i]->getVar('poll_id'), 'comments' => XoopsPoll::getcomments($polls[$i]->getVar('poll_id')),'question' => $polls[$i]->getVar('question'), 'option_type' => $option_type, 'option_name' => $option_name, 'options' => $options);  
and that should work.. (do a module update so the system can update the block's template file.)
    
 
          
        CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧