Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 823
  • Last Modified:

Drupal 6 poll

Hello Expert!!

I was wondering, is there any way to reset the poll for non-authenticated users? As the admin I can reset the poll, but when I go and see how it is looking for visitors, the poll still displays the number of votes. Is there anyway I can reset the poll for everyone? I think it has to do with the browser cookies or some sort of IP thing that I need to delete, but I haven't found how can I do this, any ideas?

Thanks in advance,

winter
0
glepiza
Asked:
glepiza
  • 3
1 Solution
 
junipllcCommented:
Hi,

For the Advanced Poll module (not sure if you're using that), the information you need is actually contained in the votingapi_vote table in the database. I can't be absolutely positive that this will work, so back up before you do it, but you can most likely delete all the rows that have:
 - the uid set as 0 (anonymous)
 - content_id is the node id of your poll
 - the content_type is advpoll

It's either that or some variation of it. I just basically looked through the code of the module as well as the database structure and that's what popped out to me.

Good luck, let me (us) know if you need any more help!

Mike
0
 
glepizaAuthor Commented:
HI junipllc!

thanks for your answer, but I am not using Advance Poll module, only the core poll module... should I try your solution on the core module?

thanks :)
0
 
Thomas4019Commented:
Couldn't you just delete the poll and recreate it?
0
 
glepizaAuthor Commented:
Thanks :)
0
 
glepizaAuthor Commented:
oh!, sorry jonipllc!
I did assign you points, but when I click submit it acted like if I was going to delete the question, then I went back, assign points again and it gave all to Thomas...... I put Thomas as the best answer, but I also gave you points for your help... sorry about that.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now