Firefox PHP

Poll Module

Posted by arlo 
Re: post poll to existing thread
October 15, 2004 06:23PM
Poll icon if anyone's interested.

-------------------------------------------

"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe



Re: Poll Module
October 18, 2004 05:46AM
A question. The poll looks mighty fine, but can I use this poll also on a customised page such as my frontpage. I ask this because I already have a poll but wish to merge and dump as much stuff that I can merge.

THnx

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Poll Module
October 18, 2004 05:55AM
the poll is included in a message.
you would need to load the message on another page to have it there.
have fun coding that ;).


Thomas Seifert
Re: Poll Module
October 18, 2004 05:59AM
And how about making a customised form to put on the fron page and to put the values of that poll in there?

Okay it wont deserve a beauty price on quick editing but I think I can use that. Let me work on it and get back to that.

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: post poll to existing thread
October 19, 2004 10:19AM
pat Wrote:
-------------------------------------------------------
> Hi arlo,
>
> Is there anything prohibiting this or did you just
> not build it in?
>
> If the latter is true, could you provide some
> hints as to where to change the code to acomplish
> that behaviour?

Re: adding polls when replying in threads

As long as you know exactly how the poll module currently works, you should be able to modify it to let people reply with polls. This would probably be complicated, though. There would be quite a few code changes and interface changes to make. I can't really think of any good hints aside from going over the code very carefully. If you have more specific questions after that, maybe I could be of more help.
Re: post poll to existing thread
October 19, 2004 10:19AM
Nix Marl Wrote:
-------------------------------------------------------
> Where it shows the
>
> Poll: {poll subject}
>
> How do we get it to show "Poll:" in bold like it
> does "Sticky:"? I tried editing the template and
> the language file, but it still comes out the
> same, or worse yet, it shows the tags instead.

Editing the template should work. Could you show me what you tried?

Another possibility would be to create a simple module that uses the format hook.
Re: post poll to existing thread
October 19, 2004 10:19AM
portal of curiousity Wrote:
-------------------------------------------------------
> Nix Marl Wrote:
> --------------------------------------------------
> -----
> > Where it shows the
> >
> > Poll: {poll subject}
> >
> > How do we get it to show "Poll:" in bold like
> it
> > does "Sticky:"? I tried editing the template
> and
> > the language file, but it still comes out
> the
> > same, or worse yet, it shows the tags
> instead.
>
>
> I was wondering the same thing. You could go into
> poll.php of your mod and take out the part where
> it puts "Poll: " in the subject (not sure what all
> would have to be taken out.
>
> I have a thing on my list templates so that if the
> post is an announcement or sticky, the icon for it
> will show instead of a carat.gif. I'm testing
> different IF statements so that if it's a poll,
> it'll show a poll icon (I found one online and
> modified it, since the old one was pretty ugly).
>
> Arlo, any idea what IF statement would be on the
> list template to indicate a Poll other than
> listing it in Subject?

I don't know the exact statement off the top of my head, but for each message, you want to check if its ["meta"]["mod_poll"] field exists. If that's too inefficient, you could just check for subjects that start with "Poll: ".

> Also, I'm not sure what's up, but if someone
> hasn't voted, it bolds the first answer in the
> poll results.

Will check that out... thanks.



Edited 1 time(s). Last edit at 10/19/2004 10:31AM by arlo.
Re: post poll to existing thread
October 19, 2004 11:18AM
Wouldn't it be the point to take out Poll: and put the icon before the subject? Then you couldn't have anything looking for it. If you had both, it might seem redundant, but I don't know.

Attaching another poll icon found on the net, I think it looks better than my alteration.

-------------------------------------------

"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe



Re: post poll to existing thread
October 21, 2004 10:31AM
portal of curiousity Wrote:
-------------------------------------------------------
> Wouldn't it be the point to take out Poll: and put
> the icon before the subject? Then you couldn't
> have anything looking for it. If you had both, it
> might seem redundant, but I don't know.

Yes, of course. You search for "Poll: " and replace it with whatever you want.
Re: Poll Module example of use
October 28, 2004 07:54AM
Hi all,

This module seems very nice. I haven't installed
it yet, but could someone please provide links to :
1) last modules codes (zip).
2) poll example on a website.

Thanks in advance,

see you soon

ipnet
Sorry, only registered users may post in this forum.

Click here to login