This chapter has presented a working solution for handling multiple dynamic polls on your web site. The complete polls module is made up of an administration console for managing the polls through a web browser, integration with the membership system to secure the administration and archive pages, and a user control that enables us to show different polls on any page using only a couple of lines of code. This module can easily be employed in many real-world sites as it is now, but of course you can expand and enhance it as desired. Here are a few suggestions:
Add the capability to remind users which option they voted for. Currently they can see the results, but the control does not indicate how they voted; the vote is stored in a cookie, which is easy to retrieve.
Add a ReleaseDate and ExpireDate to the polls, so that you can schedule the current poll to change automatically. We do this type of thing with the articles module.
Provide the option to allow only registered users to vote.
In the next chapter you're going to continue the development of the TheBeerHouse site through the addition of another module that integrates with the rest of the site's architecture. This new module will be used for creating and sending out newsletters to users who subscribed to the newsletter at registration time.