XF 2.2 Default poll settings - display votes publicly

Solution
Edit the poll_macros template and change line 243 from this:

HTML:
<xf:option name="poll[public_votes]" selected="{{ ($draft AND $draft.public_votes) OR $poll AND $poll.public_votes }}">

To this:

HTML:
<xf:option name="poll[public_votes]" selected="{{ 1 }}">

Note that only sets the checkbox to active, it doesn't remove the ability to uncheck it.
Edit the poll_macros template and change line 243 from this:

HTML:
<xf:option name="poll[public_votes]" selected="{{ ($draft AND $draft.public_votes) OR $poll AND $poll.public_votes }}">

To this:

HTML:
<xf:option name="poll[public_votes]" selected="{{ 1 }}">

Note that only sets the checkbox to active, it doesn't remove the ability to uncheck it.
 
Solution
Back
Top Bottom