Users allowed to vote again after 24 hours Users allowed to vote again after 24 hours
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Users allowed to vote again after 24 hours

Started by kehbop, December 04, 2005, 04:52:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kehbop

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!

kehbop

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

I found this in ratepic.php
// 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?

Nibbler

Change it to

$clean_before = $curr_time - 86400;

kehbop

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

If it does! Thanks for the great mod!