Firefox PHP

Poll Module

Posted by arlo 
Re: Poll Module
August 22, 2004 02:09AM
portal of curiousity Wrote:
-------------------------------------------------------
> 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?

The template files for the example forum at [www.alouie.com] are:

[www.alouie.com]
[www.alouie.com]
Re: Poll Module
August 22, 2004 03:11AM
use stuff like that
$text= isset($PHORUM['DATA']['LANG']['GlobalStats'])?$PHORUM['DATA']['LANG']['GlobalStats']:"Global Forum Statistics";

you can put localized strings in the standard language-file and have a default if its not set.


Thomas Seifert
awi
Re: Poll Module
August 25, 2004 01:02PM
I'm using the 5.0.8-RC, and the last version of the poll module. I can't see the "new" mark in the message list, when a reply is made to the poll.
awi
Re: Poll Module
August 25, 2004 07:27PM
Sorry for the last post. It seems that the "new" flag is showed only after the login. Is that correct? I'm a newbie at the phorum's stuff, might be that's the normal behaviour, I'll try to do a little more tests for the nex.
BTW: I see that now my previous posts is also obsolete :) . The Polls now have a "Poll:" at front of the Topic name.

Re: Poll Module
August 25, 2004 07:29PM
sure, only for logged-in users.


Thomas Seifert
Re: Poll Module
August 26, 2004 08:01PM
I came across a strange error with this module.

I forgot to create the custom field mod_poll, created a poll, and was able to vote several times without it realizing I had voted. Then I went back and created mod_poll, which stopped me from voting more, but the old bogus votes which I put in are still there.

Seems like it needs some idiot-proofing...
Re: Poll Module
August 26, 2004 10:28PM
The total votes are stored as part of the message. Custom fields are only for user data, modules can post pretty well whatever they want in a message.

It uses the user data to know what *you* voted for, it doesn't derive the actual vote count from it. That would be horrifically slow.
Re: Poll Module
August 27, 2004 01:46AM
Now that's something I didn't consider... I'll add some kind of check for the mod_poll custom field if I make another release of the module. I don't consider it an urgent issue, though, because I'd expect that most admins would read the readme.txt file or the first post in this thread before installing the mod.
Re: Poll Module
September 21, 2004 05:36PM
Is there a way I can modify this module, to only allow a registered user to vote ONLY once, rather than just once a day at most?

Also, is there a way to edit poll answers? Like if you make a big spelling mistake and need to go back and fix it?

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

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




Edited 1 time(s). Last edit at 09/21/2004 05:56PM by portal of curiousity.
Re: Poll Module
September 21, 2004 06:27PM
portal of curiousity Wrote:
-------------------------------------------------------
> Is there a way I can modify this module, to only
> allow a registered user to vote ONLY once, rather
> than just once a day at most?

That's how it works... I'm not sure what you're talking about. Once you vote, you aren't allowed to vote again (unless you cancel your vote).

> Also, is there a way to edit poll answers? Like if
> you make a big spelling mistake and need to go
> back and fix it?

No, that hasn't been incorporated into the module yet. I have no plans to do it, but if someone else wants to give it a shot, feel welcome...
Sorry, only registered users may post in this forum.

Click here to login