How can I see the vote results?
martintenhove - March 3, 2009 - 10:13
| Project: | Advanced Poll |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
Maybe a stupid question, but I have a poll and the visitors of my website can only see the results when I close the poll. But how can I check the results myself? I can not find it anywhere.
Grtz,
Martin

#1
same issue here - i think it may be a bug :( - when i reverted back to the core poll - i can see the results tab etc.
#2
I found a possible workaround.
Go to Admin->Menu->Navigation and enable 'Advanced Poll'.
This link will give the poll results.
UPDATE: I just looked in the code - it has no special result access for admin users. So showing results just depends on what your poll settings are.
UPDATE: Looks like there is a bug in _advpoll_results_access() - I haven't had a chance to look further, so did a quick hack and added an admin fix.:
function _advpoll_results_access($node) {
// return strstr($node->type, 'advpoll_') && _advpoll_is_active($node) && !$node->voted && _advpoll_can_view_results($node);
return strstr($node->type, 'advpoll_') && _advpoll_can_view_results($node); <<<<<<<<
}
function _advpoll_can_view_results($node) {
$view_results = variable_get('advpoll_view_results_'. $node->type, ADVPOLL_VIEW_RESULTS);
return (!_advpoll_is_active($node) // Node is closed
|| ($node->voted && $view_results == 'aftervote') // User voted
|| ($view_results == 'always') // All can view
|| user_access('administer polls')); //ALLOW ADMIN <<<<<<<<<
}
#3
I'm seeing the same behaviour. It's very strange.
@nextpulse: I'd like anonymous users to be able to see the poll once they vote on it, this appears to be a bug in the basic behaviour of the poll
#4
Yes, results page is gone
#5
+1 and subscribing...
#6
+2 and subscribing...
#7
same here
#8
My patch here should magically allow the Results tab to be displayed when viewing an advanced poll node: #546518: Results tab not displayed
#9
Others who've commented here - please check if my patch (link above) fixes this issue.