• Resolved troussel

    (@troussel)


    Hello,

    we are testing the contest gallery for a photo contest.

    We have make that each user can only vote 3 times. But when the first user vote 3 time, the next one can not vote, because the plug say that he have no more vote. And it’s on another ip.

    When i look at the ip table, i see that the ip is always 1234 , is there something to config that the plug take the good ip ?

    We are on a private web, so every user is log, i see that the user id are in the ip table, is there a way that the plus look at the user and not at the ip ?

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Wasiliy Strecker / ContestGallery developer

    (@contest-gallery)

    Hi troussel,

    this bug with ip 1234 was in older versions. Please update to actual version 5.12, this bug disappeared.
    You configure “Allow only registered users to vote”. Then its session based and uncheatable. A user have to login and then he can vote.

    Best regards

    Wasiliy

    Thread Starter troussel

    (@troussel)

    I have made the update it fixe the ip=1234.

    But, i have check “Allow only registered users to vote”, and it is always ip based.
    is the “Allow only registered users to vote” activ only with the activation key ?

    And we don’t understand the price because there is two 39 an 99 ??? wich one is the price of the activation key ?

    Plugin Author Wasiliy Strecker / ContestGallery developer

    (@contest-gallery)

    “Allow only registered users to vote” is based on WordPress UserId.
    You can use it without activation key.
    Price is 39.

    Best regards

    Wasiliy

    Plugin Author Wasiliy Strecker / ContestGallery developer

    (@contest-gallery)

    btw: new update was done, please update to actual version

    Thread Starter troussel

    (@troussel)

    Update make, it doesn’t work, i have the same ip, but another user, and it doesn’t work, it say that the user has allready all his vote.

    in code you have this :

    $ip = $_SERVER[‘REMOTE_ADDR’];

    $getRatingPicture = $wpdb->get_var( $wpdb->prepare(

    SELECT COUNT(*) AS NumberOfRows
    FROM $tablenameIP
    WHERE pid = %d and GalleryID = %d and IP = %s
    “,
    $pictureID,$galeryID,$ip
    ) );

    but what is when it is on the wpUserId based ??? This only test the ip.

    And after there is also this test :

    if(@$VotesPerUser!=0 AND @$VotesPerUser!=”){
    $countVotesOfUserPerGallery = $wpdb->get_var( $wpdb->prepare(

    SELECT COUNT(*) AS NumberOfRows
    FROM $tablenameIP
    WHERE GalleryID = %d and IP = %s
    “,
    $galeryID,$ip
    ) );
    }

    Here also there is only the ip on test. Perhaps you must also test the check on only registered user to make the test on wpUserId when it is check like you make with the “5 stern Prüfung” or “1 stern Prüfung”.

    Plugin Author Wasiliy Strecker / ContestGallery developer

    (@contest-gallery)

    Thank you for contacting me.
    It is resolved in 5.12.1.

    Best regards

    Wasiliy

    Plugin Author Wasiliy Strecker / ContestGallery developer

    (@contest-gallery)

    resolved

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘IP = 1234’ is closed to new replies.