Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2006-07-18 02:02:12

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [archived] pap_xpoll (multiple poll plugin)

I’ve a little issue with version 02, the plugin seems to work well but I can’t introduce the lang file into my database! I’m using the spanish version updated from the server.
What I did?
I copied the en-gb.txt file to my textpattern/lang/ dir, rename that file to es-ar.txt (spanish-argentina) and translated. Then I’ve tried to load it from tab preferences > Manage languages > Install from file but nothing appear in the list … can’t understand what’s the trouble.

Any idea?

PS: Im working on my localhost (W.A.M.P)

Offline

#74 2006-07-19 05:21:07

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [archived] pap_xpoll (multiple poll plugin)

Not sure which version of x-poll this uses, but apparently there is a security issue with version 2.30.

See:

Er…wait, when you say “based on x-poll,” do you mean using x-poll code or that it’s your own replicated version? Anyway, there’s a security issue with x-poll, just thought I’d bring it to light.

Last edited by Destry (2006-07-19 05:24:00)

Offline

#75 2006-09-11 15:54:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: [archived] pap_xpoll (multiple poll plugin)

Tranquillo, great plugin.

This post might be too specific for the forum so we can take the discussion offline if you prefer (can’t message you direct ‘cos your e-mail link is set private). Contact me if so.

What I’d like to do in essence is make polls country-specific. I have a dropdown on the front page that allows people to change their home country. It refreshes the page and sets a cookie to the two-letter code like en, fr, de etc [It doesn’t necessarily change the language of the page – though it could if I could figure out how to do it in TXP!]

The site is for a TV show, so a poll in one country might be “who should host next week’s show” and in another country at the same time, the poll might be “What did you think of last night’s show?”. I could do with some link between the country code list and the poll id so I can specify to which country a particular poll relates and then only show the latest poll that matches the country code (or none, if no country is selected). Does that make any sense?

I could add a column to one of your tables or create another many-to-many linking table, but I don’t really know how to hack your plugin to be country-aware. When a poll is created there would have to be a dropdown or text box for selection of the country code.

Do you think this is a reasonably easy mod for me to make? Any idea where I might look in your code to make a start? I can code PHP to a certain degree.

Alternatively, what if your new version of the plugin allowed polls to be grouped into categories and there was an attribute to specify the category to show a poll from? I could then make categories for each country code. Can I retrofit this idea into your existing plugin until the new version comes along?

Thanks in advance for any ideas.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#76 2006-12-05 16:34:11

saturnflyer
Member
Registered: 2006-01-22
Posts: 40

Re: [archived] pap_xpoll (multiple poll plugin)

I’m having trouble with the plugin where the results are not being shown. http://tinyurl.com/yz44q3

It works with one poll, but not with my latest. If I disabled the latest and show the previous one, I can click to view the results without voting. But I can’t view the results unless I vote for this latest poll.

Has anyone seen a problem like this?

(I should note that I’m using version 0.2)

Last edited by saturnflyer (2006-12-05 16:36:38)

Offline

#77 2007-01-15 22:34:47

gaza
Member
Registered: 2004-11-22
Posts: 29
Website

Re: [archived] pap_xpoll (multiple poll plugin)

I’ve installed v0.2 twice, and I get this in the extensions tab:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.manet/salchicha/canaldevideos.com/pap_xpoll_lib.php on line 32

No idea what to do, because I’ve deleted the tables in the database, deleted it… and then installed again, and it still won’t work.

Does anyone have the url to the very latest version?

Thanks,

G

Offline

#78 2007-01-16 16:27:36

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

Re: [archived] pap_xpoll (multiple poll plugin)

Did you define PFX in pap_xpoll_install.php correctly? It has to be the same as the Textpattern table prefix (incl. underscore!). If txp was installed without prefix, leave it empty in pap_xpoll_install.php

Last edited by tranquillo (2007-01-16 16:27:49)

Offline

#79 2007-01-16 17:23:54

gaza
Member
Registered: 2004-11-22
Posts: 29
Website

Re: [archived] pap_xpoll (multiple poll plugin)

Thanks! What happened was that since I knew textpattern had a prefix “txp_” I was simulating the same prefix. I just had to leave it blank!

Thanks,

G.

Offline

#80 2007-02-19 10:11:03

mearso
Member
From: Wales
Registered: 2004-03-25
Posts: 18
Website

Re: [archived] pap_xpoll (multiple poll plugin)

I seem to be having a problem with the cookie protection. Any tips on where I would start to diagnose what the problem might be?

I’ve created a new poll with the option to allow a user to vote once a year. But on the page a refresh adds an extra vote.

Offline

#81 2007-02-19 16:52:42

mearso
Member
From: Wales
Registered: 2004-03-25
Posts: 18
Website

Re: [archived] pap_xpoll (multiple poll plugin)

I’ve found the solution to my problem.

It was in the question of the poll. The user had put an apostrophe in the question whcich was being encoded, which in turn meant multiple voting was possible.

remove the apostrophe, and it was all fixed. In case someone else comes across thsi problem.

Offline

#82 2007-04-18 10:37:49

corra24
Member
Registered: 2006-08-19
Posts: 59

Re: [archived] pap_xpoll (multiple poll plugin)

There’s a way to increase the number (default: 10) of option choices for a poll?

Thanks.

Corrado

Last edited by corra24 (2007-04-18 10:38:34)

Offline

#83 2007-05-01 13:06:52

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: [archived] pap_xpoll (multiple poll plugin)

does this still exist i can’t seem to download it anywhere


Grrr RRR nnndth grrr Skeek!

Offline

Board footer

Powered by FluxBB