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
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

nextpulse - March 5, 2009 - 02:09

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

nextpulse - March 5, 2009 - 21:46

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

renee - May 1, 2009 - 19:25

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

mcload - May 3, 2009 - 16:41

Yes, results page is gone

#5

AdAstra - May 26, 2009 - 20:24

+1 and subscribing...

#6

pavlos.g - June 6, 2009 - 11:28

+2 and subscribing...

#7

waynef100 - June 16, 2009 - 21:05

same here

#8

Roger Saner - November 4, 2009 - 17:31

My patch here should magically allow the Results tab to be displayed when viewing an advanced poll node: #546518: Results tab not displayed

#9

Roger Saner - November 11, 2009 - 15:55
Status:active» needs review

Others who've commented here - please check if my patch (link above) fixes this issue.

 
 

Drupal is a registered trademark of Dries Buytaert.