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

Michelle’s picture

Status: Active » Fixed

You 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

JonoB’s picture

Status: Fixed » Closed (fixed)

You can use the core poll module to create a node type and then set that to be allowed in the forum (vocabulary settings).

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

Michelle’s picture

You're welcome. :)

Michelle

dunx’s picture

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

dunx’s picture

Okay, 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.

sashkernel’s picture

Version: 6.x-2.x-dev » 7.x-2.0-rc1

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

JordanMagnuson’s picture

Version: 7.x-2.0-rc1 » 7.x-2.x-dev

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

adanielyan’s picture

Thanks 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

tea2sugars’s picture

Issue summary: View changes

A combination of Michelle, Dunx and JordanMagnuson worked perfectly using Advanced Forum and D7. Thanks guys!