Poll Module
Posted by arlo
July 29, 2004 01:41PM |
Admin Registered: 22 years ago Posts: 4,495 |
A few comments on a great job.
1. This feature exists in other BB apps. Did you or have you looked at those to see how they work? While I am not big on doing everything "like everyone", some times it is best to just copy a proven working method.
2. What may be more flexible is a text area entry for the questions. You would have to put them one per line and have wrapping off. Polls could have more than 15 questions then. That would be really confusing to noobs though. Of course, what good poll would have +15 questions?
3. I had envisioned when thinking about the module in the past an extension to the bbcode module for creating polls. Example: (replacing { with [ of course)
{POLL}
{QUESTION}Is this a good poll?{/QUESTION}
{ANSWER}Yes{/ANSWER}
{ANSWER}No{/ANSWER}
{/POLL}
Of course, this could be really confusing to noobs.
Just random thoughts.
1. This feature exists in other BB apps. Did you or have you looked at those to see how they work? While I am not big on doing everything "like everyone", some times it is best to just copy a proven working method.
2. What may be more flexible is a text area entry for the questions. You would have to put them one per line and have wrapping off. Polls could have more than 15 questions then. That would be really confusing to noobs though. Of course, what good poll would have +15 questions?
3. I had envisioned when thinking about the module in the past an extension to the bbcode module for creating polls. Example: (replacing { with [ of course)
{POLL}
{QUESTION}Is this a good poll?{/QUESTION}
{ANSWER}Yes{/ANSWER}
{ANSWER}No{/ANSWER}
{/POLL}
Of course, this could be really confusing to noobs.
Just random thoughts.
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Poll Module July 29, 2004 05:17PM |
Moderator Registered: 19 years ago Posts: 634 |
re: 3. Livejournal uses this method, and it resulted in them also having to create a page that acts as a poll creation wizard where people can type in the questions and answers, and have it generate the code.
A nice interface where people can just type stuff in has a definite advantage in terms of usability.
A nice interface where people can just type stuff in has a definite advantage in terms of usability.
Re: Poll Module July 29, 2004 06:51PM |
Registered: 20 years ago Posts: 55 |
Great job with your module, I just might be using it. One thing that I did think of (since I'm in an improve-phorum stint), would be a link to view poll results without voting.
Sometimes I don't want to vote in a poll, or something prevents me from doing so, but I want to see the results.
Anyway, great job.
--Matthew
Sometimes I don't want to vote in a poll, or something prevents me from doing so, but I want to see the results.
Anyway, great job.
--Matthew
Re: Poll Module August 13, 2004 06:20PM |
Moderator Registered: 19 years ago Posts: 634 |
Re: Poll Module August 19, 2004 07:19PM |
Registered: 19 years ago Posts: 5 |
Re: Poll Module August 20, 2004 07:26AM |
Registered: 19 years ago Posts: 60 |
Re: Poll Module August 21, 2004 05:24AM |
Registered: 19 years ago Posts: 47 |
**** NEW VERSION ****
Poll Module v0.2
Improvements:
- added cancel button so that you can discard your vote and vote again (thanks Tridus)
- added link to view results without voting (thanks Matthew)
- bug fix: only people who are allowed to create polls will see the New Poll link (thanks Tridus)
Try it out:
[www.alouie.com]
Edited 1 time(s). Last edit at 08/21/2004 05:29AM by arlo.
Poll Module v0.2
Improvements:
- added cancel button so that you can discard your vote and vote again (thanks Tridus)
- added link to view results without voting (thanks Matthew)
- bug fix: only people who are allowed to create polls will see the New Poll link (thanks Tridus)
Try it out:
[www.alouie.com]
Edited 1 time(s). Last edit at 08/21/2004 05:29AM by arlo.
localise Poll Module August 21, 2004 06:38PM |
Registered: 19 years ago Posts: 683 |
Hi,
I would like to localise this module, but rather than changing the "hardcoded" english bits I would like to modify the whole thing to work with an lang-file, that lives in the Poll-Module-Folder. I'd like to do it just the way phorum as a whole is doing it - with an array that is called in the script. I would also like it to check wich lang is used in phorum and than pic that lang for the module aswell.
Anything that stands in the way? How would you aproach this task?
thanx
pat
I would like to localise this module, but rather than changing the "hardcoded" english bits I would like to modify the whole thing to work with an lang-file, that lives in the Poll-Module-Folder. I'd like to do it just the way phorum as a whole is doing it - with an array that is called in the script. I would also like it to check wich lang is used in phorum and than pic that lang for the module aswell.
Anything that stands in the way? How would you aproach this task?
thanx
pat
August 21, 2004 09:16PM |
Registered: 19 years ago Posts: 666 |
Quote
3. Add a New Poll link to your templates.
For example, you could add the following line to list.tpl, read.tpl,
and others:
{IF NEWPOLLURL}<a class="PhorumNavLink" href="{NEWPOLLURL}">New Poll</a>{/IF}
Do you have any examples or tips on where to add this for the list and read template files?
Re: localise Poll Module August 22, 2004 02:07AM |
Registered: 19 years ago Posts: 47 |
pat Wrote:
-------------------------------------------------------
> Hi,
> I would like to localise this module, but rather
> than changing the "hardcoded" english bits I would
> like to modify the whole thing to work with an
> lang-file, that lives in the Poll-Module-Folder.
> I'd like to do it just the way phorum as a whole
> is doing it - with an array that is called in the
> script. I would also like it to check wich lang is
> used in phorum and than pic that lang for the
> module aswell.
>
> Anything that stands in the way? How would you
> aproach this task?
Yeah, I don't like how the strings are hardcoded either... localization would be great. I don't know the best way to approach it, though. You might want to try posting a general question about module localization in the dev forum.
-------------------------------------------------------
> Hi,
> I would like to localise this module, but rather
> than changing the "hardcoded" english bits I would
> like to modify the whole thing to work with an
> lang-file, that lives in the Poll-Module-Folder.
> I'd like to do it just the way phorum as a whole
> is doing it - with an array that is called in the
> script. I would also like it to check wich lang is
> used in phorum and than pic that lang for the
> module aswell.
>
> Anything that stands in the way? How would you
> aproach this task?
Yeah, I don't like how the strings are hardcoded either... localization would be great. I don't know the best way to approach it, though. You might want to try posting a general question about module localization in the dev forum.
Sorry, only registered users may post in this forum.