Hey, I think that'll be hard to make. I think it's possible with some js.
I'd like to learn how. I'd like to recommend it, also, as a default setting. May reduce groupthink. May increase participation. And nothing is lost. Everyone who votes still gets to see poll results.
Add the following to your wiki's MediaWiki:Common.js:
$(function() { $('.ajax-poll .pollAnswerVotes').hide(); $('.ajax-poll [type="submit"]').on('click', function() { $('.ajax-poll .pollAnswerVotes').show(); }); });
Note that this will affect all polls in your wiki.
Perfect. Thanks!
However, this method doesn't remember that a user (by name or IP address) has already voted, right? So, upon returning to the page to see the newest/latest poll results, the user must vote again? That will be a problem.
It does add the user's vote, at least for me it does.
Yes, it adds the user's vote. But when the user leaves and returns later to the page, the votes are once again hidden. To see them again he has to vote again. That's a problem. Better if they remain visible to him, provided that he has voted once.