By ambientdrup on
I have a poll on the home page of the site as the Most Recent Poll block. I'd like to hide the poll automatically as soon as a person votes on it. I don't want to show the results to the user of the site - we're using the poll as more of a feedback type of question so we don't need to show the results. The poll results just take up space in our right sidebar - we'd like to reclaim that space once they click on the poll answer, if they choose to do so.
Do I need the Advanced Poll module for this or does this require custom programming?
Thanks in advance.
-backdrifting
Comments
It looks like that may take
It looks like that may take some custom coding to the advanced poll module. A new setting would need to be added that would allow you to select "Never show results to users".
Right now the options are:
Display results:
Always
After user has voted
After voting has closed
That probably would not be a big modification. I would recommend that if you do get that done (or do it) submit a patch. Its a great idea I think. Very useful.
Regards, Derek
http://collectivecolors.com
Thanks ... good idea
Ok, perfect. Thanks for the suggestion. Let me play with this. I'll see if I can code it up when I have some time and submit it back as a patch. I agree - I think we need this option in the code.
-backdrifting
Advanced poll
In other words, use Advanced poll module: http://drupal.org/project/advpoll
--
www.jazzit.hr
--
www.jazzit.hr
We use advanced poll and it
We use advanced poll and it has no setting to NEVER SHOW THE RESULTS TO USERS. Thats the one they are looking for. If it has that then I need to get the update as ours does not.
Derek
http://collectivecolors.com
Just a thought
Why not using the currently available option "After the voting has closed" and make the closing date way in the future? That will get you some of the way there. You also may be able to not display the block in sme circumstances (ie after vote received) with very little coding.
www.ZuNOB.com
Thanks
Yeah, this might work too. I like the idea of writing a patch to do it, but I'll play with the Advanced Poll module too.
Thanks!
-backdrifting
Display results options not showing up?
I'm trying to get this to work now but I don't see the display results options in the Advanced Poll module. I've installed the module but in the Poll settings I don't see these display results options.
Where are they?
-backdrifting
Issues with advanced poll module ...
Well, this is interesting. I found the result management settings - they are in the binary poll content type. So I set the close date well in advance and then disallowed results from view until the poll closes. However now the issue is that I have the poll as a Latest Poll block on the home page - when the poll is voted on, the poll disappears and then the poll title is left on the home page and a link to "Older Polls" is shown. This seems a bit clunky. This definitely needs some patch work.
Any suggestions for removing the poll title and that link as well when the person submits their poll?
-backdrifting
Hello, at our site we are
Hello, at our site we are trying to do more or less the same: hiding the result when the poll closes.
I found very useful the module "rules". I defined a rule that redirects the user to a "sorry poll closed" page if the poll has expired and user doesn't have the "admin" role.
If you are interested I can export the rule and post it here.
However I am experiencing the same problem: poll title remains in the list. I tried to change the rule to unpublish expired polls. It works, but for some reason unpublishing the poll also deletes the answers. Dunno if this is a problem of my configuration or a bug.
I'm trying to obtain the same result using the "views" module, but no luck so far.
-- kalbun
remove it with a theme override
I needed to do the same sort of thing, but just with the standard poll module. You can override the theme for poll-results to simply display nothing.
In my case I made an empty file called poll-results-block.tpl.php in my theme directory, the results will never show in the block but are still visible by going directly to the poll node.
A nice addition to the poll module might be another set of permissions to configure who can view poll results.