does anyone know anything about nodevote? the user has to click on the node to see what the current vote is. i still would like them to click on the article to have to vote, but it would be nice if they could always see what the current score is when they look at the teaser.

Comments

ultraBoy’s picture

This seems to be easy, but, if you have no ideas, consider promising some bucks for the feature. I'm sure, you'll get it :)

irishsuperfly’s picture

Any help on this idea? I've tried to stumble through putting the vote results into the teaser with no luck. Thanks

Christefano-oldaccount’s picture

Maybe this was added to nodevote since your post, but I see a "Vote result display (teaser view)" field in the nodevote settings. I'm referring to nodevote version 1.18.2.4 2006/08/27.

Go to administer -> settings -> nodevote (or http://yoursite.net/admin/settings/nodevote), and be sure that the right node types (the ones you want to show vote results for in the teasers) are selected.

AgentRouge’s picture

Yep, there is a teaser view option in the Nodevote settings. And then, I guess this depends on whether you're using simple nodes or CCK. If you want to have the rating displayed for CCK nodes, you might need to insert it into the template. For example, I'm using CCK+contemplate and I have the following code at the end of my teaser template:

$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']);
}