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.
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?
No. I think it clashes with other plugin.
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…
Sorry that is not possible.
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..
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 );
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..
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.
Still not solved it. User can poll again, just by refreshing the same page, when i chose ‘Poll Logging Method: Logged by username’.
Can you check to see if the wp_pollsip table is even there in your database?
Of course, it exists. But it is always empty. Downloaded and Installed 4.4 version and plugin also. Still no hope 🙁
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?
@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