Jump to content

Extension talk:AJAXPoll

About this board

It is preferred that you open a regular bug report for new issues.

No previous topics.

Makertrainer (talkcontribs)

I would like to be able to use long IDs for my quizzes. Th extension allows me to set the ID as long as I'd like, but if the ID is too long, it doesn't let me vote. I would like to have quite a long string as my ID, as it would make keeping track of them easier (eg. ID could be Lewis Carroll - Alice in Wonderland). I need to use ID's as the text of the quizzes would be mostly the same (like or dislike). I guess the problem might have something to do with the length of the names of the SQL tables being created.


I would also like to know if there is any way to assign classes to the polls.

Reply to "ID length"

Multiple polls interfere with each other

2
Makertrainer (talkcontribs)

I have two polls on a page. If I vote on one, and detele my vote, when I hover over the other poll's number of votes, they disappear. They reappear once I vote in that poll too, but I'd like to avoid this bug altogether if possible.

To be more specific, the text in the span that contains the number of votes disappears from the HTML, it is not a styling issue.


MW 1.37, Vector skin. Latest version of the extension.

Makertrainer (talkcontribs)

For anyone having the same problem, I added this to the CSS:


.ajaxpoll-answer-vote { pointer-events: none; }


This also disables the feature of showing "x% of votes" when hovering over the number of votes. I wanted to disable this feature anyway, so it works out for me, but it might not be a good solution for everyone, so a fix would still be good.

Reply to "Multiple polls interfere with each other"

Undefined offset: 15 in /extensions/AJAXPoll/includes/AJAXPoll.class.php on line 344

2
Deletedaccount4567435 (talkcontribs)

How to fix this?

Wikinaut (talkcontribs)
Reply to "Undefined offset: 15 in /extensions/AJAXPoll/includes/AJAXPoll.class.php on line 344"

MobileFrontend compabilty

2
Innosflew (talkcontribs)

Is there a way to make it compatible with the MobileFrontend? Currently when a poll is viewed in the mobile version it seems broken and people cannot vote. The only possible way to vote is on the desktop version of the wiki.

Alexandroslee (talkcontribs)

Me too!

Reply to "MobileFrontend compabilty"

Can this extension be used as a mechanism to approve articles?

1
Oleolsenkjhølkølk (talkcontribs)

I am thinking of an editorial board, who has to approve submitted articles before the article goes live. Is there a way to use this for that? Or does anyone know of a voting type extension which can be used for such a purpose?

Reply to "Can this extension be used as a mechanism to approve articles?"
Eric2XU (talkcontribs)

Anyone know how to get the <poll> tags into a page using VisualEditor without switching to edit source?

Wikinaut (talkcontribs)

Sorry, I have no idea.

SamanthaNguyen (talkcontribs)

VisualEditor should provide some hooks for allowing VE support. I've created a ticket about this and will research on it. :-) Closing this thread as it's now moved upstream (Phabricator).

@Eric2XU: If you don't have a Phabricator account yet, please check out this tutorial and press the "Subscribe" button on the sidebar of the ticket to receive notifications for it!

Reply to "VisualEditor"
Summary by Star Warden

Fixed

Star Warden (talkcontribs)

Hi. The extension won't allow anyone to vote, returning 'not entitled to vote', even though voting is set to true for users. Is there a fix to it or am I doing something wrong? I ran both composer update and php update.php and still no luck. I am using the REL1_27 version of AjaxPoll and so is the mediawiki software of our wiki.

SamanthaNguyen (talkcontribs)

The most active person I know that maintains this extension is User:Jack Phoenix so I'll poke her about it :)

Star Warden (talkcontribs)

Thanks!

Jack Phoenix (talkcontribs)

No idea what's going on in here, sorry. Can you pastebin the wiki's LocalSettings.php with passwords and other such sensitive stuff removed? That might help a bit in debugging this issue, but as far as I can see, it should "just work" and it works as configured on the testing wiki.

Star Warden (talkcontribs)

Hi. Sorry for the late reply, I'll get to it as soon as I can.

Star Warden (talkcontribs)
Star Warden (talkcontribs)

Hi. I am happy to announce that the poll is working once again. It fixed itself after upgrading to MW 1.28 and I have no idea what fixed it. Thanks!

Undefined offset: 9 in /wiki/extensions/AJAXPoll/AJAXPoll_body.php on line 338

1
Deletedaccount4567435 (talkcontribs)

Undefined offset: 9 in /wiki/extensions/AJAXPoll/AJAXPoll_body.php on line 338

How to fix this?

Reply to "Undefined offset: 9 in /wiki/extensions/AJAXPoll/AJAXPoll_body.php on line 338"

A simple way to see who has voted in poll? [NO]

2
Summary by Jkmartindale

Not a planned feature.

67.22.86.136 (talkcontribs)

Is there a simple way to see which users have voted? I currently have a poll which requires everyone with an account to vote on a small wiki. there are 6 out of 8 users that have voted but I don't know which ones. I thought I might post here before looking at the DB tables.

Wikinaut (talkcontribs)

No, there is currently no code for showing the voters or non-voters, and I do not intend to implement such a feature.

Is there a page where I can view all of the polls I created with AJAXPoll?

6
Tribly (talkcontribs)

Is there a page where I can view all of the polls I created with AJAXPoll, like for example the Special:ViewPoll page in the PollNY extension?

Wikinaut (talkcontribs)

Any AJAXPoll page is automatically linked on the automatic tracking page "ajaxpoll-tracking-category". The default text is "Pages with a poll".

Look to the Category box on the bottom of a poll page. Goto the poll tracking category where you will the list of all pages with AJAXPoll extension on it.

Tribly (talkcontribs)

Thanks, that was helpful. :) But is there a page where I could see all of the polls I ever created regardless if they are active on a page right now or not?

Wikinaut (talkcontribs)

No. As Admin you can have a look to the AJAXPoll table, where all-ever-created polls have entries - the polls are identified by a hash of the text string inside the <poll> tags.

Tribly (talkcontribs)

I see. Thanks again! :) Could a poll management page (that is similar to PollNY's management pages) be included in the future releases of this extension? A page where anyone could check out every active/non-active poll ever created, where staff members could even modify an already created poll if they want to correct a mistake?

Wikinaut (talkcontribs)

"Could": yes, but by someone else.

My capabilities, and time for coding business, are too limited to add such a page in the near future. I agree, that such a "AJAXPoll administration page" would be very useful.

Reply to "Is there a page where I can view all of the polls I created with AJAXPoll?"