Skip Navigation

[Resolved] voting system

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#1299481

Hi,
I need to create a voting system for a project.
It is an architectural competition and the public can vote online for the best architectural project. Projects are created with TOOLSET TYPES (custom post type). Is there documentation, a similar concrete example made with TOOLSET ?
Thank you in advance for your cooperation.
Olivier Foguenne

#1299689

Hello, there's nothing built-in to Toolset that will create this type of voting system automatically, but I think you will be able to use the Toolset suite to help construct something like this using various components. For example, you could use Toolset Forms to create a new Vote post for each vote received on the front-end of the site. That Vote post would be a child of the Project post which was voted for. Then you could use Views to "count" the number of Votes for each project, using a post relationship filter.

This is the simplest implementation I can think of. If your system is very complex, we could discuss other requirements.

#1299701

Hi Christian,
Thanks for your answer.
Do you think it is possible to prevent multiple voting ?

#1299783

If the voters must log in first, then it's not difficult to prevent multiple voting, it's fairly simple. There is a technique described here you could use as a reference: https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/

However, if you want to allow guests to vote, there's nothing in Toolset that will help you restrict access to that voting form for only one submission per visitor. It would require some custom code that falls outside the scope of what we offer here in the support forums. We have a couple of contractor portals available if you want to connect with a skilled, independent developer who could create that restriction: https://toolset.com/contractors https://codeable.io/developers/toolset/