CodeIgniter Forums
Codeigniter Poll lib - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Codeigniter Poll lib (/showthread.php?tid=55575)



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

[eluser]Vega[/eluser]
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

https://github.com/WookieMonster/Codeigniter-Poll

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

[eluser]Vega[/eluser]
Hi, I've uploaded a demo here: http://s42954.gridserver.com/test/ci_poll/ 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

[eluser]Vega[/eluser]
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.