This contribution places a infobox in either the left or right column of your site inviting visitors to enter a prize draw competition.
When visitors click on the invite they are taken to the prize draw page.
They then simply enter their name and email address to enter. Their entry is checked, so that they cannot enter more than once.
If like me, you want the prize draw to encourage visitors to look around your site, you have an option to display a qualifing question.
The question is multiple choice, and I base the question on a product sold on my site, so the visitor has to look around the site to find the answer.
The prize draw is configurable in Admin so that it can be offered to logged in customers, guests, or both.
There is a new report, in order to view how many people have entered the prize draw.
This is my first contribution, so please go easy on me. I am sure that you can improve things, especially the selection of the product in the Admin page.
To see this is action, please visit our site at http://www.theuniquegiftemporium.co.uk
Legend: 
Download

Report
This contribution is for anyone who can't get the automated database update to work, like me.
These scripts are for installing this from scratch, if your updating then this isn't the code your looking for.
Plain Text File inside the ZIP.
This packages fixes a minor bug found with the checking of a duplicate prize draw entry. This package only contains the updated competition.php.
This version contains major changes to the Admin section, `stat_priz_draw.php`.
Added the following new functionality:
- Ability to exclude individual entries. This allows you exclude entries from being eligable for being picked as a winner.
- Ability to delete individual entries from a competition. Useful for removing those test entries.
- Abilty to add customers who have completed orders within the competition period to the competition.
- Ability to pick a random winner.
- Criteria a combination of valid entries (e.g. they got the qualifing question correct) and included (e.g. not excluded by you manually using the above new feature)
- Can re-select a winner. Useful if you don't want the selected entry to be the winner. (not exactly fair, but it's your competition!)
- Ability to email the winner upon selection.
- Ability to delete all entries for a specific competition.
- Ability to create a new competition. Drop down box to pick the prize from your product catalog, plus enter dates and qualification question/answer. All this does is update the configuration options, but makes it a bit simipler.
- plus a minor bug fix to the competition.php
This fixes a reference to my custom box class in the /boxes/competition.php which I forgot to change back to the standard osc box class before I uploaded the contribution.
This is the full package.
This contribution places a infobox in either the left or right column of your site inviting visitors to enter a prize draw competition.
When visitors click on the invite they are taken to the prize draw page.
They then simply enter their name and email address to enter. Their entry is checked, so that they cannot enter more than once.
If like me, you want the prize draw to encourage visitors to look around your site, you have an option to display a qualifing question.
The question is multiple choice, and I base the question on a product sold on my site, so the visitor has to look around the site to find the answer.
The prize draw is configurable in Admin so that it can be offered to logged in customers, guests, or both.
There is a new report, in order to view how many people have entered the prize draw.
This is my first contribution, so please go easy on me. I am sure that you can improve things, especially the selection of the product in the Admin page.
To see this is action, please visit our site at http://www.theuniquegiftemporium.co.uk