Support » Plugin: Comments - wpDiscuz » Voting for guests doesn’t work

  • Resolved Torsten

    (@knodderdachs)


    Hi!

    I’d like to enable comment voting for guests and enabled that feature in the options. But every time I click on the up or down icon, to test wheter it works, I only get the response that only one vote is allowed. But I never voted before. This happens when using an incognito tab and another ip (by using a vpn) and even when trying it from my mobile phone using cellular network.

    How does the checking work technically? I have to tell you, that I let all IP adresses from my commenters change to 127.0.0.1 in the functions.php to save less information about my users. Could that be the reason for the malfunction?

    All the best
    Torsten

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    Hi Torsten,

    the function detects you, and it doesn’t matter you’re guest or not. It detects your IP address and doesn’t allow to vote for your comment, you should only vote for other user and guest comments.

    Try vote other comments (not your comments).

    I have to tell you, that I let all IP adresses from my commenters change to 127.0.0.1 in the functions.php to save less information about my users. Could that be the reason for the malfunction?

    I’d recommend you comment out the custom code in functions.php file and check again to make sure the code you’re using doesn’t have any conflicts with wpForo functions.
    Please don’t forget to delete all caches before checking.

    Thread Starter Torsten

    (@knodderdachs)

    Hi,

    if I comment out the code in functions.php it seems to work. But I don’t want the user’s IP stored in the database. Is there any way to have both? I think, you probably retrieve the user’s IP by REMOTE_ADDR or something like that? So it shouldn’t interfere with not storing the IP in the database. At least you seem to store only hashes in your own database tables.

    All the best
    Torsten

    Plugin Support gVectors Support

    (@gvectorssupport)

    Hi Torsten,

    You should remove the hashed IPs from the wp_wc_users_voted table. Please don’t touch the user_ids.

    Please note: the wp_ is just a prefix in your case it can differ.

    Thread Starter Torsten

    (@knodderdachs)

    Hi,

    I changed the anonymizing of the IP addresses in my functions.php from static 127.0.0.1 to a salted and hashed IP address. Seems to do the job without any problems so far.

    All the best
    Torsten

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Voting for guests doesn’t work’ is closed to new replies.