Drupal Module: Node Vote

Sponsored Links

Drupal Module: Node Vote

I've written a new Drupal module to allow users to vote on various types of node, as defined by the site admin.

The votes are registered, and an overall average score is displayed, as well as the number of votes for that node.

Sidebar blocks can be configured to show the top rated nodes, most voted for node, as well as most voting users.

An extended version is available that allows voting for multiple criteria for each node, and not just one vote. 

More information on the Node Vote project page. 

nodevote and flexinode

Hello Khalid,
First of all thanks for this excellent module. It works great with blogs and pages etc. But I have not been able to use it with a flexinode content type. I dont know how to print it in the node-flexinode.tpl.php.
Is there a php variable that can be used to print the nodevote output in the node-flexinode.tpl.php, As there is in the userreview module.

Thanks a lot
Rudy

Theme functions

I don't use flexinode myself, but assuming you are on 4.7, there are two functions that you can include in the theme.

yourtheme_nodevote_display_vote($score, $votes, $vote_display)

And

yourtheme_nodevote_do_vote($node)

That should do what you want.
--
Khalid Baheyeldin

yagmur

It's actually quite a simple concept. Anything exposed to your node view will be indexed.

Post new comment

  • All spam and irrelevant comments will be deleted.
  • Comments posted here will take some time to appear on the site. Do not post your comment again if you do not see it. Just be patient and it will be published.
  • Note that what you post here will be publicly available on the web and will be indexed in search engines.
  • We reserve the right to unpublish any comments without stating the reasons for that.
  • All postings are subject to our Terms of use
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.

More information about formatting options