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

davedg629’s picture

any 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).

clemens.tolboom’s picture

This 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?

freestylegary@yahoo.com’s picture

I 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??

freestylegary@yahoo.com’s picture

Still unable to figure this out... help anyone?

clarkburbidge’s picture

+1

vijai kumar’s picture

how to display the ratings next to the text Average:
ie..i want to display the stars in a single line next to average:

dbt102’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 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.