Hi all,

have anyone managed to use views (field) to list out the recent comment ?

if I use row style as "comment", it comes out fine, but if I change it to field, there is no way I could make the comment rating showing. it always come out an empty field

here are the view settings I used and the result print accordingly.

many thanks for your help

Ben

Comments

madaerodog’s picture

When you edit the field in the views panel you have this option

Hide if empty
Do not display anything for this field if it is empty. Note that the field label may still be displayed. Check style or row style settings to hide labels for empty fields.

See if it helps ..

peter.walter’s picture

Version: 6.x-1.x-dev » 6.x-1.19
Status: Active » Needs review
StatusFileSize
new1.1 KB

I found the same thing - there appears to be a bug in fivestar_comment.module when interpreting the array from _fivestar_cast_vote. This means that all ratings in the database are stored as 0.
Attached is a patch to fix.

boogsbobo’s picture

@ expandonline I applied your patch from #2 and also from http://drupal.org/node/859808#comment-3518436

But I still cant get this working.

Am I clear that part of your patch in #2 involves creating the new file at the location modules/fivestar/views/fivestar.views.inc ?

also i did not understand the last line of above mentioned module:

...
+  return $data;
+}
\ No newline at end of file

could you elaborate? Thanks

peter.walter’s picture

As it says, it simply means that I must have missed a carriage return when I wrote the function - it shouldn't be important and it should be fine for 'patch' to create the file.

If you can elaborate on your problem, I may be able to help.

boogsbobo’s picture

sorry, i applied the patch manually.

I am basically having the exact problem as OP. I have tried any combination of relationships and arguments, and I keep getting the grey empty stars (indicating that there is no star rating stored for the comment).

After I added your two patches, I didnt notice any different behavior. Is there supposed to be a new relationship choice available now? Thanks!

YK85’s picture

subscribing

whiteph’s picture

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

We can no longer support the Drupal 6 version of Fivestar. It is in security maintenance mode only. When the Drupal 8 version of Fivestar is released, the Drupal 6 version will be officially deprecated.

whiteph’s picture