Voting for a taxonomy term

Events happening in the community are now at Drupal community events on www.drupal.org.
amir simantov's picture

Hi.

I have been looking for some time and either could not find what I want or completely missed it.

My site has predefined taxonomy terms which are used in a Story content type. On the each story page I would like to let a user (also anonymous one) the ability to mark a taxonomy term as fits to the node. Yes/No is enough, no need for a five-star like voting. Now, when a user goes to the page of the taxonomy term, there will be a block, naturally by a views query, that will sort the stories by the voting people gave to the said term.

The vote up-down module give us only a node granularity, where I need indeed a taxonomy term granularity.

Any help is appreciated!

Thanks!

Comments

Same need

turadg's picture

Sorry I don't have an answer, but I am in the same boat. If you do find a solution, please post it here. I'll do the same.

How about vote up/down or

positiverep's picture

How about vote up/down or drigg, maybe you could edit the buttons

I have used vote up/down to

szadok's picture

I have used vote up/down to add voting for terms. I have added it only if description is present (though you can change that)

I have added the following code to my template.php:

<?php
/**
* Implementation of hook_taxonomy_term_page
* Adds voting to terms
*/

function MYTHEME_taxonomy_term_page($tids, $result) {

 
$output = '';

 
// Only display the description if we have a single term, to avoid clutter and confusion.
 
if (count($tids) == 1) {
   
$term = taxonomy_get_term($tids[0]);
   
$description = $term->description;

   
// Check that a description is set.
   
if (!empty($description)) {
     
$style = variable_get('vote_up_down_widget_style_node', 0) == 1 ? '_alt' : '';
     
$output .= theme("vote_up_down_widget$style", $term->tid, 'term');
     
$output .= theme("vote_up_down_points$style", $term->tid, 'term');
     
$output .= '<div class="taxonomy-term-description">';
     
$output .= filter_xss_admin($description);
     
$output .= '</div>';
    }
  }

 
$output .= taxonomy_render_nodes($result);

  return
$output;
}
?>

Free Tagging with a Bonus

MGParisi's picture

What I am looking for is a Community Free Tagging. Each user is presented a Tag box. They free tag all the items they want. When two users tag the same they item they want that tag is voted on. I think this requires a complete module.


--Sig--
Owner of Proper Programming, LLC a software and website development firm.

Voting Systems

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: