Support » Plugins » Allow multiple voting with Vote It Up

  • tydende

    (@tydende)


    Hi,

    I’m using the Vote it Up plugin and I would like to allow users to vote as many times for a post as they would like.

    The plugin currently allows someone to vote for a post once, and then it blocks voting for that post again.

    Does anyone know how to remove this function so that people can vote for a post unlimited times?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would also like to know that.
    Did you find anything?

    I would like to know how to make it possible for a user to vote once a day. Is it possible to create timer that counts down until you may vote again?

    Thanks in advance.

    Dvbii

    OK, i figured it out…I didn’t want to do 24 hours, i wanted once a day, so..

    in ‘votingfunctions.php’, within the function UserVoted($post_ID, $user_ID) {
    replace:

    $id_raw = $wpdb->get_var("SELECT ID FROM ".$voteiu_databasetable." WHERE vote='".$u_ID."' AND post='".$p_ID."'");

    with:

    $id_raw = $wpdb->get_var("SELECT ID FROM ".$voteiu_databasetable." WHERE vote='".$u_ID."' AND post='".$p_ID."' AND (DAY( rating_timestamp ) = DAY(now()))");

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allow multiple voting with Vote It Up’ is closed to new replies.