• Resolved nareshgpai

    (@nareshgpai)


    Hi,
    Created a new poll for my blog post. Works fine. I selected the Logging Method, ‘Poll Logging Method: Logged by username’. I think this means the same user cannot poll for the same post more than once. But users can poll again and again after refreshing the same page. Please find me a solution.

    Thanks.

    https://wordpress.org/plugins/wp-polls/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter nareshgpai

    (@nareshgpai)

    Hi,

    Also i found an error as i’m not getting any logs regarding the polls. But I’m getting the vote count correctly when I edit the poll.

    Following is the message when I hit ‘logs’ link.

    There are a total of 0 recorded votes for this poll.
    » 0 votes are cast by registered users
    » 0 votes are cast by comment authors
    » 0 votes are cast by guests

    This mentioned poll has got 8 votes.

    Thanks.

    Plugin Author Lester Chan

    (@gamerz)

    Hmm, I can’t reproduce this problem on my end. I rated a poll and it went into the poll logs.

    Are you using any caching plugin?

    Thread Starter nareshgpai

    (@nareshgpai)

    No. I think it clashes with other plugin.

    Thread Starter nareshgpai

    (@nareshgpai)

    Hi,

    I need a little support here. How can I know whether a particular poll is active for a user. I will explain in detail.

    I added shortcodes in my blog posts, where user can read my blogs and poll. I’m planning to display my blog title and status of poll (whether poll is active or not). So user can quickly vote according to poll status by clicking blog link.

    **************************
    Title Poll-Active

    Blog-1 Yes
    Blog-2 Yes
    Blog-3 No
    *************************

    So is there a way to know the poll status of each post for a user.

    Thanks…

    Plugin Author Lester Chan

    (@gamerz)

    Sorry that is not possible.

    Thread Starter nareshgpai

    (@nareshgpai)

    There must be a status corresponding for each user whether he/she has polled or not for a particular poll id. I cant find it on database table.

    Can you give some idea about this..

    Plugin Author Lester Chan

    (@gamerz)

    Oh that is what you mean by status.

    There is https://github.com/lesterchan/wp-polls/blob/master/wp-polls.php#L388

    check_voted_username( $poll_id );

    Thread Starter nareshgpai

    (@nareshgpai)

    I presume it will return username id. Also in database table ‘wp_pollsip’ table is empty when a user polls. This is why i’m not getting log results which I have mentioned earlier. I tried it in an earlier wordpress version WordPress 4.3.1, which works like a charm. This functionality is not working in WordPress 4.4.. Can you please check on 4.4.

    Thanks..

    Plugin Author Lester Chan

    (@gamerz)

    I am using WP 4.4 and I tested it, it works fine on my end. That is the reason why I say I can’t reproduce the problem. I tried on two installations not just one. Also you are the first to mentioned about this issue few weeks after WP 4.4. So you might be the only one so far.

    Thread Starter nareshgpai

    (@nareshgpai)

    Still not solved it. User can poll again, just by refreshing the same page, when i chose ‘Poll Logging Method: Logged by username’.

    Plugin Author Lester Chan

    (@gamerz)

    Can you check to see if the wp_pollsip table is even there in your database?

    Thread Starter nareshgpai

    (@nareshgpai)

    Of course, it exists. But it is always empty. Downloaded and Installed 4.4 version and plugin also. Still no hope 🙁

    Plugin Author Lester Chan

    (@gamerz)

    Sorry man I run out of ideas. Probably the next thing you can try is to step through the code and put in var_dump() and see where it breaks.

    Hi Author,

    Does Loggin by username means the registered user can only vote once?

    jamatrucola

    (@jamatrucola)

    @nareshgpai By any chance are you hosting your WordPress site locally on your network (not hosted on the Internet) and do your users access it from your local network using private IP addresses? If so, I think you may be experiencing the same issue I am, described in this thread:
    https://wordpress.org/support/topic/1-vote-per-user

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Registered users polls multiple times.’ is closed to new replies.