This topic is locked
[SOLVED]

show/hide numeric score

9/29/2022 11:12:22 AM
StarRating plugin support forum
P
pmuckle authorDevClub member

Hi,

I'm not sure if this plugin is being supported, but it would be really useful for an option to show/hide the numeric score, to hide on lists.

Thanks
Peter

admin 9/29/2022

Unfortunately, the developer of the plugin abandoned it. We keep it afloat, as in making sure it works with the latest version of the software.

Adding new features can be done as a custom project.

P
pmuckle authorDevClub member 9/30/2022

Thanks for keeping it afloat.

It is a really useful plugin and I wonder how it can be developed further?

For example, showing averages as stars.

edit: Is the code available to modify?

admin 9/30/2022

The plugin is available as a source code, everything can be freely modified.

fhumanes 10/3/2022

Hello,

I think the current plugin has the fucnionalities you request.

Its parameters are:
EDIT

// set it to true to make star rating field required
$this->settings["required"] = true;

//If true will be showed a button to cancel the rating
$this->settings["cancel"] = true;

//Position of the cancel button (left or right)
$this->settings["cancelPlace"] = 'left';

//The hint information of the cancel button
$this->settings["cancelHint"] = 'remove my rating!';

//List of names that will be used as a hint on each star
$this->settings["hints"] = array('bad', 'poor', 'regular', 'good', 'gorgeous');

//Enables half star selection
$this->settings["half"] = true;

//The icons size (12 or 24)
$this->settings["size"] = 12;

//Number of stars that will be presented (1-20)
$this->settings["number"] = 10;

//If true will be showed an hint area for the actual selected score
$this->settings["show_hint"] = false;

VIEW

//List of names that will be used as a hint on each star
$this->settings["hints"] = array('bad', 'poor', 'regular', 'good', 'gorgeous');

//Enables half star selection
$this->settings["half"] = true;

//The icons size (12 or 24)
$this->settings["size"] = 12;

//Number of stars that will be presented (1-20)
$this->settings["number"] = 10;

//If true will be showed an hint area for the actual selected score
$this->settings["show_hint"] = false;

You can see an example in this URL
https://fhumanes.com/plugines/prueba_plugin2_list.php

You can download the latest version in:
https://fhumanes.com/blog/guias-desarrollo/plugines-de-phprunner/

Cheers,
fernando

admin 10/3/2022

Fernando,

the question is about StarRating plugin from the marketplace.

P
pmuckle authorDevClub member 10/4/2022

Thanks Fernando, That has done it.

Because of the word 'hint' I thought the setting was referring to the list of hint names!

The only thing left is to work out how to add a star rating to the column average...

Thanks again

Peter

fhumanes 10/4/2022

Hello,

It is also inluid, it is the "half" parameter

Cheers,
fernando