How it is possible to solve this problem?

Comments

vm’s picture

IT may be difficult to do so with the way that Drupal (as well as other programs) handle anonymous users. The problem is that anon users are all one UID (User ID) thus all guests get lumped together under that UID. There is no distinction between anon users.

I don't specfically run into this as anon voting is disallowed on all sites I create. Users must register to vote, so that the voting remains as true as possible and 1 anon user can't register 1000 votes.

lexa74’s picture

To me fidelity of voting, the main thing is not important that users could vote. What to change in a code that so has earned?

vm’s picture

edit view this thread http://drupal.org/node/101639 it may help solve your problem.

lexa74’s picture

I have not understood there what of changes it is necessary to bring in the module...

vm’s picture

It may be best to wait until later tonight or tomorrow to download the changes made to the module. The changes Chris added today will be rolled into the module at the next time the modules are rolled.

You could manually patch the advanced poll module by fixing the code as layed out in the first post of the thread I linked. If this makes you uncomfortable, Then the only option is to wait for the module to be rerolled with the changes.

lexa74’s picture

Changes for version 4.7 are necessary to me. But all last changes go for version 5 :(

vm’s picture

incorrect, chris kennedy states in his last post in linked thread that he went and updated 4.7 as well. I added his post here for convience.

#7 submitted by ChrisKennedy on December 28, 2006 - 12:35
Status: active » fixed

Okay I went ahead and fixed this for the 4.7 version.

you could also try visiting the cvs side and looking for the changes chris made to the advanced poll module and incorporate those changes into your live file, if waiting until the next rolling of modules is not an option for you.

the cvs files are here: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/advpoll/?only... and the module file itself was updated a little more than an hour ago.
here is the actual updated code http://cvs.drupal.org/viewcvs/drupal/contributions/modules/advpoll/advpo... that you can use to view the changes or cut and paste the code into your live mdoule file, or download the file and overwrite the live file on your site.

lexa74’s picture

Thanks, now I shall try as works..

It is possible still a question? How to make that the user could vote more than once?

vm’s picture

yes. multiple voting is allowed with the advancedpoll.module

once the module is installed and enabled.

choose 'create content'
choose 'advpoll-binary'
create 'poll question' and 'description'.
select the amount of 'poll choices' and fill in selections.
the next drop down menu 'Poll settings'
find: 'Maximum Choices': and set this
submit form.

lexa74’s picture

Thank you for the answer, but actually I asked how I can solve another problem. My question was:

Is it possible to make so that one user could vote several times from the same IP-address? The ideal variant is to make a timer, that it would be possible for users to vote from one IP-address (for example, several office workers from one office-computer = one IP address) in an hour-period. For example, one user votes at 11am, next user votes at 12am from the same IP-address, next user votes at 1pm from the same IP-address, next user votes at 2pm from the same IP- address etc. If it is possible, could you please teach me how I can do it?
Thank you in advance

vm’s picture

if those users have registered accounts their IP addresses wouldnt matter. however something tells me you want anonymous users from one IP address to be able to vote.

the problem you may have here, is that user one, votes (anon) user two from same IP comes to vote, and in essence changes the votes of user 1.

searching the forum, or searching the feature request, support request, bug report pages of the module on the respective modules project page may proove fruitful. I do not have a step by step to rewrite the module to accept more then one anonymous vote from the same IP address no.

lexa74’s picture

If we shall add somehow to IP the user date of voting, whether that to turn out then voting of times in day?

ex: "10.0.0.1-01.01.2007"

lexa74’s picture

Iа I make not simple IP-identification, but IP+date identification of user, will it be a day-survey (will the period of survey will be 24 hours?)