Extension talk:PollNY
Add topic- Q: I am trying to implement PollNY onto my web site (http://www.ressources-qhse.org). While creating a poll, I am limited to 2 possible answers (binary choice), while I would like to have some more so as to create Multiple Choices. A quick review of your code seems to allow up to 10 answers but I did not discover to to trigger this option. Any suggestion to leverage my searches?
- A: No, you're not. You can have up to 10 answers. Are you seeing any JavaScript errors in your browser's debugging console when accessing the poll creation tool at Special:CreatePoll? What version of PHP, MySQL and MediaWiki are you using? What about your browser -- is it the most recent version available and is JavaScript enabled?
- R: Server is a dedicaded server at OVH running OVH Release 2 (Gentoo Linux mysql-5.0.44-r2, PHP Version 5.2.13-pl0-gentoo, latest officiel release of mediawiki). Tested with latest release of firefox under Max OS X Lion and Latest version of Ubuntu, javascript enabled. No error message received when creating poll. tested also using latest version of Safari (Mac OS X Lion) and Chromium (Ubuntu). 91.179.41.14 09:10, 6 October 2011 (UTC)
- I'm unable to reproduce this on my Windows 7 box with Internet Explorer 9. When I go to Special:CreatePoll, under "Answer Choices", there are two inputs. When I type something on the Answer Choice #2 input, Answer Choice #3 input appears and so on, up to Answer Choice #10. If by "latest official release of MediaWiki" you mean MediaWiki 1.17.x, I'd suggest upgrading to 1.18 (which hasn't just yet been released, but you can check it out via SVN:
svn co http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_18/phase3/
— I haven't really tested the social tools too much against 1.17 release branch and there have been some bug reports against the 1.17 branch of MW. --Jack Phoenix (Contact) 19:45, 6 October 2011 (UTC)
- I'm unable to reproduce this on my Windows 7 box with Internet Explorer 9. When I go to Special:CreatePoll, under "Answer Choices", there are two inputs. When I type something on the Answer Choice #2 input, Answer Choice #3 input appears and so on, up to Answer Choice #10. If by "latest official release of MediaWiki" you mean MediaWiki 1.17.x, I'd suggest upgrading to 1.18 (which hasn't just yet been released, but you can check it out via SVN:
Is it a simple matter to expand the number of answers? I have a few polls to do with 15-20 answers each. Thanks! 155.206.9.6 16:31, 16 December 2011 (UTC)
- Q: has PollNY been tested against version 1.22? Also, I Can't find support page link on this page? GitHub? — Preceding unsigned comment added by 67.22.86.136 (talk • contribs) 02:38, 24 December 2013
- I'm pretty sure I tested it against 1.22. Regarding your previous edit, which was actually far more informative than this, PollNY requires Extension:SocialProfile; SP provides the UserStats class.
- "I Can't find support page link on this page? GitHub?" What do you mean by this? This page, Extension talk:PollNY, is the official support page. Bugs should be reported on Bugzilla. --Jack Phoenix (Contact) 00:43, 24 December 2013 (UTC)
- R: I changed my previous edit after realizing that I installed PollNY without the dependent Extension:SocialProfile. I proceeded to make a poll and wondered why it was not working. I realized the problem was that the extension SocialProfiles was not installed. Installed SocialProfiles. So I think I have everything, but installed them in the wrong order. Not surprising, I'm getting an error when I attempt to view a poll I have created: Error text: "A database query error has occurred. This may indicate a bug in the software." I seem to be able to open all these pages: Special:AdminPoll, Special:CreatePoll, Special:ViewPoll. Not sure what needs to be done next.
Wish list
[edit]- A special group which allow registered group members to view the ongoing results without being forced to vote themselves (which often bias the results) RiskManager 09:00, 19 December 2011 (UTC)
- A special poll status that "hides" the poll (usefull while developping it as group editors, or when it is closed and should not be visible anymore)91.179.86.70 14:42, 19 December 2011 (UTC)
Not completely AJAX
[edit]When a wiki runs behind caching reverse proxy and anonymous users are allowed to vote, they see cached vote page. Effectively, only one anonymous user can vote on a poll.
Any comments?
Alex Mashin (talk) 05:50, 5 December 2014 (UTC)
BUG: Discuss textlink still shows on an embeded page when using <pollembed>
[edit]Since the default behavior is set to "false," this shouldn't be appearing on embeded polls.
I have also tried to force it to false by setting $wgPollDisplay['comments']= false; in LocalSettings.php, but it does not make a difference.
- Mediawiki version: 1.25.2
- PollNY version: REL1_25-addafb2.tar.gz
Cheers, BradLeeBH (talk) 02:17, 29 August 2015 (UTC)
- Thanks for the report, I've fixed this in Change-Id: I0f5561b8db3d54f622d2ec00dffa0897b6be91bb! --Jack Phoenix (Contact) 13:26, 2 September 2015 (UTC)
Request: Poll navigation menu
[edit]It would be great if there was a proper navigation bar underneath the polls.
E.g. < Previous poll | Next poll > | All polls
Regards, BradLeeBH (talk) 02:38, 31 August 2015 (UTC)
- This sounds like a nice idea; I'm not sure when I'm able to implement it, though. In the meanwhile, you can view all polls on Special:ViewPoll. --Jack Phoenix (Contact) 13:26, 2 September 2015 (UTC)
Request: <pollembed "latest"> config option
[edit]That way you could use <pollembed "latest"> and have it display the latest poll, rather than having to manually update it every time a new poll was created.
Sincerely, BradLeeBH (talk) 02:44, 31 August 2015 (UTC)
BUG: Javascript for when you have already voted on a poll doesn't display properly.
[edit]See example here: http://i1219.photobucket.com/albums/dd437/imacheat/PollNY%20horrible%20javascript_zps60xzbymp.jpg
Using MW 1.25.2. Thanks, BradLeeBH (talk) 03:22, 31 August 2015 (UTC)
- Hmm, interesting...I'll try to look into this; not sure why this is happening. --Jack Phoenix (Contact) 13:26, 2 September 2015 (UTC)
Request: Prevent anonymous users from voting on polls?
[edit]Is there a way to prevent anonymous users from voting on polls? If not, this would be useful to have/add.
Regards, BradLeeBH (talk) 08:38, 2 September 2015 (UTC)
- Not currently. This should be easy enough to add; I'll try to prepare a patch later today or during this week to address this. --Jack Phoenix (Contact) 13:26, 2 September 2015 (UTC)
- Now that gerrit:235892 has been merged, you should be able to control this by giving or revoking the
pollny-vote
user right. --Jack Phoenix (Contact) 20:50, 18 September 2015 (UTC)
- Now that gerrit:235892 has been merged, you should be able to control this by giving or revoking the
Request: Disable points system
[edit]Can we have a way to disable getting points for voting on polls?
Thanks, BradLeeBH (talk) 08:59, 2 September 2015 (UTC)
- This should be doable via
$wgUserStatsPointValues['poll_vote'] = 0;
, I think. --Jack Phoenix (Contact) 13:26, 2 September 2015 (UTC)