Advanced search  

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

Pages: [1]   Go Down

Author Topic: Need to alter rating system  (Read 2426 times)

0 Members and 1 Guest are viewing this topic.

alig8r

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Need to alter rating system
« on: January 23, 2011, 04:58:34 am »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Need to alter rating system
« Reply #1 on: January 24, 2011, 11:25:01 am »

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.
Logged

alig8r

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Need to alter rating system
« Reply #3 on: January 25, 2011, 04:39:05 pm »

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

alig8r

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Need to alter rating system
« Reply #4 on: March 01, 2011, 01:53:53 am »

This did not work.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Need to alter rating system
« Reply #5 on: March 01, 2011, 08:40:32 am »

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?
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 21 queries.