Jump to content

Field set up for voting


Recommended Posts

I'd be grateful if people could offer some advice on the best set up to allow users to vote for their favourite page. Registered users will be able to choose a 1st, 2nd, 3rd and 4th place page. Once voting is closed, the page with the most 1st place votes will be the winner, followed by the most 2nd place votes and so on.

I did think of adding some fields to the user template, e.g. 1st_place_page, 2nd_place_page, 3rd_place_page, 4th_place_page. These would hold the ID of the page that they voted for. Then I could loop through all the users and calculate the totals. The issue is that there are lots of different categories to vote on, so that would mean adding 1st, 2nd, 3rd, 4th place fields for each category to the user template. Is there a better way of doing this that anyone can suggest? Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...