Last modified: 2013-09-01 10:43:56 UTC
I just update ajaxpoll to 1.84(MW 1.20.5), the show-results-before-vote does not work and anons can't vote at all. I set the group permission like this: $wgGroupPermissions['*']['ajaxpoll-vote'] = true; $wgGroupPermissions['*']['ajaxpoll-view-results'] = true; $wgGroupPermissions['sysop']['ajaxpoll-view-results-before-vote'] = true; It return "A wrong token was received, and your vote is ignored." when not login no matter what browser I am using. Here is a test link: http://zh.moegirl.org/index.php?title=Special:WikiForum&thread=277
OK, I see, show-results-before-vote figure only exist in trunk version. Even not in the 1.21 stable version.
I am just testing your site, and wanted you to update to the master versions of both mediawiki core and the extension (the master versions do work perfectly for me, but I did not check compatibility between older versions). Please let me know, if and what relevant AJAXPoll-relevant PHP warnings or errors are logged in your server log file.
Thanks for reporting.
I am sorry, what do you mean master versions of Mediawiki? the newest version in git? Just download one MW from https://github.com/wikimedia/mediawiki-core/tree/master MediaWiki 1.22alpha and AJAXpoll from https://git.wikimedia.org/zip/?r=mediawiki/extensions/AJAXPoll&format=gz your extension do work in 1.22 now and wgGroupPermissions have overall control. But the show-results-before-vote still have no effect on the poll at all. Due to lots of user reporting extension error I rolled back the AJAXpoll in zh.moegirl.org.
Yes, with "master" I do mean origin/master version in git, for MediaWiki core and for Extension:AJAXPoll. If this combination works for you, I suggest you close the bug.
I believe the MW I got from here https://github.com/wikimedia/mediawiki-core/tree/master is the master version and the show-results-before-vote founction does not work for me. Does this extension require other special setting or extra software?
if you are not sure which MW version you use, check the "Special:Version" page.
(In reply to comment #6) > I believe the MW I got from here > https://github.com/wikimedia/mediawiki-core/tree/master is the master version > and the show-results-before-vote founction does not work for me. Does this > extension require other special setting or extra software? Zoglun, please can you check, whether this problem reported by you is present (or not) when running the most recent mediawiki core ("HEAD") and AJAXPoll ("HEAD"). In Special:Version you see the exact version numbers, hashes and commit dates. If it works, then please add a comment and please close this bug.
Currently using MW 1.22WMF9, the "show-results-before-vote" still not work for me. Here is a test: http://en.moegirl.org/Sandbox Download the newest AJAX POLL ccdd3ad from https://git.wikimedia.org/zip/?r=mediawiki/extensions/AJAXPoll&format=gz delete the old table of ajaxpoll_info and ajaxpoll_vote then run update.php Wrote two vote in http://en.moegirl.org/Sandbox : show-results-before-vote=1 and show-results-before-vote=0 login as user: able to see all result as anonymous:You are not entitled to view results of this poll before you have voted.
uh, you have to type "voting" instead of "vote" <poll ..... show-results-before-voting=0> ... </poll> or <poll ..... show-results-before-voting=1> ... </poll> see code lines 85 https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FAJAXPoll/f60c7b3c67f1812ba15e81fe4a6e22b882cb2249/AJAXPoll_body.php Manual page corrected. Bug closed. (pls. reopen, if your problem still exists)
OMG this is toooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo stupid. https://www.mediawiki.org/w/index.php?title=Extension:AJAXPoll&oldid=773306 It wrote vote for sooooooo long time.
Zoglun: it's not your mistake: as mentioned, I forgot to harmonise the manual page at all places, when I changed the key from show-results-before-vote to show-results-before-voting . Perhaps I need to ask the users (like you), what of the two is better, or even to change the string another time to make it easy to remember - which is the goal. What do you think ? Is the present name "show-results-before-voting" okay, or should it be changed, and to what alternative ?