We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42035
    • 90 Posts
    Hi

    I want to implement the quiz module in my site. I want to know is there any extra available to integrate quiz in Modx Revolution ?

    Best way to make it feasible ?

    This question has been answered by sottwell. See the first response.

      Arkalp.com
      • 28042 ☆ A M B ☆
      • 24,524 Posts
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        It has options for saving a user's data via AJAX requests. You would need a resource with a snippet to process the AJAX request and do whatever you want with the data.

        As far as the actual quiz questions and answers, probably the easiest would be to have your questions and answers as resources, with the question in the longtitle and the answer in the content, using a container in the Resource Tree for each quiz, and its children as the question/answer for that quiz. You could even use the introtext field for the answer, and the content for further information.

        For the display, just use one of the listing snippets, getResources or pdoResources, with a chunk tpl to format the question and answer with the HTML that the Javascript plugin expects.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
        • discuss.answer
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Actually, looking at this, it bases everything on a JSON file. That would be right up MIGX's alley, since MIGX stores everything in JSON strings anyway.

          Advanced Usage

          Want to manage your quizzes in a content management system?

          Simply translate your CMS quiz data into a JSON object formatted like quizJSON in js/slickQuiz-config.js. Then assign it as the quizJSON variable instead of loading js/slickQuiz-config.js.

          Alternatively, you can pass the JSON right into the plugin using the json option (useful if you are placing multiple quizzes on a page):

          $(function () {
          $('#slickQuiz').slickQuiz({json: {YOUR_JSON_HERE}});
          });
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 42562
            • 1,145 Posts
            If you are willing to use an externally hosted platform, I am thinking https://www.quizlet.com which has a somewhat powerful api https://www.quizlet.com/api/2.0/docs/api_list
            I think your users will have to register at quizlet also.

            Or, what I use is the powerful quiz faber app. It's all local.
            http://www.lucagalli.net/quizfaber/index.php/en

            This allows me to create any kind of quiz, with an awesome gui.
            The original questions are saved and managed in the app, nicely retrievable at any time, like a database.
            Since it stores locally, it means the output is yours to control and integrate, etc.

            Before taking a quiz, a JS alert prompts the user to enter his name, use MODx to automatically fill in your registered user's name.
            It can post and store scores also; just use MODx to hijack the landing page.

            Another one I used is http://www.hotpot.uvic.ca

            I hope you find something useful here.
              TinymceWrapper: Complete back/frontend content solution.
              Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
              5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
              • 42035
              • 90 Posts
              Thanks for your reply,
              Let me explain more about my issue

              -> Logged in user can buy exam.
              -> Exam is available for user who have bought it.
              -> User can save the exam whenever he/she wants, I have to save answers of questions in the system so next time user can continue exam.
              ->Exams has multiple choice questions only.

              I want to implement such a system in modx.
                Arkalp.com
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Ah. That's another matter altogether. You need a cart to sell the subscription to the exams, a way to keep track of exams the user has subscribed to, and a way to list the exams the current user has access to. Will you want a time limit on these exam subscriptions?

                Then you need to have the exam questions and answers, and storage of the current user's answers as he progresses - probably best using AJAX on selection of a radio button. Each time the user logs in, you'll need to be able to display his in-progress exams, with links to continue where he left off.

                So you see, it's going to be a fairly complicated set of applications. MODX certainly doesn't have any add-ons for such a thing, at least not as far as I know.

                For one thing, what's to keep the user from looking at all of the questions, quitting and looking up the answers, then coming back and re-doing it with the correct answers?
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org