Closed (fixed)
Project:
Fivestar
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2011 at 16:55 UTC
Updated:
12 Jan 2017 at 12:00 UTC
Jump to comment: Most recent
I've got a piece of content that display the votes correctly (stars + text) when the fivestar field has 'Expose the widget for this display' ticked, however it does not work quite so well when it is not ticked.
Instead I am just shown the empty white stars and no text.
Comments
Comment #1
ericduran commentedHmm, I didn''t even realized you could do that. Thats a mistake and you shouldn't have the option of unchecking that box.
I'll remove that option.
Comment #2
ericduran commentedThis is also an issue if the user doesn't have the rate content permission.
Comment #3
Shadlington commentedOh, I thought the point was to replace the static display.
i.e. to not allow voting, just display the current rating.
What is the correct way to have a static fivestar display? I do not want to allow users to vote on teasers, just the full node.
Comment #4
ericduran commented@Shadlington yea, you're right, I'm a little off today ;)
The issue is that its assuming the widget its a regular stars (while you edit) widget. So it's not looking up the votingapi votes. I'll have a fix for this later in the day.
Thanks for the bug report.
Comment #5
ericduran commented@Shadlington yea, you're right, I'm a little off today ;)
The issue is that its assuming the widget its a regular stars (while you edit) widget. So it's not looking up the votingapi votes. I'll have a fix for this later in the day.
Thanks for the bug report.
Comment #6
justmagicmaria commentedWondering what the status of this is? I've got a custom content type with a fivestar field on the comment where the voting target is Parent Node. When I have a field on the node set to "Rate on View" and "Exposed", it lets me vote on both the node and the comment (when I only want the comment). When I change Exposed to no, it doesn't show me the average. I'm assuming it's supposed to?
Comment #7
Shadlington commented@ericduran: Any progress on this?
Comment #8
BeaPower commentedI am also having this problem, any fix?
Comment #9
BeaPower commentedany updates?
Comment #10
oskarg commentedsubscribe
Comment #11
reecemarsland commentedsubscribe
Comment #12
Canadaka commentedsubscribe, also have this issue and needing static display
Comment #13
ericduran commentedIs this not fix on the latest dev? I think it got fixed together with another issue.
Comment #14
ericduran commentedI can confirm that this is indeed fixed on the latest version with a clean install of fivestar.
I'll wait for feedback before closing this issue.
Comment #15
ericduran commented+test
Comment #16
ericduran commentedOk, This is fixed and I also added a test to test this exact issue so it wont pop up again.
-- http://drupal.org/commitlog/commit/2490/c07bf7251eaebd2b4c4b8819f580848d...
Comment #17
end user commentedWell I just discovered this issue with the latest dev version (sept 13th) . If I set the node fivestar Widget type to "rate while editing" the node stars don't show any rating even though the comments rating field has the perent reference set. If I change the Widget type to "rate while viewing" it works as expected.
Comment #18
ericduran commented@future assassin That is not a bug, thats how its supposed to work.
If you select "rate while editing" The only thing thats going to display is what you set the stars as when editing the node. Not an aggregated value.
If you need support help, please open a new issue and I'll be sure to document what you would like to accomplished.
Thanks.
Comment #19
robomalo commentedThis doesn't appear to be resolved using panels (using a token in the template) or views (displaying as field with widget exposed). The rating gets stored in the votingapi_vote table, but shows empty stars with no votes yet. I tried a fresh fivestar uninstall/install but no joy.
Comment #20
ericduran commented@robomal, Please explain your issues further.
I've tested this and it works, other people can also confirm this now works -- http://drupal.org/node/1224700#comment-4989352
Can you tell me exactly what your doing? and where you're having issues.
Also it might be worth opening a support issue for your problem as I don't think its an actual bug.
Thanks.
Comment #21
robomalo commentedWe are using the "Content: Rating" field on a view using fields. It doesn't seem to matter whether we are exposing the widget or not. When you click a star to rate, the stars change color. The next time you visit the page or refresh, the stars are reset (white in the center). However, the score is stored in the database. This is also the problem when using the %node:field_rating replacement in a panel.
I am using the latest dev release of Fivestar (Sept. 14) and Voting API 7.x-2.4.
Comment #22
ericduran commented@robomalo it seems like your facing a different issue, Please open a new issue and I'll be sure to resolved your problem on that issue.
Thanks.
Comment #23
robomalo commentedThanks. After reading it again, they are similar, but not the same.
Comment #25
selvaraj123 commentedNot working .Could you please tell some others solution for this issues
Selvaraj.C
Comment #26
Rohit bharti commentedi am using voting api in content type (drupal 8) via views but some time star not displaying and some select type button with save button show on ,how to use voting api for displaying star as rating .please any one help me