Poll Module
Posted by arlo
Re: Poll Module September 26, 2004 03:29PM |
Registered: 19 years ago Posts: 47 |
paw Wrote:
-------------------------------------------------------
> Arlo I test your interesting module but I have two
> problems:
> 1) Only administrator can create new poll. How can
> I provide this function to other user (currently
> other registered users can vote only)?
That's a setting that you can configure in the admin interface. Go to the Phorum Admin page and click on the Settings for the Poll mod.
> 2) I change read.tpl and list.tpl in the same way
> (as you reccomended in readme) but new link appear
> only in case of read.php. I try to use your
> example of list.tpl bt it is not help me. What can
> I try?
The new link only gets displayed to people who can create new polls... so I think that solving problem #1 will solve problem #2.
-------------------------------------------------------
> Arlo I test your interesting module but I have two
> problems:
> 1) Only administrator can create new poll. How can
> I provide this function to other user (currently
> other registered users can vote only)?
That's a setting that you can configure in the admin interface. Go to the Phorum Admin page and click on the Settings for the Poll mod.
> 2) I change read.tpl and list.tpl in the same way
> (as you reccomended in readme) but new link appear
> only in case of read.php. I try to use your
> example of list.tpl bt it is not help me. What can
> I try?
The new link only gets displayed to people who can create new polls... so I think that solving problem #1 will solve problem #2.
September 26, 2004 04:07PM |
Registered: 19 years ago Posts: 43 |
Sorry, I promised get some info:
ad1) I had set up Poll for "Any registered users" before I ask my previous question
ad2) Unfortinately you are not right. The link in list.php is missing even for user with administrator access. There is ling only in read mode although I realy change both.
ad1) I had set up Poll for "Any registered users" before I ask my previous question
ad2) Unfortinately you are not right. The link in list.php is missing even for user with administrator access. There is ling only in read mode although I realy change both.
Re: Poll Module September 28, 2004 01:41AM |
Registered: 19 years ago Posts: 47 |
Could I take a look at your read.tpl and list.tpl files? Here are mine:
read.tpl:
[www.alouie.com]
list.tpl
[www.alouie.com]
read.tpl:
[www.alouie.com]
list.tpl
[www.alouie.com]
Fully localised Version October 03, 2004 03:08PM |
Registered: 19 years ago Posts: 683 |
Hi,
well not much to say, here it is!
I had to do away with some of the heredoc-stuff but I hope arlo will forgive me.
Along with the modified Poll-mod version: 0.2 come two Lang-Files English taken from the original and German(Sie) by me please add more if you can...
pat
well not much to say, here it is!
I had to do away with some of the heredoc-stuff but I hope arlo will forgive me.
Along with the modified Poll-mod version: 0.2 come two Lang-Files English taken from the original and German(Sie) by me please add more if you can...
pat
Re: Fully localised Version October 03, 2004 03:18PM |
Registered: 19 years ago Posts: 683 |
Re: Poll Module October 03, 2004 05:15PM |
Registered: 19 years ago Posts: 683 |
Re: Poll Module October 06, 2004 09:05PM |
Registered: 19 years ago Posts: 26 |
Is the poll still supposed to show the edit message box? i.e. asking for Subject, Special, 2 checkboxes, and message body?
I go to create a new poll, as a new topic, and it gives the 11 empty fields.
Poll question
option 1
.
.
option 10
EDIT MESSAGE BOX
also, when I click submit, then go to view it, it appears as a normal message when a reply message box below it. I don't see any of what I entered as the poll question or options anywhere on the page. How exactly does this mod work, and if this isn't right, what files do you need to see so we can hammer this thing out?
In the meantime, I'm going to go back through the installation one more time to make sure I didn't miss anything or put something in the wrong place.
Oh, one more thing, what about the possibility of using a seperate MySQL database to store the polls in with hooks to the user as "creator".
Re: Poll Module October 07, 2004 06:25AM |
Registered: 19 years ago Posts: 47 |
Re: Poll Module October 07, 2004 06:36AM |
Registered: 19 years ago Posts: 47 |
Nix Marl Wrote:
-------------------------------------------------------
> > Is the poll still supposed to show the edit
> message box? i.e. asking for Subject, Special, 2
> checkboxes, and message body?
Yes, polls are components of messages. You still need a subject, message body, etc.
> also, when I click submit, then go to view it, it
> appears as a normal message when a reply message
> box below it. I don't see any of what I entered
> as the poll question or options anywhere on the
> page. How exactly does this mod work, and if this
> isn't right, what files do you need to see so we
> can hammer this thing out?
Have you created the mod_poll custom field?
> Oh, one more thing, what about the possibility of
> using a seperate MySQL database to store the polls
> in with hooks to the user as "creator".
I wouldn't want to create any new databases or tables... when you do that, modules become hacks. You could use the module's metadata (as opposed to the message metadata or the user metadata) to establish a direct mapping from polls to creators if you require that functionality. You'd have to write it yourself, though.
-------------------------------------------------------
> > Is the poll still supposed to show the edit
> message box? i.e. asking for Subject, Special, 2
> checkboxes, and message body?
Yes, polls are components of messages. You still need a subject, message body, etc.
> also, when I click submit, then go to view it, it
> appears as a normal message when a reply message
> box below it. I don't see any of what I entered
> as the poll question or options anywhere on the
> page. How exactly does this mod work, and if this
> isn't right, what files do you need to see so we
> can hammer this thing out?
Have you created the mod_poll custom field?
> Oh, one more thing, what about the possibility of
> using a seperate MySQL database to store the polls
> in with hooks to the user as "creator".
I wouldn't want to create any new databases or tables... when you do that, modules become hacks. You could use the module's metadata (as opposed to the message metadata or the user metadata) to establish a direct mapping from polls to creators if you require that functionality. You'd have to write it yourself, though.
Re: Poll Module October 07, 2004 06:54AM |
Registered: 19 years ago Posts: 26 |
arlo Wrote:
-------------------------------------------------------
> Nix Marl Wrote:
> --------------------------------------------------
> -----
> > > Is the poll still supposed to show the
> edit
> > message box? i.e. asking for Subject,
> Special, 2
> > checkboxes, and message body?
>
> Yes, polls are components of messages. You still
> need a subject, message body, etc.
Ok, they still aren't showing up as polls. Just messages.
> > also, when I click submit, then go to view
> it, it
> > appears as a normal message when a reply
> message
> > box below it. I don't see any of what I
> entered
> > as the poll question or options anywhere on
> the
> > page. How exactly does this mod work, and if
> this
> > isn't right, what files do you need to see so
> we
> > can hammer this thing out?
>
> Have you created the mod_poll custom field?
Yes, I have done that also.
-------------------------------------------------------
> Nix Marl Wrote:
> --------------------------------------------------
> -----
> > > Is the poll still supposed to show the
> edit
> > message box? i.e. asking for Subject,
> Special, 2
> > checkboxes, and message body?
>
> Yes, polls are components of messages. You still
> need a subject, message body, etc.
Ok, they still aren't showing up as polls. Just messages.
> > also, when I click submit, then go to view
> it, it
> > appears as a normal message when a reply
> message
> > box below it. I don't see any of what I
> entered
> > as the poll question or options anywhere on
> the
> > page. How exactly does this mod work, and if
> this
> > isn't right, what files do you need to see so
> we
> > can hammer this thing out?
>
> Have you created the mod_poll custom field?
Yes, I have done that also.
Sorry, only registered users may post in this forum.