Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi klaas Wiertzema,

    Unfortunately our plugin does not have that ability at the moment. We will add that to our feature request list for you.

    Thread Starter klaas Wiertzema

    (@klaas-wiertzema)

    Thanks

    Tyler Johnson

    (@tylerjohnsondesign)

    Hey klaas,

    I really needed this functionality and new it would be easy to add. So, here’s how to add it:

    1. Go to plugins > quiz-master-next > php.
    2. Open qmn_results.php.
    3. Go to line 143 and add this after the </script> tag:

    <script language="JavaScript">
            function toggle(source) {
              checkboxes = document.getElementsByName('delete_results[]');
              for(var i=0, n=checkboxes.length;i<n;i++) {
                checkboxes[i].checked = source.checked;
              }
            }
        </script>

    4. Go to line 222 and in between the <th> tags, add:

    <input type='checkbox' onClick="toggle(this)" />

    5. Now save! And you’ll have a bulk select checkbox, so that you can bulk delete all results displayed on the page.

    Hey Tyler:

    Thanks for going the extra step and looking into the implementation. Do you mind if we use your concept to add the feature into the core?

    Alternatively, feel free to create a pull request on our GitHub Repo

    Tyler Johnson

    (@tylerjohnsondesign)

    No problem! Use away Frank. And I’ll pull it if I have time.

    Have a great day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Quiz Results, Bulk actions, delete items’ is closed to new replies.