Made to Order Software Corporation Logo

MO Poll: Main Page

1.5

Summary

Introduction to the MO Poll module
Requirements
Installation
Security with this module.
Errors generated by this module.
Changes between versions
Copyright (c) 2009-2011 Made to Order Software Corp.

Introduction to the MO Poll module

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.

  • Nodes

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.

  • Taxonomy terms

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.

Back to Summary

Requirements

MO Poll has the following module dependencies:

  • Taxonomy
  • Poll

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.

Back to Summary

Installation

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.

Back to Summary

Security with this module.

There are no known security issues with this module. The polls are shown as they would be by the Drupal Poll module.

Back to Summary

Errors generated by this module.

This module does not generate any errors. The settings are very limited and no validation is required.

Back to Summary

Changes between versions

  • Version 1.2

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.

  • Version 1.1

Fixed the Save function.

Fixed the SQL random function.

Fixed to properly support taxonomy terms.

Copyright (c) 2009-2011 Made to Order Software Corp.

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.

Back to Summary
Documentation generated by Doxygen on Sat Mar 12 16:05:35 2011