Allow 5 "disabled" stars instead of "n/a" when rating==0, and allow "n/a" separately

Created on 9 January 2011, over 14 years ago
Updated 11 March 2025, about 1 month ago

I would like to be able to display 5 disabled stars instead of "n/a" when the user sets 0 for the value. Obviously these things have different meanings: "i absolutely hated it" vs "i haven't set a rating yet". But personally I'd rather have the confusion and have consistency in my theme instead of showing an ugly "n/a" that confuses users.

This could also be a preference.

As a temporary fix, I just commented out this line of starrating.module (line 236):


  //if ($rate == 0) return t('n/a');

And it enacts the behavior I'm looking for.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024