WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mikejmu
    Member
    Posted 7 years ago #

    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.

  2. Lester Chan
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags