Need to alter rating system Need to alter rating system
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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?