Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Allow Multiple Votes  (Read 5056 times)

0 Members and 1 Guest are viewing this topic.

Davis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
[Solved]: Allow Multiple Votes
« on: February 23, 2008, 05:05:14 pm »

Is there a way to setup CPG voting system so that someone can vote for the same picture more than once? Like once each day?  I know now CPG only allows you to vote once (unless you dump cookies)  

Thanks
« Last Edit: February 05, 2010, 07:41:44 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: Allow Multiple Votes
« Reply #1 on: February 23, 2008, 05:38:22 pm »

ratepic.php, find

Code: [Select]
$clean_before = $curr_time - $CONFIG['keep_votes_time'] * 86400;

change to the number of days, eg. for 1 day:

Code: [Select]
$clean_before = $curr_time - 1 * 86400;
Logged

Davis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: Allow Multiple Votes
« Reply #2 on: February 23, 2008, 07:49:24 pm »

Thanks for the reply Nibbler.
Logged

alig8r

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Allow Multiple Votes
« Reply #3 on: February 05, 2010, 12:21:14 am »

Thank you so much for your very prompt response Nibbler  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.