- Issue created by @dan.mantyla
To check if a voter has already voted on the poll, one option is to use cookies. However this was not working for me at all. I discovered that the cookie that was getting saved was just the NID but it was looking for a cookie called "advpoll"+NID. So I had to add this to line 337 of includes/advpoll_voteapi.php
<?php
if($vote['nodetype'] == '') {
$vote['nodetype'] = 'advpoll';
}
?>
I guess, just try making a poll that checkes for cookies intead of the using the voter api. Then fill out and submit the poll, and return to the poll and see if its showing you the pull again or if its correctly saying "you've already submitted this poll".
line 337 of includes/advpoll_voteapi.php:
<?php
if($vote['nodetype'] == '') {
$vote['nodetype'] = 'advpoll';
}
?>
?
none
none
?
Active
3.0
Code