A
A
Alexander Yerko2014-07-28 11:03:27
CodeIgniter
Alexander Yerko, 2014-07-28 11:03:27

How to organize the logic of the module polls (voting)?

It is necessary to develop a survey module for cms, which is based on CodeIgniter, I will deal with the technical part.
I have a question for those who made such modules, how to organize the logic more correctly? Whether to allow guests to vote or only registered users (or make this choice optional for the site admin), if guests are allowed to vote, how to take into account their votes, limit them by IP, or something else?
Ready to listen to any suggestions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Svet Valentin, 2017-02-11
@walyk

1) Guests by ip and classify as user_type guest in the created table (poll_answers for example)
2) Registered users by user ID with user_type registered

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question