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: Users allowed to vote again after 24 hours  (Read 4089 times)

0 Members and 1 Guest are viewing this topic.

kehbop

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Users allowed to vote again after 24 hours
« on: December 04, 2005, 04:52:01 am »

I want users to be allowed to vote again (and again and again) every 24 hours.

Is this possible? If it is, it would be a great mod!
Logged

kehbop

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Users allowed to vote again after 24 hours
« Reply #1 on: December 14, 2005, 04:05:15 pm »

I don't know why know want to answer....

I found this in ratepic.php
Code: [Select]
// Clean votes older votes
$curr_time = time();
$clean_before = $curr_time - $CONFIG['keep_votes_time'] * 86400;
$sql = "DELETE " . "FROM {$CONFIG['TABLE_VOTES']} " . "WHERE vote_time < $clean_before";
$result = db_query($sql);

What does this do? Gives you the a chance to vote every 24 hours perhaps?
Logged

Nibbler

  • Guest
Re: Users allowed to vote again after 24 hours
« Reply #2 on: December 14, 2005, 04:17:30 pm »

Change it to

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

kehbop

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Users allowed to vote again after 24 hours
« Reply #3 on: December 14, 2005, 08:57:55 pm »

Just making sure, that would allow votes every 24 hours, correct?

If it does! Thanks for the great mod!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.