Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

A better poll plugin?

+8 votes

Okay, so using the Q2A voting system for polls turns out to be not the ideal solution... what happens is the person who posted the poll gets lots of points for all the people voting on their answers :)  So, here's the sort of poll plugin people were asking for, I think.  No promises, but it seems to work as expected, and is fully CSS configurable.  Here it is with some basic css and custom images for the vote buttons:

Of course, almost anything is possible with css; If someone has an idea for default css, suggestions are welcome.  So, what do you think?

Oh, and the source is at the same place, on github:

https://github.com/NoahY/q2a-poll

asked Sep 24, 2011 in Plugins by NoahY
recategorized Nov 13, 2011 by gidgreen
It seems that we cannot edit the poll (when I click "Edit the question" I can edit only the question, not the poll, but when I "Ask the question" I can also create the poll)?

11 Answers

0 votes
Notice: Use of undefined constant QA_HTML_THEME_LAYER_URLTOROOT - assumed 'QA_HTML_THEME_LAYER_URLTOROOT' in /home/surakz5/public_html/rus/qa-plugin/q2a-poll/qa-poll-admin.php on line 250
answered Sep 24, 2011 by Ербол Сери
okay, should be fixed now.
+1 vote

User no login! Ask page.

 

answered Sep 26, 2011 by yerbol
should be fixed, sorry I didn't reply sooner.
0 votes
Question2Answer query failed:

SELECT BINARY content as content, votes, id FROM qa_polls WHERE parentid=24

Error 1146: Table '*******.qa_polls' doesn't exist
answered Sep 27, 2011 by Raj
You'll have to disable, save then enable and save the poll plugin in admin/plugins.  That will create the table.
0 votes
How i can edit poll?
answered Sep 29, 2011 by Ербол Сери
You misunderstood me! If the user asks a question and makes a birdie on a poll and then leave it blank is the inscription (# # # no choices found for poll!) And at the end of the issue would not be an inscription POLL! Many users do not understand how to take advantage on the issue and furnish the bird.


Sorry, I translated via Google transliteration because I understand very little of english!
Ah, so you want it to be idiot-proof ;)

Okay, I've added a check to make sure they add choices... I think that's what you're on about.
0 votes

not working properly. screenshot attached.

answered Oct 2, 2011 by Raj
Looks like something to do with your css... can you send me the link to your site, I'll have a look.  Otherwise, try resetting the poll options in admin to default.
Resetting works. great. NoahY, u are a genius!
0 votes

Nice and very usefull plugin, but how i can disable /polls pages becouse it just show all questions instead of polls (may posibly be becouse of my Q2A core modification). Also i think it's better place for tag [poll] to be after question title, not before it.

However this plugin is very usefull and would be nice to see more features like points earning for voting... (?) or something... if plugin is still supported.

I'm really appreciated and thankfull to NoahY for all plugins he made. Thanks !

answered Oct 3, 2011 by Another one
the polls pages should not be enabled by default.  admin/pages should let you edit/delete the link.

the [poll] tag does come after the title; maybe some core modification of yours interferes with this.

thanks for the appreciation; always nice to have positive feedback :)
0 votes

 

When I create a poll, then this marks "> shows up in one or two vote button. Somethme it shows first / last / middle vote button. And these button become uncleckable. But if i select other vote button such as 'NGOs' then this marks "> go away and all vote buttons become clickable.

And I don't understand from where Fully Bangladeshi comes out. Is it autometically comes from Facebook user profile?

Thanks.

answered Oct 8, 2011 by Raj
I think you're using an old version of the plugin... it's all messed up anyway, but on my own site, it's not messed up.  Can you try updating the code?

And I can't find any problem with the "> showing up.

As for the "Fully Bangladeshi", that's the user's signature.
Thanks for your continuous support.

I have updated the recent version today. But still having "> problem with a new error "Undefined variable: full in ........ /NoahY-q2a-poll-965d59b/qa-poll-page.php on line 82'' showing both in internet explorer 8 and firefox.  I am uploading the screenshots soon.

I am agree with powerUser. If options 2 or 3 then "> not shows. If more than 3 options then it shows.
0 votes

01. Problem in these Vote Button appears only in internet explore.

02. This "Notice: Undefined variable: full in  ........ qa-poll-page.php on line 82" appears in all browsers when vewing Poll. 

Problem in Vote Button appears only in internet explorer (i am using IE8)

 

03. "> sign still shows in crome and firefox if options are more than three.

answered Oct 15, 2011 by Raj
Thanks. It works.
Actually I don't know how to set "display_errors" set off.
I tried the poll on my bunch of friends, asking them 3 questions.
No one responded because they had to log in...

Maybe it would be possible to give option switch between remembering IP (anonymous enabled) and username (only logged in)?
0 votes

I leave such errors in version 1.5 beta

Notice: Undefined index: main_form_tags in /home/surakz5/public_html/qa-include/qa-app-format.php(1452) : eval()'d code on line 57

and

 

Notice: Undefined index: updatetype in /home/surakz5/public_html/qa-include/qa-app-format.php on line 471

Notice: Undefined index: updatetype in /home/surakz5/public_html/qa-include/qa-app-format.php on line 480

Notice: Undefined index: updatetype in /home/surakz5/public_html/qa-include/qa-app-format.php on line 471

Notice: Undefined index: updatetype in /home/surakz5/public_html/qa-include/qa-app-format.php on line 474

Notice: Undefined index: updatetype in /home/surakz5/public_html/qa-include/qa-app-format.php on line 480

answered Dec 25, 2011 by yerbol
0 votes
Hi all and NoahY,

I love all your stuff, but I've got a problem with poll plug. I've been trying to translate
this two:

"You must enter at least two choices for the poll."
"you are not allowed to vote"

in admin panel (the changes not saving) and qa-poll-admin.php (after rewiriting, still the default english language appears)

In the admin panel I don't mind, but in the frontend popup screen more important.
 

So where, can I can exchange these two lines?

 

Thanks in advance
answered Mar 10 by nehogymar
try the latest version of the plugin; it uses a language file that you can edit.
0 votes

One more thing,

I reduced, the admin "Minimum length of answer:  to 0" because I don't whant to force the user when answering, write something for vote, just vote freely....

But with this I got:
/qa-include/qa-theme-base.php on line 1844 ($a_item['content'],)
probably because the content is empty(?)

So how is it possible avoid this message, or using just for voting by self with other approach?

Thanks


 

answered Mar 10 by nehogymar
I don't see how this is related to the poll plugin...