Invoking the rate module in views template file doesn't work I have installed both the Views and Rate modules. In the views-view-fields.tpl.php file, I put the following code.

$node = node_load($row-&gt;nid);   
echo $node-&gt;content['rate_poll']['#value'];
echo $node-&gt;title;


There is no output for $node-&gt;content['rate_poll']['#value'], while the code outputs the node title. Why?

How can I output $node-&gt;content['rate_poll']['#value'] in views-view-fields.tpl.php, or other Views files?
The code you wrote doesn't work because $node-&gt;content['rate_poll']['#value'] is only present when the node is being viewed. The code that adds $node-&gt;content['rate_poll']['#value'] is in the implementation of hook_nodeapi(), and the code is executed when the operation is "view."

/**
 * Implements hook_nodeapi().
 */
function rate_nodeapi(&amp;$node, $op, $a3, $a4) {
  // Adding the form to the node view
  if ($op == 'view') {
    $widgets = rate_get_active_widgets('node', $node-&gt;type, $a3);

    foreach ($widgets as $widget_id =&gt; $widget) {
      $widget_name = 'rate_' . $widget-&gt;name;
      _rate_check_widget($widget);

      $display_mode = $a3 ? $widget-&gt;teaser_display_mode : $widget-&gt;node_display_mode;

      $widget_code = array(
        '#value' =&gt; rate_generate_widget($widget_id, 'node', $node-&gt;nid, $display_mode),
        '#weight' =&gt; $widget-&gt;node_display == RATE_DISPLAY_ABOVE_CONTENT ? 0 : 50,
      );

      if ($widget-&gt;node_display != RATE_DISPLAY_ABOVE_CONTENT &amp;&amp; $widget-&gt;node_display != RATE_DISPLAY_BELOW_CONTENT) {
        $node-&gt;$widget_name = $widget_code;
      }
      else {
        $node-&gt;content[$widget_name] = $widget_code;
      }
    }
  }
}


For the code to work, you should change it to the following one.

$node = node_load($row-&gt;nid);
node_invoke_nodeapi($node, 'view', FALSE, TRUE);
echo $node-&gt;content['rate_poll']['#value'];
echo $node-&gt;title;


node_invoke_nodeapi() invokes any implementation of hook_nodeapi(), using its first parameter as operation value. Once the function returns, $node will contain any $node-&gt;content value added by the modules, including $node-&gt;content['rate_poll']['#value'].