I am trying to do multiple axis ratings of "Node A" which is being referenced by "Node B". "Node B" is the node in which the fivestar field rating is contained.
When I visit "Node A", I just see a blank widget (I have submitted a few "Node B's" so the average should be displayed). Here is the code I used in my custom node template file:
<?php
$high_rating = votingapi_select_results(array('content_id' => $node->nid, 'tag' =>'high', 'function' => 'average'));
print '<div><strong>Average High Rating:</strong>';
print theme('fivestar_static', $high_rating[0]['value'], '5');
print '</div>';
?>
"high" is the axis I used for the "High Rating".
Comments
Comment #1
davedg629 commentedany help is appreciated, at least let me know if I am asking a question that has already been answered, I've searched for hours and the documentation is really only helpful if you want to use nodecomment and drupal 5 (I'm using D6 and do not wish to implement nodecomment).
Comment #2
clemens.tolboomThis problem is nicely documented in "Multi-axis Review System using Fivestar with Views Implementation for Drupal 6" http://drupal.org/node/457886 started by you ;)
Should we close this issue?
Comment #3
freestylegary@yahoo.com commentedI have the same issue here.
From what I see in my issue, no entries are being made into the votingapi_vote table. Is this correct?
1. The field types are all correct
2. All entries in the actual content type table are all updated correctly
3. No updates to votingapi_vote
4. Result: stars with no rating
Am I missing something??
Comment #4
freestylegary@yahoo.com commentedStill unable to figure this out... help anyone?
Comment #5
clarkburbidge commented+1
Comment #6
vijai kumar commentedhow to display the ratings next to the text Average:
ie..i want to display the stars in a single line next to average:
Comment #7
dbt102 commentedDrupal 6 is now end of life, and is no longer supported. So Drupal 6 issues for Fivestar are being closed as "Closed (won't fix)". However, we don't want users who are porting from Drupal 6 to 7 to feel unwanted, so if you have any migration issues, please open them as Drupal 8 issues.