The MO Poll module was created to allow you to present a poll in link with the current node instead of the very last poll.
When no matches are found (i.e. unknown type of page or no matching poll for that page) the module can be setup to display the most recent or a random poll among all the still open polls.
At this time, the module reacts to nodes and taxonomy terms.
When you navigate to a node (node/#) that has a taxonomy attached to it and you have a poll that includes the same term or terms, then that poll is chosen. If multiple polls match, then the most recent is used.
Note that using URL aliases does not prevent this module from working.
Obviously, you will need to have the same taxonomy on the nodes and the polls that you want linked together.
Similarly, when you navigate to a taxonomy term (taxonomy/term/#) then the poll that has that term associated with it is chosen in the MO Poll block.
MO Poll has the following module dependencies:
It is also required that you create at least one Taxonomy and that you assign the Poll and other nodes to that taxonomy. Then you want to select common terms in Polls and the other Nodes to make the polls appear along those nodes.
Install MO Poll the same way as other modules: Go to your sites/all/modules folder and extract the tarball.
Then in your Drupal website, go to admin/build/modules and enable the MO Poll module. This generates a new block that you can add to your website.
You probably want to configure the block default settings in case the page being visited is neither a node nor a taxonomy term. In that case the block can react by showing a random poll, the most recent poll or nothing at all.
There are no known security issues with this module. The polls are shown as they would be by the Drupal Poll module.
This module does not generate any errors. The settings are very limited and no validation is required.
Fixed the enable function so the SQL command uses curvely brackets.
Changed the weight from 5 to 1 which is sufficient.
Added module load calls to make sure that a throtled poll module is always loaded when used.
Fixed the Save function.
Fixed the SQL random function.
Fixed to properly support taxonomy terms.
http://www.m2osw.com/mo_poll contact@m2osw.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.