Show rating when no rating is possible Show rating when no rating is possible
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Show rating when no rating is possible

Started by Roland_Deschain, April 29, 2005, 12:52:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Roland_Deschain

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

Nibbler

Certainly, open your displayimage.php, locate:

if (!(USER_CAN_RATE_PICTURES && $CURRENT_ALBUM_DATA['votes'] == 'YES')) return '';

and comment it out

//if (!(USER_CAN_RATE_PICTURES && $CURRENT_ALBUM_DATA['votes'] == 'YES')) return '';