Implement a Voting
for this HowTo we use the observer Design and the existing code from Implement a CMS from scratch?.
First you have to create a new voting in the administration:
There are two different kinds of voting:
- The selection voting where you select out of a given option set (see picture)
- The mark voting - where you rate from 1-5 (used for things like page/picture voting)
The revote time is the time until a person (identified by ip and/or user) can vote again. If you enter -1 then every user can vote exactly one time. Valid values are 2h (one vote every two hours) 1d (once a day) and so on.
Attachments
- voting1.png (2.4 kB) - added by niko 5 years ago.

