Django based forum engine
2
A poll feature is still missing. Found a ticket for it: http://djangobb.org/ticket/13
I want discuss here, how we can implement this.
I have created a poll plugin for PyLucid and can contribute some of the code.
Offline
2
i started it here: https://github.com/jedie/DjangoBB/compare/poll (many code part is from PyLucid, but i enhanced all a little bit
)
The main functionality is there:
* Polls are displayed and user can vote
* Polls can limit the choice count (default = 1)
* Polls can have a datetime for auto deactivating
The missing part it the UI for the user to create a poll.
Maybe we just add a checkbox like “add a poll to this new topic”. After send the form the user get a seperate add poll form. It's somethign like a wizzard. Maybe we can use https://docs.djangoproject.com/en/1.4/ref/contrib/formtools/form-wizard/ and change the file attachment stuff in the same way?
Question:
1. Should a user only add a poll if he starts a new topic?
2. Should the thread starter add a poll later, if he add a post to this own topic?
3. Anyone who post on a exitings topic can add a poll if no poll exist in the topic?
Maybe no 3 would be to confuse, isn't it?
Offline
2
screenshot before vote:
Edited jedie (Aug. 8, 2012 01:28:14)
Attachments:
2012-08-08_DjangoBB_poll_01.png (14.6 KB)
Offline
2
screenshot of the result:
Edited jedie (Aug. 8, 2012 01:27:56)
Attachments:
2012-08-08_DjangoBB_poll_02.png (23.5 KB)
Offline
2
Ui for creating Polls are done: https://github.com/jedie/DjangoBB/compare/master…poll
It's usable in my forum: http://www.pylucid.org/en/forum/
Offline