a description of the php-code needed to put into node-flexinode-1.tpl.php to show/integrate nodevote in a themed flexinode.

Comments

marcoBauli’s picture

Title: integration in themed flexinode » integration in themed nodes?

yes, please, i am also interested in how to output nodevote, but i am actually using CCK and Contemplate modules...

hint about the code to paste apreciated!

ty

scroogie’s picture

The following should do the job in a contemplate template.... didnt test thoroughly though

$node = node_load($nid);
 if ($node->nodevote->vote_display) {
   $data = _nodevote_get_vote_data($node->nid, $page);
   print theme('nodevote_display_vote', $data['score'], $data['votes'], $data['vote_display']);
 }
 if ($node->nodevote->vote_do) {
   print theme('nodevote_do_vote',$node);
 }
scroogie’s picture

Assigned: Unassigned » scroogie
Status: Active » Closed (fixed)
jsethi’s picture

I tried using that code in a tpl file i created.

When you vote it displays the #of votes as the vote rank you used

Also it only displays stars only on a rating of 2

I have no idea how the code displayed above is causing these symptoms :S

I would really like to use this module with my nodes... Please help.