Hi,
I'd like to run a competition by which any user (logged in or not logged in) can vote for a user-submitted product. Users should be able to vote for multiple products rather than just one. Example:
- Contestants create a product which is displayed in a view
- Other users can vote for these products.
-The products with the most votes show up on top using a custom filter.
How would I get started? Is this currently possible with Toolset?
All the best,
Nicholas
Dear Nicholas,
I suggest you try these:
1) Setup a custom post type "Vote" as child post type of "product"
https://toolset.com/documentation/user-guides/creating-post-type-relationships/
2) Create a CRED form for user to create the child "Vote" post:
CRED Forms for Child Content
https://toolset.com/documentation/user-guides/cred-forms-for-child-content/
3) Create a view to query the "Vote" posts, filter by:
Post author is the same as the logged in user
https://toolset.com/documentation/user-guides/cred-forms-for-child-content/
If there isn't any posts found, then display the CRED for of step2)
Hello Luo.
Thank you for your assistance.
How would I set up the CRED form?
There should be a "vote up" "vote down" button displayed on the product view afterwards that counts the users up and downvotes.
To setup the CRED form, please check our documents:
https://toolset.com/documentation/user-guides/#cred-topics
For the new question:
There should be a "vote up" "vote down" button displayed on the product view afterwards that counts the users up and downvotes.
It is depends on what kind of "vote up" "vote down" button do you need, for example you can create a custom radio field with two options: "vote up" and "vote down"
https://toolset.com/documentation/user-guides/using-custom-fields/
Then put it into your CRED form for user to choose
https://toolset.com/documentation/user-guides/creating-cred-forms/
Hell Luo.
Thank you for the docs.
I am quite familiar with CRED, but just don't know how to get started setting up a vote up vote down button that should also count the amount of upvotes and downvotes.
How would I count the upvotes and downvotes using your radio field approach?
Regards,
Nicholas
Could you describe more details for the question:
get started setting up a vote up vote down button
What kind of vote up vote down button do you need?
Hello.
Here's a screenshot.
I would also like to use views to filter the posts/content with the most upvotes or the most downvotes.
Regards,
Nicholas
There isn't exact same feature within CRED form, you can use some custom codes (JS/CSS) to turn the custom radio field into button, see similar thread:
http://stackoverflow.com/questions/5523735/how-to-make-a-radio-button-look-like-a-toggle-button
but it needs custom codes, according to our support policy, we do not provide custom codes support:
https://toolset.com/toolset-support-policy/
I suggest check out our certified partners for it:
https://toolset.com/consultant/