<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Wpdiscuz have conflict with wpproquiz help - Plugin Update Issues				            </title>
            <link>https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 19 Aug 2026 17:15:23 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Wpdiscuz have conflict with wpproquiz help</title>
                        <link>https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/#post-6498</link>
                        <pubDate>Wed, 20 Jan 2021 10:25:40 +0000</pubDate>
                        <description><![CDATA[Problem solved thanks
 
i use this
 
&lt;?php/*** @property WpProQuiz_Model_Quiz quiz* @property WpProQuiz_Model_Question[] question* @property WpProQuiz_Model_Category[] category* @prop...]]></description>
                        <content:encoded><![CDATA[<p>Problem solved thanks</p>
<p> </p>
<p>i use this</p>
<p> </p>
<pre style="height: 150px;overflow: scroll">&lt;?php<br /><br />/**<br />* @property WpProQuiz_Model_Quiz quiz<br />* @property WpProQuiz_Model_Question[] question<br />* @property WpProQuiz_Model_Category[] category<br />* @property WpProQuiz_Model_Form[] forms<br />*/<br />class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View<br />{<br />private $_clozeTemp = array();<br />private $_assessmetTemp = array();<br /><br />private $_buttonNames = array();<br /><br />private function loadButtonNames()<br />{<br />if (!empty($this-&gt;_buttonNames)) {<br />return;<br />}<br /><br />$names = array(<br />'start_quiz' =&gt; __('Start quiz', 'wp-pro-quiz'),<br />'restart_quiz' =&gt; __('Restart quiz', 'wp-pro-quiz'),<br />'quiz_summary' =&gt; __('Quiz-summary', 'wp-pro-quiz'),<br />'finish_quiz' =&gt; __('Finish quiz', 'wp-pro-quiz'),<br />'quiz_is_loading' =&gt; __('Quiz is loading...', 'wp-pro-quiz'),<br />'lock_box_msg' =&gt; __('You have already completed the quiz before. Hence you can not start it again.',<br />'wp-pro-quiz'),<br />'only_registered_user_msg' =&gt; __('You must sign in or sign up to start the quiz.', 'wp-pro-quiz'),<br />'prerequisite_msg' =&gt; __('You have to finish following quiz, to start this quiz:', 'wp-pro-quiz')<br />);<br /><br />$this-&gt;_buttonNames = ((array)apply_filters('wpProQuiz_filter_frontButtonNames', $names, $this)) + $names;<br />}<br /><br />/**<br />* @param $data WpProQuiz_Model_AnswerTypes<br />*<br />* @return array<br />*/<br />private function getFreeCorrect($data)<br />{<br />$t = str_replace("\r\n", "\n", strtolower($data-&gt;getAnswer()));<br />$t = str_replace("\r", "\n", $t);<br />$t = explode("\n", $t);<br /><br />return array_values(array_filter(array_map('trim', $t), array($this, 'removeEmptyElements')));<br />}<br /><br />private function removeEmptyElements($v)<br />{<br />return !empty($v) || $v === '0';<br />}<br /><br />public function show($preview = false)<br />{<br />$this-&gt;loadButtonNames();<br /><br />$question_count = count($this-&gt;question);<br /><br />$result = $this-&gt;quiz-&gt;getResultText();<br /><br />if (!$this-&gt;quiz-&gt;isResultGradeEnabled()) {<br />$result = array(<br />'text' =&gt; array($result),<br />'prozent' =&gt; array(0)<br />);<br />}<br /><br />$resultsProzent = json_encode($result);<br /><br />$resultReplace = array();<br /><br />foreach ($this-&gt;forms as $form) {<br />/* @var $form WpProQuiz_Model_Form */<br /><br />$resultReplace = '&lt;span class="wpProQuiz_resultForm" data-form_id="' . $form-&gt;getFormId() . '"&gt;&lt;/span&gt;';<br />}<br /><br />foreach ($result as &amp;$text) {<br />$text = str_replace(array_keys($resultReplace), $resultReplace, $text);<br />}<br /><br />?&gt;<br />&lt;div class="wpProQuiz_content" id="wpProQuiz_&lt;?php echo $this-&gt;quiz-&gt;getId(); ?&gt;"&gt;<br />&lt;?php<br /><br />if (!$this-&gt;quiz-&gt;isTitleHidden()) {<br />echo '&lt;h2&gt;', $this-&gt;quiz-&gt;getName(), '&lt;/h2&gt;';<br />}<br /><br />$this-&gt;showTimeLimitBox();<br />$this-&gt;showCheckPageBox($question_count);<br />$this-&gt;showInfoPageBox();<br />$this-&gt;showStartQuizBox();<br />$this-&gt;showLockBox();<br />$this-&gt;showLoadQuizBox();<br />$this-&gt;showStartOnlyRegisteredUserBox();<br />$this-&gt;showPrerequisiteBox();<br />$this-&gt;showResultBox($result, $question_count);<br /><br />if ($this-&gt;quiz-&gt;getToplistDataShowIn() == WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SHOW_IN_BUTTON) {<br />$this-&gt;showToplistInButtonBox();<br />}<br /><br />$this-&gt;showReviewBox($question_count);<br />$this-&gt;showQuizAnker();<br /><br />$quizData = $this-&gt;showQuizBox($question_count);<br /><br />?&gt;<br />&lt;/div&gt;<br />&lt;?php<br /><br />$bo = $this-&gt;createOption($preview);<br /><br />/*<br />* old function<br />*<br />&lt;script type="text/javascript"&gt;<br />jQuery(document).ready(function ($) {<br />$('#wpProQuiz_&lt;?php echo $this-&gt;quiz-&gt;getId(); ?&gt;').wpProQuizFront({<br />quizId: &lt;?php echo (int)$this-&gt;quiz-&gt;getId(); ?&gt;,<br />mode: &lt;?php echo (int)$this-&gt;quiz-&gt;getQuizModus(); ?&gt;,<br />globalPoints: &lt;?php echo (int)$quizData; ?&gt;,<br />timelimit: &lt;?php echo (int)$this-&gt;quiz-&gt;getTimeLimit(); ?&gt;,<br />resultsGrade: &lt;?php echo $resultsProzent; ?&gt;,<br />bo: &lt;?php echo $bo ?&gt;,<br />qpp: &lt;?php echo $this-&gt;quiz-&gt;getQuestionsPerPage(); ?&gt;,<br />catPoints: &lt;?php echo json_encode($quizData); ?&gt;,<br />formPos: &lt;?php echo (int)$this-&gt;quiz-&gt;getFormShowPosition(); ?&gt;,<br />lbn: &lt;?php echo json_encode(($this-&gt;quiz-&gt;isShowReviewQuestion() &amp;&amp; !$this-&gt;quiz-&gt;isQuizSummaryHide()) ? $this-&gt;_buttonNames : $this-&gt;_buttonNames); ?&gt;,<br />json: &lt;?php echo json_encode($quizData); ?&gt;<br />});<br />});<br />&lt;/script&gt;<br />*/<br />?&gt;<br />&lt;script type="text/javascript"&gt;<br />window.wpProQuizInitList = window.wpProQuizInitList || [];<br /><br />window.wpProQuizInitList.push({<br />id: '#wpProQuiz_&lt;?php echo $this-&gt;quiz-&gt;getId(); ?&gt;',<br />init: {<br />quizId: &lt;?php echo (int)$this-&gt;quiz-&gt;getId(); ?&gt;,<br />mode: &lt;?php echo (int)$this-&gt;quiz-&gt;getQuizModus(); ?&gt;,<br />globalPoints: &lt;?php echo (int)$quizData; ?&gt;,<br />timelimit: &lt;?php echo (int)$this-&gt;quiz-&gt;getTimeLimit(); ?&gt;,<br />resultsGrade: &lt;?php echo $resultsProzent; ?&gt;,<br />bo: &lt;?php echo $bo ?&gt;,<br />qpp: &lt;?php echo $this-&gt;quiz-&gt;getQuestionsPerPage(); ?&gt;,<br />catPoints: &lt;?php echo json_encode($quizData); ?&gt;,<br />formPos: &lt;?php echo (int)$this-&gt;quiz-&gt;getFormShowPosition(); ?&gt;,<br />lbn: &lt;?php echo json_encode(($this-&gt;quiz-&gt;isShowReviewQuestion() &amp;&amp; !$this-&gt;quiz-&gt;isQuizSummaryHide()) ? $this-&gt;_buttonNames : $this-&gt;_buttonNames); ?&gt;,<br />json: &lt;?php echo json_encode($quizData); ?&gt;<br />}<br />});<br />&lt;/script&gt;<br />&lt;?php<br />}<br /><br />private function createOption($preview)<br />{<br />$bo = 0;<br /><br />$bo |= ((int)$this-&gt;quiz-&gt;isAnswerRandom()) &lt;&lt; 0;<br />$bo |= ((int)$this-&gt;quiz-&gt;isQuestionRandom()) &lt;&lt; 1;<br />$bo |= ((int)$this-&gt;quiz-&gt;isDisabledAnswerMark()) &lt;&lt; 2;<br />$bo |= ((int)($this-&gt;quiz-&gt;isQuizRunOnce() || $this-&gt;quiz-&gt;isPrerequisite() || $this-&gt;quiz-&gt;isStartOnlyRegisteredUser())) &lt;&lt; 3;<br />$bo |= ((int)$preview) &lt;&lt; 4;<br />$bo |= ((int)get_option('wpProQuiz_corsActivated')) &lt;&lt; 5;<br />$bo |= ((int)$this-&gt;quiz-&gt;isToplistDataAddAutomatic()) &lt;&lt; 6;<br />$bo |= ((int)$this-&gt;quiz-&gt;isShowReviewQuestion()) &lt;&lt; 7;<br />$bo |= ((int)$this-&gt;quiz-&gt;isQuizSummaryHide()) &lt;&lt; 8;<br />$bo |= ((int)(!$this-&gt;quiz-&gt;isSkipQuestionDisabled() &amp;&amp; $this-&gt;quiz-&gt;isShowReviewQuestion())) &lt;&lt; 9;<br />$bo |= ((int)$this-&gt;quiz-&gt;isAutostart()) &lt;&lt; 10;<br />$bo |= ((int)$this-&gt;quiz-&gt;isForcingQuestionSolve()) &lt;&lt; 11;<br />$bo |= ((int)$this-&gt;quiz-&gt;isHideQuestionPositionOverview()) &lt;&lt; 12;<br />$bo |= ((int)$this-&gt;quiz-&gt;isFormActivated()) &lt;&lt; 13;<br />$bo |= ((int)$this-&gt;quiz-&gt;isShowMaxQuestion()) &lt;&lt; 14;<br />$bo |= ((int)$this-&gt;quiz-&gt;isSortCategories()) &lt;&lt; 15;<br /><br />return $bo;<br />}<br /><br />public function showMaxQuestion()<br />{<br />$this-&gt;loadButtonNames();<br /><br />$question_count = count($this-&gt;question);<br /><br />$result = $this-&gt;quiz-&gt;getResultText();<br /><br />if (!$this-&gt;quiz-&gt;isResultGradeEnabled()) {<br />$result = array(<br />'text' =&gt; array($result),<br />'prozent' =&gt; array(0)<br />);<br />}<br /><br />$resultsProzent = json_encode($result);<br /><br />?&gt;<br />&lt;div class="wpProQuiz_content" id="wpProQuiz_&lt;?php echo $this-&gt;quiz-&gt;getId(); ?&gt;"&gt;<br />&lt;?php<br /><br />if (!$this-&gt;quiz-&gt;isTitleHidden()) {<br />echo '&lt;h2&gt;', $this-&gt;quiz-&gt;getName(), '&lt;/h2&gt;';<br />}<br /><br />$this-&gt;showTimeLimitBox();<br />$this-&gt;showCheckPageBox($question_count);<br />$this-&gt;showInfoPageBox();<br />$this-&gt;showStartQuizBox();<br />$this-&gt;showLockBox();<br />$this-&gt;showLoadQuizBox();<br />$this-&gt;showStartOnlyRegisteredUserBox();<br />$this-&gt;showPrerequisiteBox();<br />$this-&gt;showResultBox($result, $question_count);<br /><br />if ($this-&gt;quiz-&gt;getToplistDataShowIn() == WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SHOW_IN_BUTTON) {<br />$this-&gt;showToplistInButtonBox();<br />}<br /><br />$this-&gt;showReviewBox($question_count);<br />$this-&gt;showQuizAnker();<br />?&gt;<br />&lt;/div&gt;<br />&lt;?php<br /><br />$bo = $this-&gt;createOption(false);<br /><br />?&gt;<br />&lt;script type="text/javascript"&gt;<br />jQuery(document).ready(function ($) {<br />$('#wpProQuiz_&lt;?php echo $this-&gt;quiz-&gt;getId(); ?&gt;').wpProQuizFront({<br />quizId: &lt;?php echo (int)$this-&gt;quiz-&gt;getId(); ?&gt;,<br />mode: &lt;?php echo (int)$this-&gt;quiz-&gt;getQuizModus(); ?&gt;,<br />timelimit: &lt;?php echo (int)$this-&gt;quiz-&gt;getTimeLimit(); ?&gt;,<br />resultsGrade: &lt;?php echo $resultsProzent; ?&gt;,<br />bo: &lt;?php echo $bo ?&gt;,<br />qpp: &lt;?php echo $this-&gt;quiz-&gt;getQuestionsPerPage(); ?&gt;,<br />formPos: &lt;?php echo (int)$this-&gt;quiz-&gt;getFormShowPosition(); ?&gt;,<br />lbn: &lt;?php echo json_encode(($this-&gt;quiz-&gt;isShowReviewQuestion() &amp;&amp; !$this-&gt;quiz-&gt;isQuizSummaryHide()) ? $this-&gt;_buttonNames : $this-&gt;_buttonNames); ?&gt;<br />});<br />});<br />&lt;/script&gt;<br />&lt;?php<br />}<br /><br />public function getQuizData()<br />{<br />ob_start();<br /><br />$this-&gt;loadButtonNames();<br /><br />$quizData = $this-&gt;showQuizBox(count($this-&gt;question));<br /><br />$quizData = ob_get_contents();<br /><br />ob_end_clean();<br /><br />return $quizData;<br />}<br /><br />private function showQuizAnker()<br />{<br />?&gt;<br />&lt;div class="wpProQuiz_quizAnker" style="display: none;"&gt;&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showAddToplist()<br />{<br />?&gt;<br />&lt;div class="wpProQuiz_addToplist" style="display: none;"&gt;<br />&lt;span style="font-weight: bold;"&gt;&lt;?php _e('Your result has been entered into leaderboard',<br />'wp-pro-quiz'); ?&gt;&lt;/span&gt;<br /><br />&lt;div style="margin-top: 6px;"&gt;<br />&lt;div class="wpProQuiz_addToplistMessage" style="display: none;"&gt;&lt;?php _e('Loading',<br />'wp-pro-quiz'); ?&gt;&lt;/div&gt;<br />&lt;div class="wpProQuiz_addBox"&gt;<br />&lt;div&gt;<br />&lt;span&gt;<br />&lt;label&gt;<br />&lt;?php _e('Name', 'wp-pro-quiz'); ?&gt;: &lt;input type="text" placeholder="&lt;?php _e('Name',<br />'wp-pro-quiz'); ?&gt;" name="wpProQuiz_toplistName" maxlength="15" size="16"<br />style="width: 150px;"&gt;<br />&lt;/label&gt;<br />&lt;label&gt;<br />&lt;?php _e('E-Mail', 'wp-pro-quiz'); ?&gt;: &lt;input type="email"<br />placeholder="&lt;?php _e('E-Mail',<br />'wp-pro-quiz'); ?&gt;"<br />name="wpProQuiz_toplistEmail" size="20"<br />style="width: 150px;"&gt;<br />&lt;/label&gt;<br />&lt;/span&gt;<br /><br />&lt;div style="margin-top: 5px;"&gt;<br />&lt;label&gt;<br />&lt;?php _e('Captcha', 'wp-pro-quiz'); ?&gt;: &lt;input type="text" name="wpProQuiz_captcha"<br />size="8" style="width: 50px;"&gt;<br />&lt;/label&gt;<br />&lt;input type="hidden" name="wpProQuiz_captchaPrefix" value="0"&gt;<br />&lt;img alt="captcha" src="" class="wpProQuiz_captchaImg" style="vertical-align: middle;"&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;input class="wpProQuiz_button2" type="submit" value="&lt;?php _e('Send', 'wp-pro-quiz'); ?&gt;"<br />name="wpProQuiz_toplistAdd"&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function fetchCloze($answer_text)<br />{<br />preg_match_all('#\{(.*?)(?:\|(\d+))?(?:+)?\}#im', $answer_text, $matches, PREG_SET_ORDER);<br /><br />$data = array();<br /><br />foreach ($matches as $k =&gt; $v) {<br />$text = $v;<br />$points = !empty($v) ? (int)$v : 1;<br />$rowText = $multiTextData = array();<br />$len = array();<br /><br />if (preg_match_all('#\#im', $text, $multiTextMatches)) {<br />foreach ($multiTextMatches as $multiText) {<br />$x = mb_strtolower(trim(html_entity_decode($multiText, ENT_QUOTES)));<br /><br />$len[] = strlen($x);<br />$multiTextData[] = $x;<br />$rowText[] = $multiText;<br />}<br />} else {<br />$x = mb_strtolower(trim(html_entity_decode($text, ENT_QUOTES)));<br /><br />$len[] = strlen($x);<br />$multiTextData[] = $x;<br />$rowText[] = $text;<br />}<br /><br />$a = '&lt;span class="wpProQuiz_cloze"&gt;&lt;input data-wordlen="' . max($len) . '" type="text" value=""&gt; ';<br />$a .= '&lt;span class="wpProQuiz_clozeCorrect" style="display: none;"&gt;(' . implode(', ',<br />$rowText) . ')&lt;/span&gt;&lt;/span&gt;';<br /><br />$data[] = $multiTextData;<br />$data[] = $points;<br />$data[] = $a;<br />}<br /><br />$data = preg_replace('#\{(.*?)(?:\|(\d+))?(?:+)?\}#im', '@@wpProQuizCloze@@', $answer_text);<br /><br />return $data;<br />}<br /><br />private function clozeCallback($t)<br />{<br />$a = array_shift($this-&gt;_clozeTemp);<br /><br />return $a === null ? '' : $a;<br />}<br /><br />private function fetchAssessment($answerText, $quizId, $questionId)<br />{<br />preg_match_all('#\{(.*?)\}#im', $answerText, $matches);<br /><br />$this-&gt;_assessmetTemp = array();<br />$data = array();<br /><br />for ($i = 0, $ci = count($matches); $i &lt; $ci; $i++) {<br />$match = $matches;<br /><br />preg_match_all('#\[(]+)(?:\|(\d+))?\]#im', $match, $ms);<br /><br />$a = '';<br /><br />for ($j = 0, $cj = count($ms); $j &lt; $cj; $j++) {<br />$v = $ms;<br /><br />$a .= '&lt;label&gt;<br />&lt;input type="radio" value="' . ($j + 1) . '" name="question_' . $quizId . '_' . $questionId . '_' . $i . '" class="wpProQuiz_questionInput" data-index="' . $i . '"&gt;<br />' . $v . '<br />&lt;/label&gt;';<br /><br />}<br /><br />$this-&gt;_assessmetTemp[] = $a;<br />}<br /><br />$data = preg_replace('#\{(.*?)\}#im', '@@wpProQuizAssessment@@', $answerText);<br /><br />return $data;<br />}<br /><br />private function assessmentCallback($t)<br />{<br />$a = array_shift($this-&gt;_assessmetTemp);<br /><br />return $a === null ? '' : $a;<br />}<br /><br />private function showFormBox()<br />{<br />$info = '&lt;div class="wpProQuiz_invalidate"&gt;' . __('You must fill out this field.', 'wp-pro-quiz') . '&lt;/div&gt;';<br /><br />$validateText = array(<br />WpProQuiz_Model_Form::FORM_TYPE_NUMBER =&gt; __('You must specify a number.', 'wp-pro-quiz'),<br />WpProQuiz_Model_Form::FORM_TYPE_TEXT =&gt; __('You must specify a text.', 'wp-pro-quiz'),<br />WpProQuiz_Model_Form::FORM_TYPE_EMAIL =&gt; __('You must specify an email address.', 'wp-pro-quiz'),<br />WpProQuiz_Model_Form::FORM_TYPE_DATE =&gt; __('You must specify a date.', 'wp-pro-quiz')<br />);<br />?&gt;<br />&lt;div class="wpProQuiz_forms"&gt;<br />&lt;table&gt;<br />&lt;tbody&gt;<br /><br />&lt;?php<br />$index = 0;<br />foreach ($this-&gt;forms as $form) {<br />/* @var $form WpProQuiz_Model_Form */<br /><br />$id = 'forms_' . $this-&gt;quiz-&gt;getId() . '_' . $index++;<br />$name = 'wpProQuiz_field_' . $form-&gt;getFormId();<br />?&gt;<br />&lt;tr&gt;<br />&lt;td&gt;<br />&lt;?php<br />echo '&lt;label for="' . $id . '"&gt;';<br />echo esc_html($form-&gt;getFieldname());<br />echo $form-&gt;isRequired() ? '&lt;span class="wpProQuiz_required"&gt;*&lt;/span&gt;' : '';<br />echo '&lt;/label&gt;';<br />?&gt;<br />&lt;/td&gt;<br />&lt;td&gt;<br /><br />&lt;?php<br />switch ($form-&gt;getType()) {<br />case WpProQuiz_Model_Form::FORM_TYPE_TEXT:<br />case WpProQuiz_Model_Form::FORM_TYPE_EMAIL:<br />case WpProQuiz_Model_Form::FORM_TYPE_NUMBER:<br />echo '&lt;input name="' . $name . '" id="' . $id . '" type="text" ',<br />'data-required="' . (int)$form-&gt;isRequired() . '" data-type="' . $form-&gt;getType() . '" data-form_id="' . $form-&gt;getFormId() . '"&gt;';<br />break;<br />case WpProQuiz_Model_Form::FORM_TYPE_TEXTAREA:<br />echo '&lt;textarea rows="5" cols="20" name="' . $name . '" id="' . $id . '" ',<br />'data-required="' . (int)$form-&gt;isRequired() . '" data-type="' . $form-&gt;getType() . '" data-form_id="' . $form-&gt;getFormId() . '"&gt;&lt;/textarea&gt;';<br />break;<br />case WpProQuiz_Model_Form::FORM_TYPE_CHECKBOX:<br />echo '&lt;input name="' . $name . '" id="' . $id . '" type="checkbox" value="1"',<br />'data-required="' . (int)$form-&gt;isRequired() . '" data-type="' . $form-&gt;getType() . '" data-form_id="' . $form-&gt;getFormId() . '"&gt;';<br />break;<br />case WpProQuiz_Model_Form::FORM_TYPE_DATE:<br />echo '&lt;div data-required="' . (int)$form-&gt;isRequired() . '" data-type="' . $form-&gt;getType() . '" class="wpProQuiz_formFields" data-form_id="' . $form-&gt;getFormId() . '"&gt;';<br />echo WpProQuiz_Helper_Until::getDatePicker(get_option('date_format', 'j. F Y'),<br />$name);<br />echo '&lt;/div&gt;';<br />break;<br />case WpProQuiz_Model_Form::FORM_TYPE_RADIO:<br />echo '&lt;div data-required="' . (int)$form-&gt;isRequired() . '" data-type="' . $form-&gt;getType() . '" class="wpProQuiz_formFields" data-form_id="' . $form-&gt;getFormId() . '"&gt;';<br /><br />if ($form-&gt;getData() !== null) {<br />foreach ($form-&gt;getData() as $data) {<br />echo '&lt;label&gt;';<br />echo '&lt;input name="' . $name . '" type="radio" value="' . esc_attr($data) . '"&gt; ',<br />esc_html($data);<br />echo '&lt;/label&gt; ';<br />}<br />}<br /><br />echo '&lt;/div&gt;';<br /><br />break;<br />case WpProQuiz_Model_Form::FORM_TYPE_SELECT:<br />if ($form-&gt;getData() !== null) {<br />echo '&lt;select name="' . $name . '" id="' . $id . '" ',<br />'data-required="' . (int)$form-&gt;isRequired() . '" data-type="' . $form-&gt;getType() . '" data-form_id="' . $form-&gt;getFormId() . '"&gt;';<br />echo '&lt;option value=""&gt;&lt;/option&gt;';<br /><br />foreach ($form-&gt;getData() as $data) {<br />echo '&lt;option value="' . esc_attr($data) . '"&gt;', esc_html($data), '&lt;/option&gt;';<br />}<br /><br />echo '&lt;/select&gt;';<br />}<br />break;<br />case WpProQuiz_Model_Form::FORM_TYPE_YES_NO:<br />echo '&lt;div data-required="' . (int)$form-&gt;isRequired() . '" data-type="' . $form-&gt;getType() . '" class="wpProQuiz_formFields" data-form_id="' . $form-&gt;getFormId() . '"&gt;';<br />echo '&lt;label&gt;';<br />echo '&lt;input name="' . $name . '" type="radio" value="1"&gt; ',<br />__('Yes', 'wp-pro-quiz');<br />echo '&lt;/label&gt; ';<br /><br />echo '&lt;label&gt;';<br />echo '&lt;input name="' . $name . '" type="radio" value="0"&gt; ',<br />__('No', 'wp-pro-quiz');<br />echo '&lt;/label&gt; ';<br />echo '&lt;/div&gt;';<br />break;<br />}<br /><br />if (isset($validateText)) {<br />echo '&lt;div class="wpProQuiz_invalidate"&gt;' . $validateText . '&lt;/div&gt;';<br />} else {<br />echo '&lt;div class="wpProQuiz_invalidate"&gt;' . __('You must fill out this field.',<br />'wp-pro-quiz') . '&lt;/div&gt;';<br />}<br />?&gt;<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;?php } ?&gt;<br />&lt;/tbody&gt;<br />&lt;/table&gt;<br /><br />&lt;/div&gt;<br /><br />&lt;?php<br />}<br /><br />private function showLockBox()<br />{<br />?&gt;<br />&lt;div style="display: none;" class="wpProQuiz_lock"&gt;<br />&lt;p&gt;<br />&lt;?php echo $this-&gt;_buttonNames; ?&gt;<br />&lt;/p&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showStartOnlyRegisteredUserBox()<br />{<br />?&gt;<br />&lt;div style="display: none;" class="wpProQuiz_startOnlyRegisteredUser"&gt;<br />&lt;p&gt;<br />&lt;?php echo $this-&gt;_buttonNames; ?&gt;<br />&lt;/p&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showPrerequisiteBox()<br />{<br />?&gt;<br />&lt;div style="display: none;" class="wpProQuiz_prerequisite"&gt;<br />&lt;p&gt;<br />&lt;?php echo $this-&gt;_buttonNames; ?&gt;<br />&lt;span&gt;&lt;/span&gt;<br />&lt;/p&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showCheckPageBox($questionCount)<br />{<br />?&gt;<br />&lt;div class="wpProQuiz_checkPage" style="display: none;"&gt;<br />&lt;h4 class="wpProQuiz_header"&gt;&lt;?php echo $this-&gt;_buttonNames; ?&gt;&lt;/h4&gt;<br /><br />&lt;p&gt;<br />&lt;?php printf(__('%s of %s questions completed', 'wp-pro-quiz'), '&lt;span&gt;0&lt;/span&gt;', $questionCount); ?&gt;<br />&lt;/p&gt;<br /><br />&lt;p&gt;&lt;?php _e('Questions', 'wp-pro-quiz'); ?&gt;:&lt;/p&gt;<br /><br />&lt;div style="margin-bottom: 20px;" class="wpProQuiz_box"&gt;<br />&lt;ol&gt;<br />&lt;?php for ($xy = 1; $xy &lt;= $questionCount; $xy++) { ?&gt;<br />&lt;li&gt;&lt;?php echo $xy; ?&gt;&lt;/li&gt;<br />&lt;?php } ?&gt;<br />&lt;/ol&gt;<br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br />&lt;/div&gt;<br /><br />&lt;?php<br />if ($this-&gt;quiz-&gt;isFormActivated() &amp;&amp; $this-&gt;quiz-&gt;getFormShowPosition() == WpProQuiz_Model_Quiz::QUIZ_FORM_POSITION_END<br />&amp;&amp; ($this-&gt;quiz-&gt;isShowReviewQuestion() &amp;&amp; !$this-&gt;quiz-&gt;isQuizSummaryHide())<br />) {<br /><br />?&gt;<br />&lt;h4 class="wpProQuiz_header"&gt;&lt;?php _e('Information', 'wp-pro-quiz'); ?&gt;&lt;/h4&gt;<br />&lt;?php<br />$this-&gt;showFormBox();<br />}<br /><br />?&gt;<br /><br />&lt;input type="button" name="endQuizSummary" value="&lt;?php echo $this-&gt;_buttonNames; ?&gt;"<br />class="wpProQuiz_button"&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showInfoPageBox()<br />{<br />?&gt;<br />&lt;div class="wpProQuiz_infopage" style="display: none;"&gt;<br />&lt;h4&gt;&lt;?php _e('Information', 'wp-pro-quiz'); ?&gt;&lt;/h4&gt;<br /><br />&lt;?php<br />if ($this-&gt;quiz-&gt;isFormActivated() &amp;&amp; $this-&gt;quiz-&gt;getFormShowPosition() == WpProQuiz_Model_Quiz::QUIZ_FORM_POSITION_END<br />&amp;&amp; (!$this-&gt;quiz-&gt;isShowReviewQuestion() || $this-&gt;quiz-&gt;isQuizSummaryHide())<br />) {<br />$this-&gt;showFormBox();<br />}<br /><br />?&gt;<br /><br />&lt;input type="button" name="endInfopage" value="&lt;?php echo $this-&gt;_buttonNames; ?&gt;"<br />class="wpProQuiz_button"&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showStartQuizBox()<br />{<br />?&gt;<br />&lt;div class="wpProQuiz_text"&gt;<br />&lt;p&gt;<br />&lt;?php echo do_shortcode(apply_filters('comment_text', $this-&gt;quiz-&gt;getText(), array("is_wpdiscuz_comment" =&gt; TRUE))); ?&gt; <br />&lt;/p&gt;<br /><br />&lt;?php<br />if ($this-&gt;quiz-&gt;isFormActivated() &amp;&amp; $this-&gt;quiz-&gt;getFormShowPosition() == WpProQuiz_Model_Quiz::QUIZ_FORM_POSITION_START) {<br />$this-&gt;showFormBox();<br />}<br />?&gt;<br /><br />&lt;div&gt;<br />&lt;input class="wpProQuiz_button" type="button" value="&lt;?php echo $this-&gt;_buttonNames; ?&gt;"<br />name="startQuiz"&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showTimeLimitBox()<br />{<br />?&gt;<br />&lt;div style="display: none;" class="wpProQuiz_time_limit"&gt;<br />&lt;div class="time"&gt;&lt;?php _e('Time limit', 'wp-pro-quiz'); ?&gt;: &lt;span&gt;0&lt;/span&gt;&lt;/div&gt;<br />&lt;div class="wpProQuiz_progress"&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showReviewBox($questionCount)<br />{<br />?&gt;<br />&lt;div class="wpProQuiz_reviewDiv" style="display: none;"&gt;<br />&lt;div class="wpProQuiz_reviewQuestion"&gt;<br />&lt;ol&gt;<br />&lt;?php for ($xy = 1; $xy &lt;= $questionCount; $xy++) { ?&gt;<br />&lt;li&gt;&lt;?php echo $xy; ?&gt;&lt;/li&gt;<br />&lt;?php } ?&gt;<br />&lt;/ol&gt;<br />&lt;div style="display: none;"&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;div class="wpProQuiz_reviewLegend"&gt;<br />&lt;ol&gt;<br />&lt;li&gt;<br />&lt;span class="wpProQuiz_reviewColor" style="background-color: #6CA54C;"&gt;&lt;/span&gt;<br />&lt;span class="wpProQuiz_reviewText"&gt;&lt;?php _e('Answered', 'wp-pro-quiz'); ?&gt;&lt;/span&gt;<br />&lt;/li&gt;<br />&lt;li&gt;<br />&lt;span class="wpProQuiz_reviewColor" style="background-color: #FFB800;"&gt;&lt;/span&gt;<br />&lt;span class="wpProQuiz_reviewText"&gt;&lt;?php _e('Review', 'wp-pro-quiz'); ?&gt;&lt;/span&gt;<br />&lt;/li&gt;<br />&lt;/ol&gt;<br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;div&gt;<br />&lt;?php if ($this-&gt;quiz-&gt;getQuizModus() != WpProQuiz_Model_Quiz::QUIZ_MODUS_SINGLE) { ?&gt;<br />&lt;input type="button" name="review" value="&lt;?php _e('Review question', 'wp-pro-quiz'); ?&gt;"<br />class="wpProQuiz_button2" style="float: left; display: block;"&gt;<br />&lt;?php if (!$this-&gt;quiz-&gt;isQuizSummaryHide()) { ?&gt;<br />&lt;input type="button" name="quizSummary"<br />value="&lt;?php echo $this-&gt;_buttonNames; ?&gt;" class="wpProQuiz_button2"<br />style="float: right;"&gt;<br />&lt;?php } ?&gt;<br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br />&lt;?php } ?&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showResultBox($result, $questionCount)<br />{<br />?&gt;<br />&lt;div style="display: none;" class="wpProQuiz_results"&gt;<br />&lt;h4 class="wpProQuiz_header"&gt;&lt;?php _e('Results', 'wp-pro-quiz'); ?&gt;&lt;/h4&gt;<br />&lt;?php if (!$this-&gt;quiz-&gt;isHideResultCorrectQuestion()) { ?&gt;<br />&lt;p style="text-align: center;"&gt;<br />&lt;?php printf(__('%s of %s questions answered correctly.', 'wp-pro-quiz'),<br />'&lt;span class="wpProQuiz_correct_answer"&gt;0&lt;/span&gt;', '&lt;span&gt;' . $questionCount . '&lt;/span&gt;'); ?&gt;<br />&lt;/p&gt;<br />&lt;?php }<br />if (!$this-&gt;quiz-&gt;isHideResultQuizTime()) { ?&gt;<br />&lt;p class="wpProQuiz_quiz_time"&gt;<br />&lt;?php _e('Your time: &lt;span&gt;&lt;/span&gt;', 'wp-pro-quiz'); ?&gt;<br />&lt;/p&gt;<br />&lt;?php } ?&gt;<br />&lt;p class="wpProQuiz_time_limit_expired" style="display: none;"&gt;<br />&lt;?php _e('Time has elapsed', 'wp-pro-quiz'); ?&gt;<br />&lt;/p&gt;<br />&lt;?php if (!$this-&gt;quiz-&gt;isHideResultPoints()) { ?&gt;<br />&lt;p class="wpProQuiz_points"&gt;<br />&lt;?php printf(__('You have reached %s of %s points (%s).', 'wp-pro-quiz'), '&lt;span&gt;0&lt;/span&gt;',<br />'&lt;span&gt;0&lt;/span&gt;', '&lt;span&gt;0&lt;/span&gt;'); ?&gt;<br />&lt;/p&gt;<br />&lt;?php } ?&gt;<br />&lt;?php if ($this-&gt;quiz-&gt;isShowAverageResult()) { ?&gt;<br />&lt;div class="wpProQuiz_resultTable"&gt;<br />&lt;table&gt;<br />&lt;tbody&gt;<br />&lt;tr&gt;<br />&lt;td class="wpProQuiz_resultName"&gt;&lt;?php _e('Average score', 'wp-pro-quiz'); ?&gt;&lt;/td&gt;<br />&lt;td class="wpProQuiz_resultValue"&gt;<br />&lt;div style="background-color: #6CA54C;"&gt;&amp;nbsp;&lt;/div&gt;<br />&lt;span&gt;&amp;nbsp;&lt;/span&gt;<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;tr&gt;<br />&lt;td class="wpProQuiz_resultName"&gt;&lt;?php _e('Your score', 'wp-pro-quiz'); ?&gt;&lt;/td&gt;<br />&lt;td class="wpProQuiz_resultValue"&gt;<br />&lt;div style="background-color: #F79646;"&gt;&amp;nbsp;&lt;/div&gt;<br />&lt;span&gt;&amp;nbsp;&lt;/span&gt;<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/tbody&gt;<br />&lt;/table&gt;<br />&lt;/div&gt;<br />&lt;?php } ?&gt;<br />&lt;div class="wpProQuiz_catOverview" &lt;?php $this-&gt;isDisplayNone($this-&gt;quiz-&gt;isShowCategoryScore()); ?&gt;&gt;<br />&lt;h4&gt;&lt;?php _e('Categories', 'wp-pro-quiz'); ?&gt;&lt;/h4&gt;<br /><br />&lt;div style="margin-top: 10px;"&gt;<br />&lt;ol&gt;<br />&lt;?php foreach ($this-&gt;category as $cat) {<br />if (!$cat-&gt;getCategoryId()) {<br />$cat-&gt;setCategoryName(__('Not categorized', 'wp-pro-quiz'));<br />}<br />?&gt;<br />&lt;li data-category_id="&lt;?php echo $cat-&gt;getCategoryId(); ?&gt;"&gt;<br />&lt;span class="wpProQuiz_catName"&gt;&lt;?php echo $cat-&gt;getCategoryName(); ?&gt;&lt;/span&gt;<br />&lt;span class="wpProQuiz_catPercent"&gt;0%&lt;/span&gt;<br />&lt;/li&gt;<br />&lt;?php } ?&gt;<br />&lt;/ol&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;div&gt;<br />&lt;ul class="wpProQuiz_resultsList"&gt;<br />&lt;?php foreach ($result as $resultText) { ?&gt;<br />&lt;li style="display: none;"&gt;<br />&lt;div&gt;<br />&lt;?php echo do_shortcode(apply_filters('comment_text', $resultText, array("is_wpdiscuz_comment" =&gt; TRUE ))); ?&gt;<br />&lt;/div&gt;<br />&lt;/li&gt;<br />&lt;?php } ?&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt;<br />&lt;?php<br />if ($this-&gt;quiz-&gt;isToplistActivated()) {<br />if ($this-&gt;quiz-&gt;getToplistDataShowIn() == WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SHOW_IN_NORMAL) {<br />echo do_shortcode('');<br />}<br /><br />$this-&gt;showAddToplist();<br />}<br />?&gt;<br />&lt;div style="margin: 10px 0px;"&gt;<br />&lt;?php if (!$this-&gt;quiz-&gt;isBtnRestartQuizHidden()) { ?&gt;<br />&lt;input class="wpProQuiz_button" type="button" name="restartQuiz"<br />value="&lt;?php echo $this-&gt;_buttonNames; ?&gt;"&gt;<br />&lt;?php }<br />if (!$this-&gt;quiz-&gt;isBtnViewQuestionHidden()) { ?&gt;<br />&lt;input class="wpProQuiz_button" type="button" name="reShowQuestion"<br />value="&lt;?php _e('View questions', 'wp-pro-quiz'); ?&gt;"&gt;<br />&lt;?php } ?&gt;<br />&lt;?php if ($this-&gt;quiz-&gt;isToplistActivated() &amp;&amp; $this-&gt;quiz-&gt;getToplistDataShowIn() == WpProQuiz_Model_Quiz::QUIZ_TOPLIST_SHOW_IN_BUTTON) { ?&gt;<br />&lt;input class="wpProQuiz_button" type="button" name="showToplist"<br />value="&lt;?php _e('Show leaderboard', 'wp-pro-quiz'); ?&gt;"&gt;<br />&lt;?php } ?&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showToplistInButtonBox()<br />{<br />?&gt;<br />&lt;div class="wpProQuiz_toplistShowInButton" style="display: none;"&gt;<br />&lt;?php echo do_shortcode(''); ?&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br /><br />private function showQuizBox($questionCount)<br />{<br />$globalPoints = 0;<br />$json = array();<br />$catPoints = array();<br />?&gt;<br />&lt;div style="display: none;" class="wpProQuiz_quiz"&gt;<br />&lt;ol class="wpProQuiz_list"&gt;<br />&lt;?php<br />$index = 0;<br />foreach ($this-&gt;question as $question) {<br />$index++;<br /><br />/* @var $answerArray WpProQuiz_Model_AnswerTypes[] */<br />$answerArray = $question-&gt;getAnswerData();<br /><br />$globalPoints += $question-&gt;getPoints();<br /><br />$json = $question-&gt;getAnswerType();<br />$json = (int)$question-&gt;getId();<br />$json = (int)$question-&gt;getCategoryId();<br /><br />if ($question-&gt;isAnswerPointsActivated() &amp;&amp; $question-&gt;isAnswerPointsDiffModusActivated() &amp;&amp; $question-&gt;isDisableCorrect()) {<br />$json = (int)$question-&gt;isDisableCorrect();<br />}<br /><br />if (!isset($catPoints)) {<br />$catPoints = 0;<br />}<br /><br />$catPoints += $question-&gt;getPoints();<br /><br />if (!$question-&gt;isAnswerPointsActivated()) {<br />$json = $question-&gt;getPoints();<br />// $catPoints += $question-&gt;getPoints();<br />}<br /><br />if ($question-&gt;isAnswerPointsActivated() &amp;&amp; $question-&gt;isAnswerPointsDiffModusActivated()) {<br />// $catPoints += $question-&gt;getPoints();<br />$json = 1;<br />}<br /><br />?&gt;<br />&lt;li class="wpProQuiz_listItem" style="display: none;"&gt;<br />&lt;div<br />class="wpProQuiz_question_page" &lt;?php $this-&gt;isDisplayNone($this-&gt;quiz-&gt;getQuizModus() != WpProQuiz_Model_Quiz::QUIZ_MODUS_SINGLE &amp;&amp; !$this-&gt;quiz-&gt;isHideQuestionPositionOverview()); ?&gt; &gt;<br />&lt;?php printf(__('Question %s of %s', 'wp-pro-quiz'), '&lt;span&gt;' . $index . '&lt;/span&gt;',<br />'&lt;span&gt;' . $questionCount . '&lt;/span&gt;'); ?&gt;<br />&lt;/div&gt;<br />&lt;h5 style="&lt;?php echo $this-&gt;quiz-&gt;isHideQuestionNumbering() ? 'display: none;' : 'display: inline-block;' ?&gt;"<br />class="wpProQuiz_header"&gt;<br />&lt;span&gt;&lt;?php echo $index; ?&gt;&lt;/span&gt;. &lt;?php _e('Question', 'wp-pro-quiz'); ?&gt;<br />&lt;/h5&gt;<br /><br />&lt;?php if ($this-&gt;quiz-&gt;isShowPoints()) { ?&gt;<br />&lt;span style="font-weight: bold; float: right;"&gt;&lt;?php printf(__('%d points', 'wp-pro-quiz'),<br />$question-&gt;getPoints()); ?&gt;&lt;/span&gt;<br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br />&lt;?php } ?&gt;<br /><br />&lt;?php if ($question-&gt;getCategoryId() &amp;&amp; $this-&gt;quiz-&gt;isShowCategory()) { ?&gt;<br />&lt;div style="font-weight: bold; padding-top: 5px;"&gt;<br />&lt;?php printf(__('Category: %s', 'wp-pro-quiz'),<br />esc_html($question-&gt;getCategoryName())); ?&gt;<br />&lt;/div&gt;<br />&lt;?php } ?&gt;<br />&lt;div class="wpProQuiz_question" style="margin: 10px 0 0 0;"&gt;<br />&lt;div class="wpProQuiz_question_text"&gt;<br />&lt;?php echo do_shortcode(apply_filters('comment_text', $question-&gt;getQuestion(), array("is_wpdiscuz_comment" =&gt; TRUE))); ?&gt;<br />&lt;/div&gt;<br />&lt;?php if ($question-&gt;getAnswerType() === 'matrix_sort_answer') { ?&gt;<br />&lt;div class="wpProQuiz_matrixSortString"&gt;<br />&lt;h5 class="wpProQuiz_header"&gt;&lt;?php _e('Sort elements', 'wp-pro-quiz'); ?&gt;&lt;/h5&gt;<br />&lt;ul class="wpProQuiz_sortStringList"&gt;<br />&lt;?php<br />$matrix = array();<br />foreach ($answerArray as $k =&gt; $v) {<br />$matrix[] = $k;<br /><br />foreach ($answerArray as $k2 =&gt; $v2) {<br />if ($k != $k2) {<br />if ($v-&gt;getAnswer() == $v2-&gt;getAnswer()) {<br />$matrix[] = $k2;<br />} else {<br />if ($v-&gt;getSortString() == $v2-&gt;getSortString()) {<br />$matrix[] = $k2;<br />}<br />}<br />}<br />}<br />}<br /><br />foreach ($answerArray as $k =&gt; $v) {<br />?&gt;<br />&lt;li class="wpProQuiz_sortStringItem" data-pos="&lt;?php echo $k; ?&gt;"<br />data-correct="&lt;?php echo implode(',', $matrix); ?&gt;"&gt;<br />&lt;?php echo $v-&gt;isSortStringHtml() ? $v-&gt;getSortString() : esc_html($v-&gt;getSortString()); ?&gt;<br />&lt;/li&gt;<br />&lt;?php } ?&gt;<br />&lt;/ul&gt;<br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php } ?&gt;<br />&lt;ul class="wpProQuiz_questionList" data-question_id="&lt;?php echo $question-&gt;getId(); ?&gt;"<br />data-type="&lt;?php echo $question-&gt;getAnswerType(); ?&gt;"&gt;<br />&lt;?php<br />$answer_index = 0;<br /><br />foreach ($answerArray as $v) {<br />$answer_text = $v-&gt;isHtml() ? $v-&gt;getAnswer() : esc_html($v-&gt;getAnswer());<br /><br />if ($answer_text == '') {<br />continue;<br />}<br /><br />if ($question-&gt;isAnswerPointsActivated()) {<br />$json[] = $v-&gt;getPoints();<br /><br />// if(!$question-&gt;isAnswerPointsDiffModusActivated())<br />// $catPoints += $question-&gt;getPoints();<br />}<br /><br />?&gt;<br /><br />&lt;li class="wpProQuiz_questionListItem" data-pos="&lt;?php echo $answer_index; ?&gt;"&gt;<br /><br />&lt;?php if ($question-&gt;getAnswerType() === 'single' || $question-&gt;getAnswerType() === 'multiple') { ?&gt;<br />&lt;?php $json[] = (int)$v-&gt;isCorrect(); ?&gt;<br />&lt;span &lt;?php echo $this-&gt;quiz-&gt;isNumberedAnswer() ? '' : 'style="display:none;"' ?&gt;&gt;&lt;/span&gt;<br />&lt;label&gt;<br />&lt;input class="wpProQuiz_questionInput"<br />type="&lt;?php echo $question-&gt;getAnswerType() === 'single' ? 'radio' : 'checkbox'; ?&gt;"<br />name="question_&lt;?php echo $this-&gt;quiz-&gt;getId(); ?&gt;_&lt;?php echo $question-&gt;getId(); ?&gt;"<br />value="&lt;?php echo($answer_index + 1); ?&gt;"&gt; &lt;?php echo $answer_text; ?&gt;<br />&lt;/label&gt;<br /><br />&lt;?php } else {<br />if ($question-&gt;getAnswerType() === 'sort_answer') { ?&gt;<br />&lt;?php $json[] = (int)$answer_index; ?&gt;<br />&lt;div class="wpProQuiz_sortable"&gt;<br />&lt;?php echo $answer_text; ?&gt;<br />&lt;/div&gt;<br />&lt;?php } else {<br />if ($question-&gt;getAnswerType() === 'free_answer') { ?&gt;<br />&lt;?php $json = $this-&gt;getFreeCorrect($v); ?&gt;<br />&lt;label&gt;<br />&lt;input class="wpProQuiz_questionInput" type="text"<br />name="question_&lt;?php echo $this-&gt;quiz-&gt;getId(); ?&gt;_&lt;?php echo $question-&gt;getId(); ?&gt;"<br />style="width: 300px;"&gt;<br />&lt;/label&gt;<br />&lt;?php } else {<br />if ($question-&gt;getAnswerType() === 'matrix_sort_answer') { ?&gt;<br />&lt;?php<br />$json[] = (int)$answer_index;<br />$msacwValue = $question-&gt;getMatrixSortAnswerCriteriaWidth() &gt; 0 ? $question-&gt;getMatrixSortAnswerCriteriaWidth() : 20;<br />?&gt;<br />&lt;table&gt;<br />&lt;tbody&gt;<br />&lt;tr class="wpProQuiz_mextrixTr"&gt;<br />&lt;td width="&lt;?php echo $msacwValue; ?&gt;%"&gt;<br />&lt;div<br />class="wpProQuiz_maxtrixSortText"&gt;&lt;?php echo $answer_text; ?&gt;&lt;/div&gt;<br />&lt;/td&gt;<br />&lt;td width="&lt;?php echo 100 - $msacwValue; ?&gt;%"&gt;<br />&lt;ul class="wpProQuiz_maxtrixSortCriterion"&gt;&lt;/ul&gt;<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/tbody&gt;<br />&lt;/table&gt;<br /><br />&lt;?php } else {<br />if ($question-&gt;getAnswerType() === 'cloze_answer') {<br />$clozeData = $this-&gt;fetchCloze($v-&gt;getAnswer());<br /><br />$this-&gt;_clozeTemp = $clozeData;<br /><br />$json = $clozeData;<br /><br />if ($question-&gt;isAnswerPointsActivated()) {<br />$json = $clozeData;<br />}<br /><br />$cloze = do_shortcode(apply_filters('comment_text',<br />$clozeData, array("is_wpdiscuz_comment" =&gt; TRUE)));<br />$cloze = $clozeData;<br /><br />echo preg_replace_callback('#@@wpProQuizCloze@@#im',<br />array($this, 'clozeCallback'), $cloze);<br />} else {<br />if ($question-&gt;getAnswerType() === 'assessment_answer') {<br />$assessmentData = $this-&gt;fetchAssessment($v-&gt;getAnswer(),<br />$this-&gt;quiz-&gt;getId(), $question-&gt;getId());<br /><br />$assessment = do_shortcode(apply_filters('comment_text',<br />$assessmentData, array("is_wpdiscuz_comment" =&gt; TRUE)));<br /><br />echo preg_replace_callback('#@@wpProQuizAssessment@@#im',<br />array($this, 'assessmentCallback'), $assessment);<br /><br />}<br />}<br />}<br />}<br />}<br />} ?&gt;<br />&lt;/li&gt;<br />&lt;?php<br />$answer_index++;<br />}<br />?&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt;<br />&lt;?php if (!$this-&gt;quiz-&gt;isHideAnswerMessageBox()) { ?&gt;<br />&lt;div class="wpProQuiz_response" style="display: none;"&gt;<br />&lt;div style="display: none;" class="wpProQuiz_correct"&gt;<br />&lt;?php if ($question-&gt;isShowPointsInBox() &amp;&amp; $question-&gt;isAnswerPointsActivated()) { ?&gt;<br />&lt;div&gt;<br />&lt;span style="float: left;" class="wpProQuiz_respone_span"&gt;<br />&lt;?php _e('Correct', 'wp-pro-quiz'); ?&gt;<br />&lt;/span&gt;<br />&lt;span<br />style="float: right;"&gt;&lt;?php echo $question-&gt;getPoints() . ' / ' . $question-&gt;getPoints(); ?&gt;&lt;?php _e('Points',<br />'wp-pro-quiz'); ?&gt;&lt;/span&gt;<br /><br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php } else { ?&gt;<br />&lt;span class="wpProQuiz_respone_span"&gt;<br />&lt;?php _e('Correct', 'wp-pro-quiz'); ?&gt;<br />&lt;/span&gt;&lt;br&gt;<br />&lt;?php }<br />$_correctMsg = trim(do_shortcode(apply_filters('comment_text',<br />$question-&gt;getCorrectMsg(), array("is_wpdiscuz_comment" =&gt; TRUE))));<br /><br />if (strpos($_correctMsg, '&lt;p') === 0) {<br />echo $_correctMsg;<br />} else {<br />echo '&lt;p&gt;', $_correctMsg, '&lt;/p&gt;';<br />}<br />?&gt;<br />&lt;/div&gt;<br />&lt;div style="display: none;" class="wpProQuiz_incorrect"&gt;<br />&lt;?php if ($question-&gt;isShowPointsInBox() &amp;&amp; $question-&gt;isAnswerPointsActivated()) { ?&gt;<br />&lt;div&gt;<br />&lt;span style="float: left;" class="wpProQuiz_respone_span"&gt;<br />&lt;?php _e('Incorrect', 'wp-pro-quiz'); ?&gt;<br />&lt;/span&gt;<br />&lt;span style="float: right;"&gt;&lt;span<br />class="wpProQuiz_responsePoints"&gt;&lt;/span&gt; / &lt;?php echo $question-&gt;getPoints(); ?&gt; &lt;?php _e('Points',<br />'wp-pro-quiz'); ?&gt;&lt;/span&gt;<br /><br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php } else { ?&gt;<br />&lt;span class="wpProQuiz_respone_span"&gt;<br />&lt;?php _e('Incorrect', 'wp-pro-quiz'); ?&gt;<br />&lt;/span&gt;&lt;br&gt;<br />&lt;?php }<br /><br />if ($question-&gt;isCorrectSameText()) {<br />$_incorrectMsg = do_shortcode(apply_filters('comment_text',<br />$question-&gt;getCorrectMsg(), array("is_wpdiscuz_comment" =&gt; TRUE)));<br />} else {<br />$_incorrectMsg = do_shortcode(apply_filters('comment_text',<br />$question-&gt;getIncorrectMsg(), array("is_wpdiscuz_comment" =&gt; TRUE)));<br />}<br /><br />if (strpos($_incorrectMsg, '&lt;p') === 0) {<br />echo $_incorrectMsg;<br />} else {<br />echo '&lt;p&gt;', $_incorrectMsg, '&lt;/p&gt;';<br />}<br /><br />?&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php } ?&gt;<br /><br />&lt;?php if ($question-&gt;isTipEnabled()) { ?&gt;<br />&lt;div class="wpProQuiz_tipp" style="display: none; position: relative;"&gt;<br />&lt;div&gt;<br />&lt;h5 style="margin: 0 0 10px;" class="wpProQuiz_header"&gt;&lt;?php _e('Hint',<br />'wp-pro-quiz'); ?&gt;&lt;/h5&gt;<br />&lt;?php echo do_shortcode(apply_filters('comment_text', $question-&gt;getTipMsg(), array("is_wpdiscuz_comment" =&gt; TRUE))); ?&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php } ?&gt;<br /><br />&lt;?php if ($this-&gt;quiz-&gt;getQuizModus() == WpProQuiz_Model_Quiz::QUIZ_MODUS_CHECK &amp;&amp; !$this-&gt;quiz-&gt;isSkipQuestionDisabled() &amp;&amp; $this-&gt;quiz-&gt;isShowReviewQuestion()) { ?&gt;<br />&lt;input type="button" name="skip" value="&lt;?php _e('Skip question', 'wp-pro-quiz'); ?&gt;"<br />class="wpProQuiz_button wpProQuiz_QuestionButton"<br />style="float: left; margin-right: 10px !important;"&gt;<br />&lt;?php } ?&gt;<br />&lt;input type="button" name="back" value="&lt;?php _e('Back', 'wp-pro-quiz'); ?&gt;"<br />class="wpProQuiz_button wpProQuiz_QuestionButton"<br />style="float: left !important; margin-right: 10px !important; display: none;"&gt;<br />&lt;?php if ($question-&gt;isTipEnabled()) { ?&gt;<br />&lt;input type="button" name="tip" value="&lt;?php _e('Hint', 'wp-pro-quiz'); ?&gt;"<br />class="wpProQuiz_button wpProQuiz_QuestionButton wpProQuiz_TipButton"<br />style="float: left !important; display: inline-block; margin-right: 10px !important;"&gt;<br />&lt;?php } ?&gt;<br />&lt;input type="button" name="check" value="&lt;?php _e('Check', 'wp-pro-quiz'); ?&gt;"<br />class="wpProQuiz_button wpProQuiz_QuestionButton"<br />style="float: right !important; margin-right: 10px !important; display: none;"&gt;<br />&lt;input type="button" name="next" value="&lt;?php _e('Next', 'wp-pro-quiz'); ?&gt;"<br />class="wpProQuiz_button wpProQuiz_QuestionButton" style="float: right; display: none;"&gt;<br /><br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br /><br />&lt;?php if ($this-&gt;quiz-&gt;getQuizModus() == WpProQuiz_Model_Quiz::QUIZ_MODUS_SINGLE) { ?&gt;<br />&lt;div style="margin-bottom: 20px;"&gt;&lt;/div&gt;<br />&lt;?php } ?&gt;<br /><br />&lt;/li&gt;<br /><br />&lt;?php } ?&gt;<br />&lt;/ol&gt;<br />&lt;?php if ($this-&gt;quiz-&gt;getQuizModus() == WpProQuiz_Model_Quiz::QUIZ_MODUS_SINGLE) { ?&gt;<br />&lt;div&gt;<br />&lt;input type="button" name="wpProQuiz_pageLeft"<br />data-text="&lt;?php echo esc_attr(__('Page %d', 'wp-pro-quiz')); ?&gt;"<br />style="float: left; display: none;" class="wpProQuiz_button wpProQuiz_QuestionButton"&gt;<br />&lt;input type="button" name="wpProQuiz_pageRight"<br />data-text="&lt;?php echo esc_attr(__('Page %d', 'wp-pro-quiz')); ?&gt;"<br />style="float: right; display: none;" class="wpProQuiz_button wpProQuiz_QuestionButton"&gt;<br /><br />&lt;?php if ($this-&gt;quiz-&gt;isShowReviewQuestion() &amp;&amp; !$this-&gt;quiz-&gt;isQuizSummaryHide()) { ?&gt;<br />&lt;input type="button" name="checkSingle"<br />value="&lt;?php echo $this-&gt;_buttonNames; ?&gt;"<br />class="wpProQuiz_button wpProQuiz_QuestionButton" style="float: right;"&gt;<br />&lt;?php } else { ?&gt;<br />&lt;input type="button" name="checkSingle"<br />value="&lt;?php echo $this-&gt;_buttonNames; ?&gt;"<br />class="wpProQuiz_button wpProQuiz_QuestionButton" style="float: right;"&gt;<br />&lt;?php } ?&gt;<br /><br />&lt;div style="clear: both;"&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;?php } ?&gt;<br />&lt;/div&gt;<br />&lt;?php<br /><br />return array('globalPoints' =&gt; $globalPoints, 'json' =&gt; $json, 'catPoints' =&gt; $catPoints);<br />}<br /><br />private function showLoadQuizBox()<br />{<br />?&gt;<br />&lt;div style="display: none;" class="wpProQuiz_loadQuiz"&gt;<br />&lt;p&gt;<br />&lt;?php echo $this-&gt;_buttonNames; ?&gt;<br />&lt;/p&gt;<br />&lt;/div&gt;<br />&lt;?php<br />}<br />}</pre>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/plugin-update-issues/">Plugin Update Issues</category>                        <dc:creator>Tife</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/#post-6498</guid>
                    </item>
				                    <item>
                        <title>RE: Wpdiscuz have conflict with wpproquiz help</title>
                        <link>https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/#post-6496</link>
                        <pubDate>Wed, 20 Jan 2021 10:14:48 +0000</pubDate>
                        <description><![CDATA[Yes how can i solve the conflict between it and wpdiscuz]]></description>
                        <content:encoded><![CDATA[<p>Yes how can i solve the conflict between it and wpdiscuz</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/plugin-update-issues/">Plugin Update Issues</category>                        <dc:creator>Tife</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/#post-6496</guid>
                    </item>
				                    <item>
                        <title>RE: Wpdiscuz have conflict with wpproquiz help</title>
                        <link>https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/#post-6488</link>
                        <pubDate>Wed, 20 Jan 2021 06:28:17 +0000</pubDate>
                        <description><![CDATA[Hi @tife,
Are you referring to this closed plugin?]]></description>
                        <content:encoded><![CDATA[<p>Hi @tife,</p>
<p>Are you referring to this closed plugin?</p>
<p>https://wordpress.org/plugins/wp-pro-quiz/</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/plugin-update-issues/">Plugin Update Issues</category>                        <dc:creator>Tom</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/#post-6488</guid>
                    </item>
				                    <item>
                        <title>Wpdiscuz have conflict with wpproquiz help</title>
                        <link>https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/#post-6485</link>
                        <pubDate>Tue, 19 Jan 2021 18:50:38 +0000</pubDate>
                        <description><![CDATA[Please help me
This plugin have conflict with wpproquiz how do fixed it]]></description>
                        <content:encoded><![CDATA[<p>Please help me</p>
<p>This plugin have conflict with wpproquiz how do fixed it</p>
<p><a href="https://www.radiantlearners.com/chemistry-quiz/" rel="nofollow ugc">https://www.radiantlearners.com/chemistry-quiz/</a></p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/plugin-update-issues/">Plugin Update Issues</category>                        <dc:creator>Tife</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/plugin-update-issues/wpdiscuz-have-conflict-with-wpproquiz-help/#post-6485</guid>
                    </item>
							        </channel>
        </rss>
		