I'm trying to get Drupal to generate/create a new poll at certain times

4 posts / 0 new
Last post
Anonymous (not verified)
I'm trying to get Drupal to generate/create a new poll at certain times

I am trying to get Drupal to generate/create a new binary poll (with the use of the advanced poll module) every time a new subject is posted. I am trying to create a site where people log on and post arguments on different subjects and then anyone, including anonymous users can vote on which side of the argument that they side with. How can I get Drupal to create a new binary poll when a new subject is posted? Please help me please. I am still new to Drupal. I am brand new to this site's forum. This is my first post to this forum. I am thinking that I need to use the Views module, but the problem with that is that I am not good with using the Views module. Any help would be grateful. - Brett Deason

dbdsupvic (not verified)
I am trying to get Drupal to automatically create/generate a new poll for each new subject that is posted so that each subject has its own poll for everyone to vote to - Brett
philipnorton42's picture
Offline
Last seen: 6 hours 59 min ago
Joined: 04/04/2010 - 23:03
I'm pretty sure you'll need to use the hook_nodeapi() hook to do that sort of thing. http://api.drupal.org/api/function/hook_nodeapi Should be a process of creating the poll you want (which would be a node) every time a new node of a particular type is created. In this case, the $op parameter would read 'insert'. It's quite easy to create nodes in Drupal, this page on the Ddrupal forums is quite helpful: http://drupal.org/node/283261
philipnorton42's picture
Offline
Last seen: 6 hours 59 min ago
Joined: 04/04/2010 - 23:03
Another thought might be to use a ratings module, like Fivestar: http://drupalmodules.com/module/fivestar Based on your description you will probably want Vote Up Down, which would give you your binary voting mechanism. http://drupal.org/project/vote_up_down