• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Where do i go so i can enter only one option in the poll ?

aculate

Well-known member
#1
Hello,
I was able to do this in vb3.8.4 (by changing something on a template) and i need help to do the same with xenForo.
I want to create a poll with only one option, something like "I do want to participate ..." I need the user to explicitly check the box if he wants to participate on a special event.
I know there are other ways to do this, but i prefer the user checking a box, and using the poll system is the best way to achieve this.

Which template do i need to adjust so i can enter only one option in the poll ?

Thanks
 

Jake Bunce

XenForo moderator
Staff member
#2
Requires code modification.

library/XenForo/DataWriter/Poll.php

Search for "_preSave". That is where the minimum number of choices is enforced.