Vote by anonymous user
You need to be logged in to post messages in the forums. New users may register here.
Joanna Grzegorczyk
Member since: 18 December 2008
Posts: 3
|
Friday 09 January 2009 5:31:36 am
I wanted that anonymous user can vote. Because anonymous user has always the same ID, so every answer overwrites the previous one. I removed line #135 from ezsurveyresult.php file (return $surveyResult;) and now it's seems to work fine. Am I right or can it couse some problems?
|
|
Bjørn Reiten
Member since: 22 February 2008
Posts: 35
|
Friday 09 January 2009 5:40:33 am
When you edit a survey, you can also set that "Persistent user input." should not be checked. Then other users will not be able to edit their previous answers .. and this is maybe something you want?
|
|
Joanna Grzegorczyk
Member since: 18 December 2008
Posts: 3
|
Friday 09 January 2009 6:15:14 am
I tried this, but in this case new answers weren't collected at all (just first answer set by anonymous user was insert into database).
|
|
Bjørn Reiten
Member since: 22 February 2008
Posts: 35
|
Friday 09 January 2009 6:28:27 am
This should be correct when the option is checked.
If the option are not checked, all answers should be collected (also from anonymous users). I have used that in several projects. So, adding a new survey with default options should be fine and collect information as far I've seen.
Removing your line will cause other problems in other situations I believe.
|
|
Joanna Grzegorczyk
Member since: 18 December 2008
Posts: 3
|
Friday 09 January 2009 6:36:42 am
Thank you for your help.
|
|
You need to be logged in to post messages in the forums. New users may register here.