Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] tcm_poll

#25 2004-09-01 20:53:56

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_poll

delay is in minutes, the default is 5.

Offline

#26 2004-09-02 04:31:25

cfenison
Member
Registered: 2004-06-25
Posts: 14
Website

Re: [archived] tcm_poll

Lee, can you explain what you did to get it working? I seem to be running in the same circles you were.
Thanks


-Chris
chrisfenison.com

Offline

#27 2004-09-02 07:14:30

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [archived] tcm_poll

1. Install + activate tcm_polloutput and tcm_pollinput

2. Set your extra fields (any of them, it doesn’t matter) to “Poll Question

Last edited by lee (2004-09-02 07:15:13)

Offline

#28 2004-09-02 15:43:00

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_poll

thanks for the little guide. the problem here, is that I really just made the plugin for a client and felt that it would also be useful to the community, so documentation and the like was not my top concern. I suppose I’ll work on the bugs and such, and include your manual with it’s description.

Offline

#29 2004-09-02 16:29:04

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_poll

alright, the plugins are updated, they should work with about 5 new options. some help included.

Offline

#30 2004-09-02 17:09:27

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [archived] tcm_poll

That was quick. Many thanks and have a good weekend.

Offline

#31 2004-09-04 12:23:45

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] tcm_poll

Well, I upgraded to 1.19, and followed all the steps in Lee’s above post.
There are still things that don’t work as they should:

1. The article, in this case just the article title (test poll), shows up in the article list in my center part. (I have put the poll in the right column).

2. The ‘failed’ message appears above the poll question, whether an option was chosen or not, submit was clicked or not, it’s just always there.

3. When the submit button is clicked (no matter whether an option was chosen or not), no poll results are being displayed but the single article (title) is shown in the center part.

4. I can only get poll results to show when I put <txp:tcm_polloutput /> in my form, but then it is always there, not just when the submit button is clicked. And I get this warning:
Warning: Division by zero in /home/httpd/vhosts/doggiez.nl/httpdocs/textpattern/publish.php(764) : eval()’d code on line 1024
(4 times)

5. There are no results recorded, whatever options I submit, the percentages remain zero.

So I must still be doing something wrong, but can’t figure out what that is. Can anyone point me in the right direction please?

Edit: you can see it <a href=“http://www.doggiez.nl/test1/”>here</a>.

Edit again:
6. No matter how often I vote, I don’t get the message that I already have voted.

Does this plugin disable one’s own votes?

Last edited by doggiez (2004-09-04 13:49:08)

Offline

#32 2004-09-04 16:16:42

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_poll

… I really wish that someone with a working knowledge of php could contribute here. no offense to you guys, but I wasn’t expecting to support this as a community plugin, and I had it pretty clear on the page that it wouldn’t be an easy install.

  1. Have you set the section so that it doesn’t display on the home page
  2. Find <pre> if($pollfailed = “true”)</pre> and replace it with <pre> if($pollfailed == “true”)</pre>
  3. You have to set autoforward to “true” in order for the poll results to be shown. (I think this is in the help file…)
  4. find <pre> if($a)</pre> and change it to <pre> if($poll)</pre> in the polloutput plugin

Offline

#33 2004-09-04 16:50:16

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] tcm_poll

1. yes, and it doesn’t display on the homepage, but it does on the section page.

2. done

3. The help file says default is “yes” so I left it out. Setting it to “true” doesn’t make any difference.

4. done

Now the only difference is that the failed message doesn’t show at all, never.

Thank you for answering anyway, tmacwrig, and no offense taken. It’s not that important to me, just thought it would be nice to be able to use the plugin, and I can wait until someone passes by who may see some fun in adapting the instructions for dummies like me.

Offline

#34 2004-09-04 17:16:13

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_poll

have you updated the poll.php file for a while?

Offline

#35 2004-09-04 17:32:32

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] tcm_poll

Just re-downloaded it. Again no difference.

tmacwrig, looking back at the first posts, you had the article title ‘test poll’ on your page as well. What did you do to remove that?

Offline

#36 2004-09-04 17:36:12

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [archived] tcm_poll

oh, I had been using the wrong plugin for the display of that column (akw_article_custom instead of akw_article, I think).

Offline

  1. Index
  2. » Archives
  3. » [archived] tcm_poll

Board footer

Powered by FluxBB