forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: nambroque on January 28, 2023, 06:22:59 pm

Title: Hiding previous average rating for voters
Post by: nambroque on January 28, 2023, 06:22:59 pm
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 (https://fotometeo.ame-web.org/index.php)
Title: Re: Hiding previous average rating for voters
Post by: ron4mac on January 29, 2023, 09:12:23 pm
Change images/rate_full.png to be the same as images/rate_empty.png.
Title: Re: Hiding previous average rating for voters
Post by: nambroque on February 01, 2023, 05:55:08 pm
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...  ::)
Title: Re: Hiding previous average rating for voters
Post by: ron4mac on February 01, 2023, 08:01:21 pm
I see you are still using CPG 1.5.48

[ UNTESTED ]
In the file js/displayimage.js, at line ~404, replace:
Code: [Select]
        var star11 = 'rate_full';with:
Code: [Select]
        var star11 = (js_vars.can_vote == 'true') ? 'rate_empty' : 'rate_full';
Title: Re: Hiding previous average rating for voters
Post by: nambroque on February 01, 2023, 10:26:11 pm
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?