forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Roland_Deschain on April 29, 2005, 12:52:12 pm

Title: Show rating when no rating is possible
Post by: Roland_Deschain on April 29, 2005, 12:52:12 pm
Hi,

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?

Greets,
Roland
Title: Re: Show rating when no rating is possible
Post by: Nibbler 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 '';