WordPress.org

Ready to get started?Download WordPress

Forums

Allow multiple voting with Vote It Up (4 posts)

  1. tydende
    Member
    Posted 3 years ago #

    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!

  2. patriktg
    Member
    Posted 3 years ago #

    I would also like to know that.
    Did you find anything?

  3. dvbii
    Member
    Posted 3 years ago #

    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

  4. dvbii
    Member
    Posted 3 years ago #

    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()))");

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags