Archive for Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
  Forum Index -> Forum Blogs
myff admin

Advanced polling

Just a tentative first post about one of the next plans for a phpbb2 addition.

Polling in phpbb2 is a pretty crude affair without multiple choice options.

We have resisted changing this because of the usual issue that all templates would need tweaking to take advantage of changes

There is no way around that, but we can perhaps reduce the impact by using portals.

Other possible options include making the quiz portal function as a poll portal?

Polls could be quite a lot of fun with a few more features, even the option to take away the secret ballot aspect could have potential in the right circumstances.

I guess there are two main options:

1) extend the existing poll mechanism.

2) Use a separate system where people could click on an "add advanced poll" when posting, and there they could design a poll.

I'm all for option 2 as it would open the window a little wider and allow more air through it Wink
myff admin

I think the second option, using a bbcode system is appealing. With bbcodes it would work like the attach file option, allowing many polls to be included.

This would also open the door to allowing some portals to be shown in posts.

I think it would also have to be web2.0 based for better interaction.
myff admin

Trying to get back on with this, and the first notable thing is that web2.0 enabling is liable to add a one of javascript load of 16kb, this is reasonably trivial

The main issue would be the problem that portals are defined after the header of the page, and therefore too late for them to define their web2.0 functions.

I think the way round this is to define some generic portal web2.0 functions where the name of the portal will be passed as part of the function. This will need a bit of a framework around it, this is the sort of area that done badly would be fatal for security  
myff admin

The next question is database changes.

If we are to keep our touch light, then it does mean we have to stick with polls being a secret ballot. A bit of a shame but livable.

We could avoid database changes at all and override the topic_vote flag, it has plenty of spare capacity. But this would be a little cheapskate, one extra field in the vote_desc table is not exactly wasteful, and it keeps clean database compatibility.

That flag can contain details like:

1) multiple choice allowed.
2) poll posted as bbcode.

I would have rather liked new forums to see the new polling feature, but if it is to appear in a new topic it means using a default poll portal template in place of posting_poll_body.tpl and that could have cosmetic issues. So this may have to be something people have to enable
myff admin

hmm, a topic and a single poll are rather linked at the hip, our polls if we are to allow multiple polls in a topic will have to detach that link and use the portals database record to give details on who owns the poll.

It is certainly doable, but the more the code removes itself from the original polling code, the more risk there is of bugs effecting old polls and the less point there is in choosing to use the old structures with there limitations  
myff admin

I am going to call this a case of cup half full, rather than half empty.

I have come up with a way of allowing multiple choice votes without template edits.

So this bit of development will have seen the ability to post portals, and multiple choice voting without pain.

It will also have seen but not used another step in the web2.0 direction.

What it won't do is multiple polls per post, or web2.0 polls.
myff admin

Some testing still needs doing, but multiple choice polls should now work on any template.

On some templates the option to set a multichoice poll may not be quite right, but a template edit can fix that.

Probably a Saturday install.
myff admin

database upgrades are now in place on all forums. Forum Index -> Forum Blogs
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum