Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Hiding previous average rating for voters  (Read 4850 times)

0 Members and 1 Guest are viewing this topic.

nambroque

  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 88
    • Galerķa Fotometeo
Hiding previous average rating for voters
« 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
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Hiding previous average rating for voters
« Reply #1 on: January 29, 2023, 09:12:23 pm »

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

nambroque

  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 88
    • Galerķa Fotometeo
Re: Hiding previous average rating for voters
« Reply #2 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...  ::)
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Hiding previous average rating for voters
« Reply #3 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';
Logged

nambroque

  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 88
    • Galerķa Fotometeo
Re: Hiding previous average rating for voters
« Reply #4 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?
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.