Need to alter rating system Need to alter rating system
 

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]

Main Menu

Need to alter rating system

Started by alig8r, January 23, 2011, 04:58:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alig8r

Hi there. Recently installed CPG 1.5 (brilliant) for a new photo contest we're running.  What I need to accomplish is this:

One vote per IP per day.

I understand about changing the stars to '1' but not sure about the 1 vote per IP per day.

I was able to accomplish this last year in CPG 1.4. as I modified the code according to a thread in your forum (cannot seem to locate this thread now)

Would you tell me the best way to go about this.  Thank you for your time.

Αndré

It would be great if you could search and find that thread for us, so we don't have to invent the wheel twice. We don't delete threads, so it have to be somewhere.


Αndré

Please try the following. Open ratepic.php, find
$clean_before = time() - $CONFIG['keep_votes_time'] * 86400;
and replace with
$clean_before = time() - 86400;

alig8r


Αndré

Please give some more information if you need a solution. What exactly happens? With the modification you should be able to vote every 24 hours. Do you have 'Keep detailed vote statistics' enabled?