Wp-Pro-Quiz icon indicating copy to clipboard operation
Wp-Pro-Quiz copied to clipboard

allow open answer

Open ziodave opened this issue 9 years ago • 5 comments

Is it possible to allow an open textual answer (with a length limit)? Something like:

Question n. 10: Tell us something about you in 140 characters

ziodave avatar Jan 08 '16 11:01 ziodave

Did you figure out how to have an open textual answer(with a length limit)? I'm looking into the same and want to remove "Incorrect" when the answer comes up. Any idea?

awelland avatar Aug 10 '16 15:08 awelland

Nothing too fancy, I edited WpProQuiz_View_FrontQuiz.php#L949 and changed this:

  <input class="wpProQuiz_questionInput" type="text"
    name="question_<?php echo $this->quiz->getId(); ?>_<?php echo $question->getId(); ?>"
    style="width: 300px;">

into this:

 <textarea class="wpProQuiz_questionInput" type="text" maxlength="140"
    name="question_<?php echo $this->quiz->getId(); ?>_<?php echo $question->getId(); ?>"
    style="width: 90%;" onfocus="this.value=''">Leave a comment</textarea>

To be honest, I don't remember if I changed something else.

ziodave avatar Aug 10 '16 15:08 ziodave

Thanks David for your quick reply and advice.

Do you by the way know how to make a quiz continuous on several pages, mixing multiple choice and free text?

Thank you.

2016-08-10 16:45 GMT+01:00 David Riccitelli [email protected]:

Nothing too fancy, I edited WpProQuiz_View_FrontQuiz.php#L949 https://github.com/xeno010/Wp-Pro-Quiz/blob/master/lib/view/WpProQuiz_View_FrontQuiz.php#L949 and changed this:

into this:

To be honest, I don't remember if I changed something else.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/xeno010/Wp-Pro-Quiz/issues/16#issuecomment-238909359, or mute the thread https://github.com/notifications/unsubscribe-auth/AT-giBgRIT-DPJC1JxjoGJT8dgP86QDEks5qefIdgaJpZM4HBFgE .

awelland avatar Aug 10 '16 20:08 awelland

Unfortunately not, take a dive in the plugin code, it's quite OOP, maybe it is possible to define other answers' types with further customizations.

ziodave avatar Aug 11 '16 06:08 ziodave

Thanks David,

Will do that.

Best regards Alexander

On Aug 11, 2016 7:06 AM, "David Riccitelli" [email protected] wrote:

Unfortunately not, take a dive in the plugin code, it's quite OOP, maybe it is possible to define other answers' types with further customizations.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/xeno010/Wp-Pro-Quiz/issues/16#issuecomment-239080570, or mute the thread https://github.com/notifications/unsubscribe-auth/AT-giL9zSdCqjl7VDwsjTDbDIHv-EOOBks5qerv9gaJpZM4HBFgE .

awelland avatar Aug 11 '16 09:08 awelland