WordPress.org

Support

Support » Plugins and Hacks » WP-ratings: Can you make it so visitors can vote once every day?

WP-ratings: Can you make it so visitors can vote once every day?

  • Is there any way of allowing
    the voting system to let visitors vote every day? Right now I’m logging their ip addresses.

    Thanks for any help you can give.

Viewing 1 replies (of 1 total)
  • You can logged it via cookie and then in postratings.php,

    Find:
    $rate_cookie = setcookie("rated_".$post_id, 1, time() + 30000000, COOKIEPATH);
    Replace:
    $rate_cookie = setcookie("rated_".$post_id, 1, time() + 86400, COOKIEPATH);

    This will make the cookie expire after 24 hours.

Viewing 1 replies (of 1 total)
  • The topic ‘WP-ratings: Can you make it so visitors can vote once every day?’ is closed to new replies.
Skip to toolbar