Support » Plugins and Hacks » mTouch Quiz » [Resolved] [Plugin: mTouch Quiz] No question reordering

[Resolved] [Plugin: mTouch Quiz] No question reordering

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author gmichaelguy


    Currently you cannot easily manually reorder the questions. You can, however, have the questions displayed in random order by including the option randomq=on in the shortcode. I do hope to include manual reordering in a future update. It’s “in my mind” but not at the top of the list.

    Thanks for your interest and registering your request.

    mTouch Quiz

    Thanks for the prompt response; active development is to me twice as important as any current set of features. Keep it up 🙂

    IF you have access to the db you can change the id’s of the questions in the wp_mtouchquiz_question table. This can allow the order of the questions to be specified. Though this is tricky best just to enter them in the correct order the 1st time =p I used phpmyadmin to reinsert an accidently deleted question back into its proper order successfully.

    Hi 🙂
    This is a very essential requirement for easy question reordering using drop & drag table rows. I have implemented this feature, have a look first
    Before reorder
    After reorder

    Briefly – how to implement:
    1. Get jquery table drag-drop plugin and attached
    2. Set a new field in wp_mtouchquiz_question->question_reorder
    3. Make a custom js script, attached and write your function to handle the POST data whenever drag and drop occurs and updates db field with new order via ajax.
    4. Place the field ‘question_reorder’ with ORDER BY in question.php, after which your question display order will be in accordance with your drag-drop order. We can as well Place ‘question_reorder’ in ORDER BY with RAND() and also replace ORDER BY ID with ORDER BY question_reorder in show_quiz.php, after which it will arrange the question in quiz page in accordance with question_reorder + randomize
    5. Finally do some styling and attach ajax loader image etc.


    Plugin Author gmichaelguy


    That’s really fantastic. Rather than telling me HOW to implement it, can you contact me and share your implementation with me? I know many others would be happy to get this. There are a few additional changes needed to support a few features you may not use or know about relating to question display. I’d be happy to do that part and share. Contact me at the email you see on my site http://gmichaelguy.com

    That’s awesome. Thank you.

    Hi 🙂

    Actually I have implemented easy question drop & drag feature on mtq version 2.2.4. Therefore I need some time so that I can extract that part and compile it on your latest version – 5.2.1
    Once it is ready, will send it to you.


    Wow good implementation biswajeet!
    I think many of us are waiting for that to hit the shelf 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: mTouch Quiz] No question reordering’ is closed to new replies.
Skip to toolbar