Firefox PHP

Poll Module

Posted by arlo 
Re: Poll Module
September 26, 2004 03:29PM
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.
paw
Re: Poll Module
September 26, 2004 04:07PM
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.
Re: Poll Module
September 28, 2004 01:41AM
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]
pat
Fully localised Version
October 03, 2004 03:08PM
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
Attachments:
open | download - poll.zip (6.8 KB)
pat
Re: Fully localised Version
October 03, 2004 03:18PM
...Oh, I forgot:

If you have the mod installed already you have to change the link in your templates (see the readme in the above attachment) and turn the mod off and on again in the admin.

pat
pat
Re: Poll Module
October 03, 2004 05:15PM
Hi,

is it possible to post a poll to an already existing thread?

pat
Re: Poll Module
October 06, 2004 09:05PM

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
Pat: thanks a lot for doing the localization! I haven't had time to take a look yet, but I can only assume that you did an excellent job. :-)

> is it possible to post a poll to an already
> existing thread?

No, you can only create a poll with a new thread.
Re: Poll Module
October 07, 2004 06:36AM
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.
Re: Poll Module
October 07, 2004 06:54AM
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.
Sorry, only registered users may post in this forum.

Click here to login