Quiz Master

Quiz Master 1.1.0b

No permission to download

Mike2020

Well-known member
Mike2020 submitted a new resource:

Quiz Master - Quiz system for your forum

Marry Christmas to all.

This is a beta version of the quiz master system.
It has been tested on my site here addonsrus.com and is working well.

If you have any questions or need support please post on my site here http://addonsrus.com/index.php?forums/quiz-master.17/

Summary:
Quiz Master includes:

  • Multiple quizzes
  • Multiple quiz leagues
  • Multiple categories, category tree
  • Quiz statistics
  • User quiz creation options...

Read more about this resource...
 

korikus

Member
Hi!
XF 1.4.2

Installing was OK

But I have some problems:

1
With install Quiz_XML.xml
Server Error
Undefined index: isadmin
  1. XenForo_Application::handlePhpError() in QuizMaster/Model/QuizMaster.php at line 2972
  2. QuizMaster_Model_QuizMaster->InsertQuizInfo() in QuizMaster/Model/QuizMaster.php at line 3927
  3. QuizMaster_Model_QuizMaster->DoinstallQuizXml() in QuizMaster/ControllerAdmin/QuizMaster.php at line 1119
  4. QuizMaster_ControllerAdmin_QuizMaster->actionDoimportquizzes() in XenForo/FrontController.php at line 347
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  6. XenForo_FrontController->run() in /Users/koks/utfsite/forum/admin.php at line 13

Then I have problems in AdminCP with click on links:
2
- Create New Quiz
Template Errors: QuizMaster_admin_edit_quiz

Illegal string offset 'id_quiz' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 3:

2: $__extraData['title'] = '';
3: $__extraData['title'] .= (($GetQuiz['id_quiz']) ? ('Edit Quiz' . ': ' . htmlspecialchars($GetQuiz['title'], ENT_QUOTES, 'UTF-8')) : ('Add Quiz'));
4: $__output .= '

Illegal string offset 'id_quiz' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 9:

8: $__extraData['navigation'][] = array('href' => XenForo_Template_Helper_Core::adminLink('QuizMaster/listquizzes', false, array()) . '#' . XenForo_Template_Helper_Core::callHelper('listitemid', array(
9: '0' => $GetQuiz['id_quiz']
10: )), 'value' => 'Quizzes List');

Illegal string offset 'id_quiz' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 17:

16:
17: <input type="hidden" name="id_quiz" value="' . htmlspecialchars($GetQuiz['id_quiz'], ENT_QUOTES, 'UTF-8') . '" />
18: <input type="hidden" name="oldimage" value="' . htmlspecialchars($GetQuiz['image'], ENT_QUOTES, 'UTF-8') . '" />

Illegal string offset 'image' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 18:

17: <input type="hidden" name="id_quiz" value="' . htmlspecialchars($GetQuiz['id_quiz'], ENT_QUOTES, 'UTF-8') . '" />
18: <input type="hidden" name="oldimage" value="' . htmlspecialchars($GetQuiz['image'], ENT_QUOTES, 'UTF-8') . '" />
19: <input type="hidden" name="isadmin" value="1" />

Illegal string offset 'title' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 22:

21: ';
22: $__compilerVar1 .= XenForo_Template_Helper_Admin::textBoxUnit('Title' . ':', 'title', htmlspecialchars($GetQuiz['title'], ENT_QUOTES, 'UTF-8'), array(), array());
23: $__compilerVar1 .= '

Illegal string offset 'id_parent' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 28:

27: <dd>
28: <select class="textCtrl" label="' . 'Select Category' . ':" name="id_category" value="' . htmlspecialchars($GetQuiz['id_parent'], ENT_QUOTES, 'UTF-8') . '">
29: ' . $allcats . '

Illegal string offset 'description' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 35:

34: ';
35: $__compilerVar1 .= XenForo_Template_Helper_Admin::textBoxUnit('Description' . ':', 'description', htmlspecialchars($GetQuiz['description'], ENT_QUOTES, 'UTF-8'), array(), array(
36: 'rows' => '2',

Illegal string offset 'play_limit' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 42:

41: ';
42: $__compilerVar1 .= XenForo_Template_Helper_Admin::textBoxUnit('Play Limit' . ':', 'limit', htmlspecialchars($GetQuiz['play_limit'], ENT_QUOTES, 'UTF-8'), array(), array());
43: $__compilerVar1 .= '

Illegal string offset 'seconds_per_question' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 46:

45: ';
46: $__compilerVar1 .= XenForo_Template_Helper_Admin::textBoxUnit('Seconds Per Question' . ':', 'seconds', htmlspecialchars($GetQuiz['seconds_per_question'], ENT_QUOTES, 'UTF-8'), array(), array());
47: $__compilerVar1 .= '

Illegal string offset 'show_answers' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 54:

53: 'name' => 'showanswers',
54: 'selected' => ($GetQuiz['show_answers'])
55: );

3
- Create Category
Template Errors: QuizMaster_admin_edit_category

Illegal string offset 'id_quiz' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 3:

2: $__extraData['title'] = '';
3: $__extraData['title'] .= (($GetCategory['id_quiz']) ? ('Edit Category' . ': ' . htmlspecialchars($GetCategory['title'], ENT_QUOTES, 'UTF-8')) : ('Add Category'));
4: $__output .= '

Illegal string offset 'id_quiz' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 9:

8: $__extraData['navigation'][] = array('href' => XenForo_Template_Helper_Core::adminLink('QuizMaster/categories', false, array()) . '#' . XenForo_Template_Helper_Core::callHelper('listitemid', array(
9: '0' => $GetCategory['id_quiz']
10: )), 'value' => 'Category List');

Illegal string offset 'id_quiz' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 17:

16:
17: <input type="hidden" name="id_category" value="' . htmlspecialchars($GetCategory['id_quiz'], ENT_QUOTES, 'UTF-8') . '" />
18: <input type="hidden" name="oldimage" value="' . htmlspecialchars($GetCategory['image'], ENT_QUOTES, 'UTF-8') . '" />

Illegal string offset 'image' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 18:

17: <input type="hidden" name="id_category" value="' . htmlspecialchars($GetCategory['id_quiz'], ENT_QUOTES, 'UTF-8') . '" />
18: <input type="hidden" name="oldimage" value="' . htmlspecialchars($GetCategory['image'], ENT_QUOTES, 'UTF-8') . '" />
19:

Illegal string offset 'title' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 21:

20: ';
21: $__compilerVar1 .= XenForo_Template_Helper_Admin::textBoxUnit('Category Title' . ':', 'name', htmlspecialchars($GetCategory['title'], ENT_QUOTES, 'UTF-8'), array(), array());
22: $__compilerVar1 .= '

Illegal string offset 'description' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 25:

24: ';
25: $__compilerVar1 .= XenForo_Template_Helper_Admin::textBoxUnit('Description' . ':', 'description', htmlspecialchars($GetCategory['description'], ENT_QUOTES, 'UTF-8'), array(), array(
26: 'rows' => '2',

Illegal string offset 'id_parent' in /Users/koks/utfsite/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 37:

36: <dd>
37: <select class="textCtrl" label="' . 'Select Category' . ':" name="id_parent" value="' . htmlspecialchars($GetCategory['id_parent'], ENT_QUOTES, 'UTF-8') . '">
38: ' . $allcats . '

Can you help me?
 
Last edited:

Cool

Active member
please would you explain theese lines from \qmaster\scripts\quiz_scripts\QuizClient.js:


Line 220 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Start.php?id_quiz=" + id_quiz,
Line 240 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Questions.php?id_quiz=" + id_quiz + ";updateResumes=" + updateResumes + ";id_session=" + id_session + ";questionNum=" + (currentQuestionNumber-1),
Line 268 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Questions.php?id_quiz_league=" + id_quiz_league + ";updateResumes=" + updateResumes + ";id_session=" + id_session,
Line 296 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Start.php?id_quiz_league=" + id_quiz_league,
Line 325 - url: 'http://<www.addonsrus.com>/dev/QuizMaster_Answers.php?id_session=' + id_session + ';time=' + total_quiz_seconds + ';is_correct=' + is_correct,
Line 358 - url: "http://<www.addonsrus.com>/dev/QuizMaster_End.php?id_quiz=" + id_quiz + ";questions=" + number_of_questions + ";correct=" + correct_answer_count + ";incorrect=" + incorrect_answer_count + ";timeouts=" + timeout_count + ";id_session=" + id_session + ";total_seconds=" + total_quiz_seconds + ";creator_id=" + creator_id + ";totalResumes=" + totalResumes,
Line 381 - url: "http://<www.addonsrus.com>/dev/QuizMaster_End.php?id_quiz_league=" + id_quiz_league + ";questions=" + number_of_questions + ";correct=" + correct_answer_count + ";incorrect=" + incorrect_answer_count + ";timeouts=" + timeout_count + ";id_session=" + id_session + ";total_seconds=" + total_quiz_seconds + ";points=" + points + ";round=" + round + ";totalResumes=" + totalResumes,
Line 1090 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Dispute.php&id_quiz=" + id_quiz + ";id_user=" + id_user + ";id_quiz_question=" + currentid_question + ";reason=" + reason,
 

Mike2020

Well-known member
please would you explain theese lines from \qmaster\scripts\quiz_scripts\QuizClient.js:


Line 220 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Start.php?id_quiz=" + id_quiz,
Line 240 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Questions.php?id_quiz=" + id_quiz + ";updateResumes=" + updateResumes + ";id_session=" + id_session + ";questionNum=" + (currentQuestionNumber-1),
Line 268 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Questions.php?id_quiz_league=" + id_quiz_league + ";updateResumes=" + updateResumes + ";id_session=" + id_session,
Line 296 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Start.php?id_quiz_league=" + id_quiz_league,
Line 325 - url: 'http://<www.addonsrus.com>/dev/QuizMaster_Answers.php?id_session=' + id_session + ';time=' + total_quiz_seconds + ';is_correct=' + is_correct,
Line 358 - url: "http://<www.addonsrus.com>/dev/QuizMaster_End.php?id_quiz=" + id_quiz + ";questions=" + number_of_questions + ";correct=" + correct_answer_count + ";incorrect=" + incorrect_answer_count + ";timeouts=" + timeout_count + ";id_session=" + id_session + ";total_seconds=" + total_quiz_seconds + ";creator_id=" + creator_id + ";totalResumes=" + totalResumes,
Line 381 - url: "http://<www.addonsrus.com>/dev/QuizMaster_End.php?id_quiz_league=" + id_quiz_league + ";questions=" + number_of_questions + ";correct=" + correct_answer_count + ";incorrect=" + incorrect_answer_count + ";timeouts=" + timeout_count + ";id_session=" + id_session + ";total_seconds=" + total_quiz_seconds + ";points=" + points + ";round=" + round + ";totalResumes=" + totalResumes,
Line 1090 - url: "http://<www.addonsrus.com>/dev/QuizMaster_Dispute.php&id_quiz=" + id_quiz + ";id_user=" + id_user + ";id_quiz_question=" + currentid_question + ";reason=" + reason,
opps will take a look at this as i may have forgot to change the url as it was a test so hard coded it will get this changed and updated
 

Mike2020

Well-known member
Hi!
XF 1.4.2

Installing was OK

But I have some problems:

1
With install Quiz_XML.xml

Server Error
Undefined index: isadmin
  1. XenForo_Application::handlePhpError() in QuizMaster/Model/QuizMaster.php at line 2972
  2. QuizMaster_Model_QuizMaster->InsertQuizInfo() in QuizMaster/Model/QuizMaster.php at line 3927
  3. QuizMaster_Model_QuizMaster->DoinstallQuizXml() in QuizMaster/ControllerAdmin/QuizMaster.php at line 1119
  4. QuizMaster_ControllerAdmin_QuizMaster->actionDoimportquizzes() in XenForo/FrontController.php at line 347
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  6. XenForo_FrontController->run() in /Users/koks/utfsite/forum/admin.php at line 13


Can you help me?
i will take a look at this for you right now
 

korikus

Member
Unfortunately last update doesn't work for me.
I have the same errors like in my first message.

I found out this log error in AdminCP :
ErrorException: Undefined index: isadmin - library/QuizMaster/Model/QuizMaster.php:2972

#0 /Users/koks/utfsite/forum/library/QuizMaster/Model/QuizMaster.php(2972): XenForo_Application::handlePhpError(8, 'Undefined index...', '/Users/Vadim/\xD0\xA1...', 2972, Array)
#1 /Users/koks/utfsite/forum/library/QuizMaster/Model/QuizMaster.php(3927): QuizMaster_Model_QuizMaster->InsertQuizInfo(Array, 1)
#2 /Users/koks/utfsite/forum/library/QuizMaster/ControllerAdmin/QuizMaster.php(1119): QuizMaster_Model_QuizMaster->DoinstallQuizXml(0, Array)
#3 /Users/koks/utfsite/forum/library/XenForo/FrontController.php(347): QuizMaster_ControllerAdmin_QuizMaster->actionDoimportquizzes()
#4 /Users/koks/utfsite/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /Users/koks/utfsite/forum/admin.php(13): XenForo_FrontController->run()
#6 {main}


array(3) {
["url"] => string(72) "http://utfsite/forum/admin.php?QuizMaster/doimportquizzes"
["_GET"] => array(1) {
["QuizMaster/doimportquizzes"] => string(0) ""
}
["_POST"] => array(2) {
["_xfConfirm"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}

What does it mean?
 

Mike2020

Well-known member
Unfortunately last update doesn't work for me.
I have the same errors like in my first message.

I found out this log error in AdminCP :
ErrorException: Undefined index: isadmin - library/QuizMaster/Model/QuizMaster.php:2972

#0 /Users/koks/utfsite/forum/library/QuizMaster/Model/QuizMaster.php(2972): XenForo_Application::handlePhpError(8, 'Undefined index...', '/Users/Vadim/\xD0\xA1...', 2972, Array)
#1 /Users/koks/utfsite/forum/library/QuizMaster/Model/QuizMaster.php(3927): QuizMaster_Model_QuizMaster->InsertQuizInfo(Array, 1)
#2 /Users/koks/utfsite/forum/library/QuizMaster/ControllerAdmin/QuizMaster.php(1119): QuizMaster_Model_QuizMaster->DoinstallQuizXml(0, Array)
#3 /Users/koks/utfsite/forum/library/XenForo/FrontController.php(347): QuizMaster_ControllerAdmin_QuizMaster->actionDoimportquizzes()
#4 /Users/koks/utfsite/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /Users/koks/utfsite/forum/admin.php(13): XenForo_FrontController->run()
#6 {main}


array(3) {
["url"] => string(72) "http://utfsite/forum/admin.php?QuizMaster/doimportquizzes"
["_GET"] => array(1) {
["QuizMaster/doimportquizzes"] => string(0) ""
}
["_POST"] => array(2) {
["_xfConfirm"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}

What does it mean?
looking into this now for you
 

Mike2020

Well-known member
Unfortunately last update doesn't work for me.
I have the same errors like in my first message.

I found out this log error in AdminCP :
ErrorException: Undefined index: isadmin - library/QuizMaster/Model/QuizMaster.php:2972

#0 /Users/koks/utfsite/forum/library/QuizMaster/Model/QuizMaster.php(2972): XenForo_Application::handlePhpError(8, 'Undefined index...', '/Users/Vadim/\xD0\xA1...', 2972, Array)
#1 /Users/koks/utfsite/forum/library/QuizMaster/Model/QuizMaster.php(3927): QuizMaster_Model_QuizMaster->InsertQuizInfo(Array, 1)
#2 /Users/koks/utfsite/forum/library/QuizMaster/ControllerAdmin/QuizMaster.php(1119): QuizMaster_Model_QuizMaster->DoinstallQuizXml(0, Array)
#3 /Users/koks/utfsite/forum/library/XenForo/FrontController.php(347): QuizMaster_ControllerAdmin_QuizMaster->actionDoimportquizzes()
#4 /Users/koks/utfsite/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /Users/koks/utfsite/forum/admin.php(13): XenForo_FrontController->run()
#6 {main}


array(3) {
["url"] => string(72) "http://utfsite/forum/admin.php?QuizMaster/doimportquizzes"
["_GET"] => array(1) {
["QuizMaster/doimportquizzes"] => string(0) ""
}
["_POST"] => array(2) {
["_xfConfirm"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}

What does it mean?
found the error uploading new files now so give it 5 mins before downloading the new files
 

korikus

Member
found the error uploading new files now so give it 5 mins before downloading the new files
Last update really solved problem with install Quiz_XML.xml
Now it's OK

But there are problems with "Create New Quiz" and "Create Category" in AdminCP
 

Mike2020

Well-known member
Well happy Christmas to all and a happy new year to you all.
I will not be around for a few days as with family so any questions or fixes will have to wait till then sorry for this but i will be back in a few days.
 

WCFA

Active member
Question where can you change the name
Quiz Master ? I want to put the word training in its place. Thanks
 
Top