PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.


Login to move these ads to the bottom of the page

#1 2009-09-07 12:18:53

Koos
Member
Registered: 2007-01-14
Posts: 336
Website

Auto Poll 1.0

Code:

##
##        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.
##

Download here

Offline

 

#2 2009-09-07 12:19:56

Koos
Member
Registered: 2007-01-14
Posts: 336
Website

Re: Auto Poll 1.0

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

 

#3 2009-09-07 12:29:44

adaur
New member
Registered: 2009-06-25
Posts: 7

Re: Auto Poll 1.0

Awesome mod big_smile

Offline

 

#4 2009-09-25 17:52:54

IBTB
New member
Registered: 2008-03-30
Posts: 4

Re: Auto Poll 1.0

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 smile

Offline

 

#5 2009-10-18 23:31:41

bgiddins
Member
Registered: 2009-07-05
Posts: 12

Re: Auto Poll 1.0

Have just installed this in the wild - will report any problems. Thanks for writing!

Offline

 

#6 2010-01-23 01:53:03

xSDMx
Member
Registered: 2007-12-05
Posts: 34
Website

Re: Auto Poll 1.0

How do I update to this? I would like to be able to edit polls.

Last edited by xSDMx (2010-01-23 02:35:58)

Offline

 

#7 2010-04-05 06:04:16

DirtyDeeds
New member
Registered: 2009-11-14
Posts: 3

Re: Auto Poll 1.0

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

 

#8 2010-06-15 03:32:35

doki
Member
Registered: 2007-04-30
Posts: 149

Re: Auto Poll 1.0

hi koos, any chance to update this mod for version 1.4? Thanks

Offline

 

#9 2010-06-21 21:30:02

artoodetoo
Member
Registered: 2006-11-07
Posts: 92
Website

Re: Auto Poll 1.0

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

 

#10 2010-06-23 05:58:17

doki
Member
Registered: 2007-04-30
Posts: 149

Re: Auto Poll 1.0

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? smile how about if autopoll is already installed (upgraded to 1.4) do we need to modify the database?

Offline

 

#11 2010-06-23 19:38:26

artoodetoo
Member
Registered: 2006-11-07
Posts: 92
Website

Re: Auto Poll 1.0

IF your groups table haven't field g_post_polls, you shoud alter table manually.

Offline

 

#12 2010-06-24 02:38:38

doki
Member
Registered: 2007-04-30
Posts: 149

Re: Auto Poll 1.0

It finally works. thanks for your help...

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.