WordPress.org

Support

Support » Plugins and Hacks » WP-PostRatings » [Resolved] how to limit the user vote only once?

[Resolved] how to limit the user vote only once?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Having the same issue. I am trying to use the ‘logged by username’ logging method, and only registered users are allowed to vote.

    Issue: users are able to vote again when the page is refreshed.

    The solution posted here doesn’t seem to work for me, the issue persists.

    If I switch to ‘logged by cookie’, things work as expected, but that’s not a reliable method.

    Latest WP version, tested in the current versions of FF and Chrome.

    Also, shouldn’t users be allowed to change/update their vote?

    When this function performs correctly, if I cast a vote, I can’t change my mind later on (can’t vote more than once). Updating your vote shouldn’t count as a separate vote, I would suppose.

    i already complete it, contact me for me details

    johnnybang, there is no way of contacting you through here on wordpress.org. Please do provide details, thanks in advance.

    WPyogi

    @wpyogi

    Forum Moderator

    @johnnybang – please keep help on these forums – http://codex.wordpress.org/Forum_Welcome#Helping_Out

    i am busy today. i will post here the custom code i added tonight when i come back home

    can anybody tell me the solution for same issue…. pls help me….

    i got the solution ..

    Turns out, it’s just a misplaced/mistyped variable in the check_rated_username function in wp-postratings.php file. Simply replace $rating_userid with $user_ID at the end of the line beginning with “$get_rated =…”.

    on line 315…

    yipeeeeeee

    still not working for me …

    $get_rated = $wpdb->get_var( $wpdb->prepare( “SELECT rating_userid FROM $wpdb->ratings WHERE rating_postid = %d AND rating_userid = %d”, $post_id, $user_ID) );

    Not working for me either.

    v1.74 has fixed the issue for me. Thanks, developer.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] how to limit the user vote only once?’ is closed to new replies.
Skip to toolbar