Hi,
Is there a way to make Fivestar display a different color star to represent "I've already voted on this"? If I'm displaying 12 nodes on a page, there's no way to tell which ones I've already voted on versus which ones are new to me. I know that the stars "know" that I've voted, because they display my vote (let's say 4 stars) instead of the average (2.5 stars). But the stars are all the same color, so I can't tell at a glance which ones are new.

Thanks!
Eileen

Comments

quicksketch’s picture

Version: 5.x-1.12 » 6.x-2.x-dev
Category: support » feature

There isn't a way to do this currently, since Fivestar only supports 3 states: off, hover, and on. We'd need a fourth state for "voted". Since this would require new CSS and new icons for every existing widget, I don't think this is a feasible request for the 1.x version of the module since it would require a lot of reworking on existing sites. I'm moving this to a feature request for the 2.x version.

ha5bro’s picture

I modded the files with a bit of code to achieve this...

I added this to fivestar.css

div.fivestar-widget div.on.hover a, div.rating div.on.hover a:hover {
  background-position: 0 -16px; /* RTL */
}

and removed '.removeClass('on')' from line 197 of fivestar.js

Pretty much just removes the rollover state.

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.