?
avatar sandewt
sandewt
15 Apr 2021

Steps to reproduce the issue

This is an improvement proposal. In the hope it wil be useful.

Expected result

screen shot 2021-04-15 at 06 35 47

The plugin has a counter.
See the number of votes next to the stars.
In this case (4). Next case (5). And so on.

Actual result

The plugin has NOT a counter

System information (as much as possible)

Additional comments

Code: see file rating.php line 93

<?php echo $img; ?>
becomes
<?php echo $img . '<span class="text-muted"> (' . $rcount . ')</span>'; ?>

avatar sandewt sandewt - open - 15 Apr 2021
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Apr 2021
avatar sandramay0905
sandramay0905 - comment - 15 Apr 2021

Vote 5 looks like the user should give 5 stars. I would say that the info (4) is enough as user know that 5 comes after 4 ;-)

avatar sandewt
sandewt - comment - 15 Apr 2021

To avoid a misunderstanding (4) has nothing to do with the number of stars.
At some point, for example, after 140 votes, the counter will indicate (140).

avatar sandewt
sandewt - comment - 15 Apr 2021

Possible alternative:

vote_after_2

This means: rating_sum / rating_count = 14 : 4 = 3.5 stars

avatar sandewt
sandewt - comment - 15 Apr 2021

Possible alternative (2):

vote_after_3

avatar PhilETaylor
PhilETaylor - comment - 15 Apr 2021

PR #33143

avatar richard67 richard67 - change - 15 Apr 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-04-15 19:21:17
Closed_By richard67
avatar richard67 richard67 - close - 15 Apr 2021
avatar richard67
richard67 - comment - 15 Apr 2021

Closing as having a pull request. Please test #33143 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment