Drupal Questions & Answers

Ask and answer Drupal related questions! No question too simple or complex!
satish.kadyan's picture
Asked by on Mon 20th Apr 2009
fivestar multi criteria voting from a node to another node

i want to vote from review node to product node with multiple criteria, say five values of a product vote.i want from review node, star voting for all five value should be clickable by any user, how i can do it, presently i am using

<?php
$performance_rating
= votingapi_select_results(array('content_id' => $fields['field_performance']->content, 'tag' =>'performance', 'function' => 'average'));
print
'<div class="row"><span>Performance:</span>';
print
theme('fivestar_static', $performance_rating<a href="#fn3710612795879cd321f3c8">0</a>['value'], '5');
print
'</div>';
?>

like this in views field tpl
but it output static stars. i want to make these star clickable by any user.same way i have more 4 fivestar field for same product. i want all them to be clickable.
please help me, i have tried may tutorial but not getting wht i looking for.
thanks in advance

Commenting on this Drupal Question is closed.