Ok, we have a fully functional online community...but want to add some voting capabilities. We need;
1. Currently we have a 'members' page which displays profile pics and names of all members. Under each name I want a form with two buttons. On selecting
the first button, a field in the users table (probably user_votes) for that particular user, would increment positively [+1]. On selecting the second button
it would increment negatively [-1]. A user can vote as many times as they want. Of course a user can't vote for themselves
2. Several polls, they can be copies of each other, they will be put on a 'polls' page.
All users can vote at most once for each poll, and they can select one of a small number of options as their vote selection. Once they have voted, they can change their vote at any time
- until the poll is reset at which point the voting is reset to zero for everyone. A vertical bar chart displays the results of the poll to all users.
The twist is that the option choices and the subject of the poll are themselves chosen by a user....this user being the person who is currently ranked number
one in the user_votes described in part 1 above. If there are three polls, then the top three users by user_votes will be chosen to decide on the their poll's
options, its subject, and time-to-run.
Thus, initially, a certain user [an administrator] will be selected and when that user accessses the polls page, they will be presented with let's say three forms.
In each form, he inserts a text value for SUBJECT, a list [upto a maximum of x] OPTIONS and finally TIME-TO-RUN as a number of days upto max of 2 weeks.
Then, all other users on the site when they visit the polls page will be presented with the three polls as defined by the administrator. When a particular
poll ends, then automatically the user who is the current no.1 in user_votes will - when logging on to the polls page - be presented with a form to complete.
Once they have completed this form, their poll is once again active and others can vote on it.
Me and a friend developed this site ourselves, but we are busy now and can't be bothered to do this. I know how much work this involves, it only requires PHP and can
be done in a few hours easily. We need well commented code which fits into our current php pages which we will send you copies of so that you know what
the basic structure is. We will also give you the tables and fields that make up our database structure so you will have all the SQL field names you need.
We want the final code so that we can add it to the relevant pages, "members" and "polls" and they should work automatically once the MYSQL database has had
the relevant fields that you define added....