XF 2.2 How to set all surveys to be anonymous?

urivil

Active member
Hello,
I want when users post polls, the other users' votes are displayed anonymously, without being able to see what everyone voted for.
At the moment, whoever opened the survey can decide whether the survey will be anonymous or not. I would like him not to have such a choice, and the surveys will always be anonymous.
How can I do this?
 
You can uncheck this:
Allow the results to be viewed without voting
So nothing is seen until they vote.
And uncheck this for anonymous:
Display votes publicly
 
You can uncheck this:
Allow the results to be viewed without voting
So nothing is seen until they vote.
And uncheck this for anonymous:
Display votes publicly
I want to deny the survey developers the possibility to decide, and make all surveys anonymous [with no ability for the survey developer to control it].
 
There's probably a better way with CCS maybe but removing this from the template poll_macros removes the checkbox for display polls publically.

Code:
<xf:if is="!$poll OR $poll.canChangePollVisibility()">
            <xf:option name="poll[public_votes]" selected="{{ ($draft AND $draft.public_votes) OR $poll AND $poll.public_votes }}">
                {{ phrase('display_votes_publicly') }}
            </xf:option>
        </xf:if>
As it is unchecked by default, it should do what you want.
 
Last edited:
Top Bottom