Advanced search  


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.

Pages: [1]   Go Down

Author Topic: Show rating when no rating is possible  (Read 2132 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Show rating when no rating is possible
« on: April 29, 2005, 12:52:12 pm »


we are runnig a photo-contest in a coppermine gallery. There, the users can only rate the pictures for a week, after that, the rating is no longer possible.
The problem is, that the rating (e.g. 3.5/5) can only be seen when users are able to rate the pictures. When I disable the rating function, the current rate disappears from beneath the pic.
Is it possible to change this, so that the rating can be seen even when it's no longer possible to vote for a picture?



  • Guest
Re: Show rating when no rating is possible
« Reply #1 on: April 29, 2005, 01:55:07 pm »

Certainly, open your displayimage.php, locate:

Code: [Select]
if (!(USER_CAN_RATE_PICTURES && $CURRENT_ALBUM_DATA['votes'] == 'YES')) return '';
and comment it out

Code: [Select]
//if (!(USER_CAN_RATE_PICTURES && $CURRENT_ALBUM_DATA['votes'] == 'YES')) return '';
Pages: [1]   Go Up

Page created in 0.015 seconds with 19 queries.