Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2005-09-26 04:57:25

jeeves
Member
Registered: 2004-06-14
Posts: 31

Re: [archived] pap_xpoll (multiple poll plugin)

> loid wrote:
I can’t get it to display the images.

I’m having the very similar problem. In my case, the on the poll results display fine when using Firefox, but don’t display at all in Internet Explorer 6. I’m assuming this problem somehow involved the .htaccess file in the “xpoll” directory because if I delete that .htaccess file then the images work fine in IE 6.

I double and triple checked the contents of that .htaccess file, but I don’t have a clue what is causing this problem.

Last edited by jeeves (2005-09-26 04:58:07)

Offline

#32 2005-09-26 08:53:32

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [archived] pap_xpoll (multiple poll plugin)

hie, i did miss this plugin .. great idea – i definately would like to use it on TXP Mag but:

Does the plugin work with TXP v. 4.0.+? And any live examples somewhere out ?

Offline

#33 2005-09-26 20:13:55

jeeves
Member
Registered: 2004-06-14
Posts: 31

Re: [archived] pap_xpoll (multiple poll plugin)

Well I have installed in on 4.0. It seems to work fine aside from that problem of not being able to get the images on the poll results to display in Internet Explorer. If I can just get that problem solved, then I will be singing praises of this plugin.

Offline

#34 2005-09-27 16:28:12

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: [archived] pap_xpoll (multiple poll plugin)

jeeves, keep on singin’, I’m working on version 0.2.

Offline

#35 2005-10-05 09:47:13

gregmay
Member
Registered: 2005-09-29
Posts: 12

Re: [archived] pap_xpoll (multiple poll plugin)

Tranquillo, happy to hear you are working on a new version. I just wanted to offer some feedback. First, I love it! It’s pretty much exactly what I was looking for. The instructions were pretty simple to follow, though I had the same .htaccess problem that others did at first (typo).

A few suggestions:

Vote on images- I wanted people to vote on my logo, no text necessary for the first three options and a “None of them” option. Your plugin doesn’t seem to allow the use of images as the actual items to vote on- but I may be wrong. You can sort of workaround this by simply placing the images above and having coresponding numbers, but it’d be nice to be direct.

Results- The results format is weird, in that it repeats the option twice. So, it ends up looking like this for me: Option1-50%Option1 and so on.

Editing an active poll- You can’t change the number of a poll, or modify any of the fields within once you have placed a poll. This means you have to recreate one from scratch!

Small ‘bug’- Hard to fix this one, but maybe a note should be added or some tweak can be done. When you have created a poll and users have voted on it, and you delete that poll and create a new one, the ID assigned to the new one is the same as the old (if you only have one poll active at a time, like I do). This creates problems because the votes carry over to the new poll! The only workaround (right now) is to modify your pages and change the poll ID from “1” to “2” and create a whole new poll. Maybe not a big deal, but I’d prefer to only have one poll active and have a reset results button or something.

Images- why not allow the use of igm_image_popper or something to use images that are already imported/on the site?

Results- how about different ways to show results? Small graphs, or something graphical? I’m sure it’s tough to create images like this, but it would be nice.

Thanks a ton! Looking forward to the next version!

Offline

#36 2005-10-05 10:35:33

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: [archived] pap_xpoll (multiple poll plugin)

Thanx for the suggestions, gregmay. They are always welcome.

I did the first version by only changing the original code where it had to be to fit into Textpattern. As I went through the code more sorrowly now and have improved my php knowledge a bit, I think that the original code could be improved (i.e. as you mentioned: editing a poll). I also try to include some new features and get rid of some nasty stuff:

- no htaccess file anymore (this was not in the original code, but a stupid idea of mine)<br />
- choose between multiple answers (checkboxes) or only one answer (radiobuttons)<br />
- a write-in option<br />
- multiple language support<br />
- individual poll and result form (not hard coded) through presentation/forms<br />
- multiple polls on the same page with individual results preview<br />

“why not allow the use of igm_image_popper or something to use images that are already imported/on the site?”<br />
- change the imageuploadfolder or the way, images are used, as you suggest

“Vote on images/Results- how about different ways to show results? Small graphs, or something graphical?”
I’ll take a look at these suggestions.

“Small ‘bug’- When you have created a poll and users have voted on it, and you delete that poll and create a new one, the ID assigned to the new one is the same as the old”
I think, I already fixed that one by adding auto_increment to the database fields. If it’s missing, I’ll also add that the options/answers will be deleted with the corresponding poll.

“Results- The results format is weird, in that it repeats the option twice. So, it ends up looking like this for me: Option1-50%Option1 and so on.”
As I understand, it’s not displaying the image for the results, perhaps that’s why you have “option1” twice.

I’ld be happy for suggestions concerning the write-in option:
I don’t intend to make it a full survey script, as I think, there are better scripts especially for that. But I can’t make up my mind, how to display the user’s input (into the textfield) in the results. Each of these inputs might be different from the others, so at the end, you’ll have 100 different inputs. Display them as a list (without number/percentage of votes)? This might interfere with other content on the website, as it grows too long.

Last edited by tranquillo (2005-10-06 06:42:55)

Offline

#37 2005-10-06 02:06:21

gregmay
Member
Registered: 2005-09-29
Posts: 12

Re: [archived] pap_xpoll (multiple poll plugin)

A few excellent ideas there that I hadn’t considered (getting rid of htaccess for example). In terms of the write-in option, I personally would definitely use the option – but would not want those results counted in the rest, or perhaps counted as an “Other” field. The write-in would help me get quick feedback from users, but I would only need it accessible to admins. Of course, other people might want/need something completely different!

Oh, and it terms of my results formatting- I don’t have images appearing in the results (nor do I want to). So the text just repeats itself.

Thanks again!

Offline

#38 2005-10-07 01:20:38

gregmay
Member
Registered: 2005-09-29
Posts: 12

Re: [archived] pap_xpoll (multiple poll plugin)

Tranquillo, I just tried to confirm my XML code using W3C and it gave me about 11 errors related to your plugin. One of them is about the text “CHECKED”, which I fixed by going into the polls.php file that is on the server and removing that line. The other 10 are, please excuse the messiness and length:

<code> 1. Error Line 369, column 149: end tag for “input” omitted, but OMITTAG NO was specified .

…name=“option” type=“radio” value=“1”> Option 1</span><br /><span id=“voteopti

You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”. 2. Info Line 369, column 105: start tag was here .

…d=“voteframe”><span id=“voteoptions”><input name=“option” type=“radio” value=

3. Error Line 369, column 181: ID “voteoptions” already defined .

…=“1”> Option 1</span><br /><span id=“voteoptions”>< input name=“option” type=”

An “id” is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element). 4. Info Line 369, column 92: ID “voteoptions” first defined here .

…t?</span><p id=“voteframe”><span id=“voteoptions”>< input name=“option” type=”

5. Error Line 369, column 238: end tag for “input” omitted, but OMITTAG NO was specified .

…name=“option” type=“radio” value=“2”> Option 2</span><br /><span id=“voteopti

6. Info Line 369, column 194: start tag was here .

…1</span><br /><span id=“voteoptions”>< input name=“option” type=“radio” value=

7. Error Line 369, column 270: ID “voteoptions” already defined .

…=“2”> Option 2</span><br /><span id=“voteoptions”>< input name=“option” type=”

8. Info Line 369, column 92: ID “voteoptions” first defined here .

…t?</span><p id=“voteframe”><span id=“voteoptions”>< input name=“option” type=”

9. Error Line 369, column 327: end tag for “input” omitted, but OMITTAG NO was specified .

…name=“option” type=“radio” value=“3”> Option 3</span><br /><span id=“voteopti

10. Info Line 369, column 283: start tag was here .

…2</span><br /><span id=“voteoptions”>< input name=“option” type=“radio” value=

11. Error Line 369, column 359: ID “voteoptions” already defined .

…=“3”> Option 3</span><br /><span id=“voteoptions”>< input name=“option” type=”

12. Info Line 369, column 92: ID “voteoptions” first defined here .

…t?</span><p id=“voteframe”><span id=“voteoptions”>< input name=“option” type=”

13. Error Line 369, column 416: end tag for “input” omitted, but OMITTAG NO was specified .

…name=“option” type=“radio” value=“4”> I don’t like them</span><br />< input na

14. Info Line 369, column 372: start tag was here .

…3</span><br /><span id=“voteoptions”>< input name=“option” type=“radio” value=

15. Error Line 369, column 491: end tag for “input” omitted, but OMITTAG NO was specified .

…name=“stage” type=“hidden” value=“2”>< input name=“poll” type=“hidden” value=”

16. Info Line 369, column 447: start tag was here .

…e=“4”> I don’t like them</span><br />< input name=“stage” type=“hidden” value=

17. Error Line 369, column 537: end tag for “input” omitted, but OMITTAG NO was specified .

…me=“poll” type=“hidden” value=“1”></p>< input name=“btnVote” type=“submit” val

18. Info Line 369, column 491: start tag was here .

…name=“stage” type=“hidden” value=“2”>< input name=“poll” type=“hidden” value=”

19. Error Line 369, column 605: end tag for “input” omitted, but OMITTAG NO was specified .

…bmit” value=“Vote” id=“votebtn”></div></form>

20. Info Line 369, column 538: start tag was here .

…e=“poll” type=“hidden” value=“1”></p>< input name=“btnVote” type=“submit” valu
</code>

Some I think I could fix, others I’m not certain of. Am I using an outdated version or something, are other people having this issue?

Thanks!

Last edited by Sencer (2005-10-13 19:33:48)

Offline

#39 2005-10-13 10:13:03

Anton
Plugin Author
From: Alingsås, Sweden
Registered: 2004-11-16
Posts: 138
Website

Re: [archived] pap_xpoll (multiple poll plugin)

any news on this plugin? looks promising with i18n and everything..

Offline

#40 2005-10-28 15:21:07

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

Re: [archived] pap_xpoll (multiple poll plugin)

Yea nice plugin, can anyone tell if this is still in the pipes?


regards,

Agust

Offline

#41 2005-10-28 15:45:59

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: [archived] pap_xpoll (multiple poll plugin)

Version 0.2 is coming soon.

Offline

#42 2005-11-18 19:28:33

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [archived] pap_xpoll (multiple poll plugin)

Any news on the 0.2 ? I got strange behaviour right now I can’t track down, it’s very annoying :(

Gregmay, I edited the code to comply to strict xhtml. I got only one error left (the name attribute of the main frontend form). But I guess we should wait for 0.2 before rewriting lines and lines…

Offline

#43 2005-11-18 20:53:47

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [archived] pap_xpoll (multiple poll plugin)

Well, watching dumb TV series help clear the mind. I found my strange PHP error… it doesn’t like single quote in the input strings. I don’t know enough PHP to clean it though :(

Offline

#44 2005-11-24 13:03:01

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [archived] pap_xpoll (multiple poll plugin)

Who is using this on his/her site? Can someone except for Paul Arms supply a link?

Tranquillo are you still working on it? If so, this would really be great!

Offline

#45 2005-11-29 12:43:13

Martina
New Member
Registered: 2005-11-17
Posts: 3

Re: [archived] pap_xpoll (multiple poll plugin)

Hi! Firstly this is great plugin, and it is working fine – the only thing I’m having trouble with is width of the images presenting votes. I tryed to add style in polls.php but it is not working… You can see my trouble at: http://www.game-master.org/txp/news

Last edited by Martina (2005-11-29 12:43:32)

Offline

Board footer

Powered by FluxBB