CodeIgniter Forums
Codeigniter Poll lib - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Libraries & Helpers (
+--- Thread: Codeigniter Poll lib (/thread-55575.html)

Codeigniter Poll lib - El Forum - 11-01-2012

Hi everyone, I thought I would post a poll library that some of you might find useful. Here are the main features:

- Supports multiple polls
- Prevents multiple votes by logging ip address to the database (no cookies, its too easy to spam)
- Supports multiple options
- Maximum and minimum number of options can be defined in config
- Multiple votes allowed or not can be set in config
- Interval between votes can be set in config
- Close and open polls
- Included jQuery for handling variable poll option inputs

Please note that a database that supports foreign keys is required (probably MySQL/InnoDB), some methods will not work correctly without it.

This is my first lib that I've posted on here so any comments/feedback etc appreciated Smile

Codeigniter Poll lib - El Forum - 11-18-2012

[eluser]RaZoR LeGaCy[/eluser]
Can we see a link to this in action.

Codeigniter Poll lib - El Forum - 11-23-2012

Hi, I've uploaded a demo here: feel free to test it out

Codeigniter Poll lib - El Forum - 11-25-2012

[eluser]Bart v B[/eluser]
Hi Vega,

Found a bug in your code. Smile
I am missing in the views/polls/index.php

Codeigniter Poll lib - El Forum - 11-26-2012

git was ignoring that file because I typed index.php instead of /index.php in .gitignore - fixed now.

Codeigniter Poll lib - El Forum - 11-28-2012

[eluser]Bart v B[/eluser]
Thnx. for the fix Vega.