Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#16 2004-09-01 16:41:36

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

Re: [archived] tcm_poll

oh, yeah, lib. sorry, working offhand. and less, you can just use the sample tags that I have on my website, put one in your content body, and add a question and answers as extra fields

Offline

#17 2004-09-01 16:53:46

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

Re: [archived] tcm_poll

> tmacwrig wrote:

> and less, you can just use the sample tags that I have on my website, put one in your content body, and add a question and answers as extra fields

Well, I must be too stupid for this plugin :-(
Still don’t know HOW to get those extra fields to show…

Offline

#18 2004-09-01 16:57:22

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

Re: [archived] tcm_poll

click “Advanced Options” to the left of the content field.

Offline

#19 2004-09-01 16:59:21

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

Re: [archived] tcm_poll

Guess I found it: custom fields are added in v 1.19, so I just don’t have them…

Thanks anyway.

Offline

#20 2004-09-01 17:33:52

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

Re: [archived] tcm_poll

I must really be missing something obvious here :-(

The only sample tag I can find on your site is < txp:tcm_pollinput break=”<br />” wrap_q=“strong” / >, which I have put in the body of a page. Now how do I add the questions and answers as extra fields?

I’m not giving up :-)
Lee

Offline

#21 2004-09-01 17:36:14

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

Re: [archived] tcm_poll

lee- you are using 1.19, right? so you’ve changed them in admin_config.php, so just click advanced_options when posting, and add them. (and add the tcm_pollinput tag to the article form or the body of an article. I don’t think it will work in a page template)

Offline

#22 2004-09-01 19:01:32

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

Re: [archived] tcm_poll

I got it working, thanks for the help. A couple of questions if I may: 1. How did you get the percentage bar to appear behind the percentage figure? 2. If submit is pressed without selecting an answer the poll results are calculated wrong, it seems to be dividing by total submits, not votes. Can this be fixed? Maybe it should only go to the results if an answer has been selected. And what did you think about my idea of being able to view the results without voting? i.e. have a View Results link below the submit button.

Offline

#23 2004-09-01 19:09:02

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

Re: [archived] tcm_poll

1: That’s because of two divs and a little css

<pre>
#left #poll {

padding: 10px;

}

#left #poll .bar {

margin: 4px 0;

border: 1px solid #5A6D8D;

background-color: #fff;

}

#left #poll .bar div {

padding: 3px;

background-color: #5A6D8D;

}

#left #poll .bar div span {

background-color: #CFD6E0;

color: #000;

}
</pre>

but if you’re putting it in a different column, you’ll have to change #left.

2: I’ll see if I can fix that either by checking in the php file, or by some simple js.

3: You can view results without voting by adding a < tcm:polloutput /> tag to the page

Offline

#24 2004-09-01 19:20:28

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

Re: [archived] tcm_poll

Thanks for the css. The poll question is not displayed along with the results, be much better if it was.

Edit:
The wrap_q seems to make no difference. If I leave it out the question is still bold.

What are the options for Delay. How would I set 1 second or 1 minute?

Last edited by lee (2004-09-01 20:16:11)

Offline

#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

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

Board footer

Powered by FluxBB