Closed (duplicate)
Project:
Advanced Poll
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2009 at 10:13 UTC
Updated:
6 Jun 2010 at 20:52 UTC
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
Comments
Comment #1
nextpulse commentedsame issue here - i think it may be a bug :( - when i reverted back to the core poll - i can see the results tab etc.
Comment #2
nextpulse commentedI 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 <<<<<<<<<
}
Comment #3
Renee S commentedI'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
Comment #4
mcload commentedYes, results page is gone
Comment #5
ellanylea commented+1 and subscribing...
Comment #6
pavlos.g commented+2 and subscribing...
Comment #7
wdrupal100 commentedsame here
Comment #8
burningdog commentedMy patch here should magically allow the Results tab to be displayed when viewing an advanced poll node: #546518: Results tab not displayed
Comment #9
burningdog commentedOthers who've commented here - please check if my patch (link above) fixes this issue.
Comment #10
miro_dietikerMarking this duplicate of the referred issue from Roger with much more activity.