Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

More than 5 answers?

clethrillclethrill ✭✭
edited December 2011 in Vanilla 2.0 - 2.8

I have not looked at the code, but is it possible to have more than 5 possible answers? I have a habit of using 'other' as the 5th a lot.

Best Answer

  • KastangKastang New
    edited December 2011 Answer ✓

    @clethrill:

    The only change that should need to be made to the code is adding another TextBox to the view.

    In views/kPollCreateCreate.php add something like this between lines 48 and 49:

    <li>
         <?
              echo $this->Form->Label('Answer #6', 'Answer #6');
              echo $this->Form->TextBox('PollAnswer[]');
         ?>
    </li>
    

Answers

  • KastangKastang New
    edited December 2011 Answer ✓

    @clethrill:

    The only change that should need to be made to the code is adding another TextBox to the view.

    In views/kPollCreateCreate.php add something like this between lines 48 and 49:

    <li>
         <?
              echo $this->Form->Label('Answer #6', 'Answer #6');
              echo $this->Form->TextBox('PollAnswer[]');
         ?>
    </li>
    
  • clethrillclethrill ✭✭
    edited December 2011

    Sweet, thanks, too easy.
    Lol was wondering why it wasn't working, found out I edited it on my localhost and hadn't upadted it for the server file XD

Sign In or Register to comment.