Fivestar is a popular drupal module for node ratings setup. Unfortunately, it’s unable to rate node by several parameters, multiple axis. It can be still used to create reviews, and you can setup several ratings in a review. But you will need whole pack of modules: fivestar, cck, node comments, node limit or something like that. Last dev-version 6.x-1.x-dev from 28 january fix this disappointing imperfection. But it’s in completely mess! It’s simply ignore settings you set.
So, I’ve found this topic and caught this snippet:
<?php $nid = arg(1); $output = ''; 'quality' => t('Quality'), 'color' => t('Color'), 'vote' => t('Overall'), ); foreach ($tags as $tag => $title) { $votes = fivestar_get_votes('node', $nid, $tag); ); 'stars' => 5, 'allow_clear' => TRUE, 'style' => 'average', 'text' => 'dual', 'content_type' => 'node', 'content_id' => $nid, 'tag' => $tag, 'autosubmit' => TRUE, 'title' => $title, 'feedback_enable' => TRUE, 'labels_enable' => TRUE, ); $output .= drupal_get_form('fivestar_custom_widget', $values, $settings); } print $output; ?>
Also fivestar module is supposed to be patched to use the snippet. But it’s look like last stable module version 6.x-1.19 already have all necessary modifications, so everything working as is.
Khe-khe. There is still a problem. Now I have multiple ratings, but I can not setup different widgets(one rating with red stars and another one with blue, for example)!
Comments
Post new comment