Open main menu

Extension talk:AJAXPoll

About this board

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

No previous topics.

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

2
Zoglun (talkcontribs)

How to fix this?

Wikinaut (talkcontribs)
Reply to "Undefined offset: 15 in /extensions/AJAXPoll/includes/AJAXPoll.class.php on line 344"
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
Zoglun (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?"

Should document what happens if a poll changes

2
VictorPorton (talkcontribs)

It is not documented what happens if a poll changes, for example if a new answer is added. Please document.

Also it would be good to allow the user to add a new answer in the middle, edit an answer, etc.

Also, what if the same poll is placed at several pages, will them be counted together or not?

Wikinaut (talkcontribs)
  1. The Poll is identified by the hash of the poll text (data), you can see the hash in the HTML page source code like [null ajaxpoll-id-0B689754CB7B11764B1761A962BDAAA0]
  2. All vote actions and so are actually working on that ID, and therefore any text change creates a new hash, and a new poll (the old is not deleted - so if you restore the text, the old poll is magically resurrected, unless you as admin haven't deleted it in the database.
  3. Editing by user is not implemented, and difficult. The Extension was not designed to handle this.
  4. If you place the same poll on several pages - because the text and therefore the hash of it is the same, all actions work on the same database entry. In that way, the answer is "not. Votes are the same, and are not added together"
Reply to "Should document what happens if a poll changes"

[WORKS FOR ME] Download Snapshot does not work

4
198.180.131.38 (talkcontribs)

I either get nothing or I get the message 'Invalid response from remote subversion client.' Any thoughts? Dan

Wikinaut (talkcontribs)

I tried it, it worked for me. If you can, make a checkout with svn.

198.180.131.38 (talkcontribs)

Thanks. It's easier if that link works, but I'll make do.

Nednats~mediawikiwiki (talkcontribs)
Reply to "[WORKS FOR ME] Download Snapshot does not work"
Return to "AJAXPoll" page.