Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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.
- Have you set the section so that it doesn’t display on the home page
- Find <pre> if($pollfailed = “true”)</pre> and replace it with <pre> if($pollfailed == “true”)</pre>
- You have to set autoforward to “true” in order for the poll results to be shown. (I think this is in the help file…)
- 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
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
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
#37 2004-09-04 17:41:14
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] tcm_poll
hmmm… doesn’t seem to help me. But please don’t bother anymore, I’m getting tired of this myself. I’ll just let it rest for a while. Thanks for your trouble.
Offline
Re: [archived] tcm_poll
After spending some time on getting it to work properly, I must say it is a very nice plugin:-) Thanks for creating it!!!
You can see the result at my site:
http://foolsntools.com/polls
(you are welcome to vote as well:-)
Offline
#39 2005-04-13 15:11:44
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: [archived] tcm_poll
Does this plugin still work on RC3? Or is there an other Poll-plugin?
Regards,
Joey
Offline
Re: [archived] tcm_poll
I’m trying to test this plugin but it’s a little confused. It’s installed and working on my local server, but not as good as I wish. The input form and the outputs are showed but each time that I vote, nothing is taken to the output, all that I have is 0% … and the same (well, similar) Warning that doggiez mentioned before!
Another thing, each time that I submit the vote the URL is duplicated, after three clicks I’ve got:
http://www.mysite.com/textpattern/poll/textpattern/poll/textpattern/poll/textpattern/poll/ (or something like that, sorry, Im not on my machine right now!).
There’s a lot of time without news about this Plugin or another one to make surveys. I know, it’s not as useful as other plugins but in some circumstances could be welcome!
Offline