Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it even possible to insert a poll into a forum topic?
I've seen some references to it...but nothing that actually explains or shows how its done.
Comments
Comment #1
MichelleYou can use the core poll module to create a node type and then set that to be allowed in the forum (vocabulary settings). Or you can use the pollfield module to add a poll field to the forum topic node type. There's also advanced poll but I haven't looked at it in months and have no idea if they ever got it working in D6.
Michelle
Comment #2
JonoB CreditAttribution: JonoB commentedThis worked fine, thanks!
In advanced forum settings, I also set "Node types to style: " to Poll as well.
Nice work on AF, Michelle, thank you!
Comment #3
MichelleYou're welcome. :)
Michelle
Comment #4
dunx CreditAttribution: dunx commentedFor the hard of understanding (like me)...
Admin > content > taxonomy
On forums : Edit vocabulary
Under contents types : select polls (as well as forum)
So now you can create a poll under your forum taxonomy (i.e. a specific forum container) that sits in the list of forum posts. However, you can't do it from within the forum; there's no "create poll" button in the forum, so you have to click create poll on the menu. The poll also looks nothing like it belongs in the forum as far as theming is concerned - which is mention elsewhere I appreciate.
So, that's how you do it, but the result isn't very pleasing. I think I'll look for another solution.
Perhaps http://drupal.org/project/pollfield and will report back.
Comment #5
dunx CreditAttribution: dunx commentedOkay, pollfield is a still bit buggy, but provides the functionality I'd expect from a forum poll question. Closer to phpBB, which is where I'm coming from.
Comment #6
sashkernel CreditAttribution: sashkernel commentedDid anyone got this to work with Drupal 7 and AF 2.0-RC1?
I've tried to follow #4, but get thrown off track at editing vocabulary.
Comment #7
JordanMagnuson CreditAttribution: JordanMagnuson commentedIf anyone is looking to do this in future, in D7, there are two steps:
1. At admin/config/content/advanced-forum add "poll" in "node types to style" select list.
2. Edit the actual poll content type, and add the existing field "term reference: taxonomy_forums" to the poll content type. This will allow you to select a forum to place the poll in when you create the poll (just like when you create a forum topic).
Hope that helps.
Comment #8
adanielyan CreditAttribution: adanielyan commentedThanks for tips, Jordan.
You may also need to add the Poll content type to your View's filter:
Views->Advanced Forum topic list->Filter Criteria-> Content Type
Comment #9
tea2sugars CreditAttribution: tea2sugars commentedA combination of Michelle, Dunx and JordanMagnuson worked perfectly using Advanced Forum and D7. Thanks guys!