• Resolved sweatypits

    (@sweatypits)


    Is there a way to run slickquiz in a modal window?

    My site delivers reference material to members of our martial arts club. My goal is to scatter quick knowledge tests, that open in modal windows, on various pages to test peoples comprehension of the material.

    I use Responsive Lightbox on my site. I am able to get the quiz to start page to open in the modal. However nothing happens when I click the ‘get started’ button.

    I noticed a reference to some footer code in the FAQ. Slickquiz works fine on a regular page, so wondering if this could have something to do with it?

    Am hoping there is a work around for this.

    Any assistance would be appreciated. Thank you.

    https://www.ads-software.com/plugins/slickquiz/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sweatypits

    (@sweatypits)

    Have been digging around the plugin folders/files to try and tweak this. Have also searched online, and found a few similar questions [quizzes in modal windows]. However none have been answered. Not even a, “No it is not doable.”

    In the preview stage, slickquiz opens in a smaller pane. If opening in a modal is not possible, or perhaps too much work to do, is there a way to have live quizzes open in a smaller pane as well?

    Hoping there is way. This is a great plugin. Just needs this one additional feature to go from great to awesome ??

    Plugin Author jewlofthelotus

    (@jewlofthelotus)

    @sweatypits Currently, there is not any built in way of opening a quiz in a modal or popup window. Since every WP site would likely use a different modal plugin, it’s unlikely I’d be able to find a solution that would work in all instances. But it should be possible to add custom code to get the two to integrate.

    You’d essentially need to add a filter to the modal content area telling it to parse shortcodes, something like:

    add_filter( 'modal_content', 'do_shortcode' )

    And then add another filter to the modal content area telling it to load the SlickQuiz resources (CSS & JS), something like:

    add_filter( 'modal_content', array( SlickQuizFront, 'load_resources' ) )

    Hope that gets you on the right path. I will definitely keep looking into better solutions for this though.

    Thread Starter sweatypits

    (@sweatypits)

    I appreciate the response.

    Off the top of my head, I am not sure where I would put those bits of code. However I will dig around the Responsive Lightbox directory, and see if I can.

    I will let you know if I get it working ??

    Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘slickquiz in modal window?’ is closed to new replies.