CodeIgniter Forums

Full Version: Codeigniter Poll lib
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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

El Forum

[eluser]Vega[/eluser]
Hi, I've uploaded a demo here: http://s42954.gridserver.com/test/ci_poll/ feel free to test it out

El Forum

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

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

El Forum

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

El Forum

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