Hiding previous average rating for voters Hiding previous average rating for voters
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Hiding previous average rating for voters

Started by nambroque, January 28, 2023, 06:22:59 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

nambroque

Hi there!

Our gallery is being used for photo contests, and we have this problem:

When a jury member is going to rate a picture (with the "new" system), if another or another members have rated it previously, the group of stars where he will select his ratinge, shows the average rating which that picture has received already from the previous voters

This may influye in his/her rating

Is there any way to hide this, so that only rate_empty.png stars appear in the group of stars?

Thanks in advance


My gallery
My gallery:
Galería Fotometeo

ron4mac

Change images/rate_full.png to be the same as images/rate_empty.png.

nambroque

Thanks for your reply
That's a solution, but if we do so, then we will lose the info of the rating for all the pictures in the gallery when you click on top rated anywhere...  ::)
My gallery:
Galería Fotometeo

ron4mac

I see you are still using CPG 1.5.48

[ UNTESTED ]
In the file js/displayimage.js, at line ~404, replace:
        var star11 = 'rate_full';
with:
        var star11 = (js_vars.can_vote == 'true') ? 'rate_empty' : 'rate_full';

nambroque

Thank you very much ron4mac
It works!
Yes, we tried to move a couple of times to 1.6.x but we had some problems: We could not install miniCMS plugin and also we had problems with the characters encoding. So we came back to 1.5
One question: If we have a specifical problem with my gallery, may I ask here publicly or privately so you may check it?, or I should not do that?
My gallery:
Galería Fotometeo