Your ultimate PunBB resource!
You are not logged in.
## ## Mod title: Auto Poll ## ## Mod version: 1.0 ## Works on PunBB: 1.2.* ## Release date: 2009-09-07 ## Author: Koos (pampoen10@yahoo.com) ## Original Author: Mediator (med_mediator@hotmail.com) ## Contributors: BN (http://la-bnbox.fr) ## ## Description: Adds poll functionality to your forum. ## ## Affected files: moderate.php ## post.php ## search.php ## viewforum.php ## viewtopic.php ## include/functions.php ## ## Affects DB: New tables: ## 'polls' ## New column in 'topics' table: ## 'question' ## New column in 'forum_perms' table: ## 'post_polls' ## New options in 'config' table: ## 'o_poll_enabled' ## 'o_poll_max_fields' ## 'o_poll_mod_delete_polls' ## 'o_poll_mod_edit_polls' ## 'o_poll_mod_reset_polls' ## ## DISCLAIMER: Please note that "mods" are not officially supported by ## PunBB. Installation of this modification is done at your ## own risk. Backup your forum database and any and all ## applicable files before proceeding. ##
Offline
This is a mod I've been working on for a while now. Previously there were only two other Poll mods available for punbb 1.2/fluxbb 1.2: Easy Poll and Easy Poll+. I did not like the way how the Easy Poll mod would break other mods you had installed (it required you to replace very big portions of code). Easy Poll+ on the other had is much better, with more features and permission settings, but is quite a chore to install (has more than 120 steps in the readme!). I also did not like layout of the links (e.g. putting the 'Create new poll' link below the 'Post new topic' link), and that one had to go to the admin cp to edit polls.
Auto Poll is mostly based on Easy Poll, and also includes all of the features available in Easy Poll+, and more. When creating this mod, I tried to make it as simple as possible to install.
Here is a list of some of the features:
1. Polls can be edited, delete and reset by admin and moderators on the poll itself. Admin can specify in the admin cp whether moderators can delete, edit or reset polls. There is also the option to 'Silent edit' a poll.
2. Can create regular or multiselect polls. To create a multiselect poll, just select the option 'Allow users to select more than one answer', when creating a new poll.
3. Made some style fixes to the percentage bars shown when displaying poll results. Also fixed numerous other bugs that were present in the Easy Poll mod.
4. The total number of voters are now shown below poll results, instead of total number of votes.
5. This mod is also compatible with PostgreSQL.
Last edited by Koos (2009-09-16 12:05:09)
Offline
Great mod! And very clean install!
Just keep in mind, if you do use other languages than English you need to copy the /lang/English/poll.php -file to your language folder as well!
Thanks ![]()
Offline
Have just installed this in the wild - will report any problems. Thanks for writing!
Offline
I installed this on my site, I love it, easy to use, one question, how can I change the color of the result bar?
Offline
hi koos, any chance to update this mod for version 1.4? Thanks
Offline
Great job Koos!
I have my own fix for v1.4 + Russian lang file
http://fluxbb.org.ru/forum/viewtopic.php?id=3241 (topic on Russian, but code is clear for all)
ERRORS IN LANG FILE:
Missed entry: 'Too long option',
Never used entry: 'Cannot edit poll'
Offline
Hi R2D2 thanks for the fix. I've check your fix tru google translate. If i'm correct the fix is for new installation right?
how about if autopoll is already installed (upgraded to 1.4) do we need to modify the database?
Offline
IF your groups table haven't field g_post_polls, you shoud alter table manually.
Offline
It finally works. thanks for your help...
Offline