WordPress.org

Ready to get started?Download WordPress

Forums

mTouch Quiz
Add a link to final results page (4 posts)

  1. Stef Verbeeck
    Member
    Posted 1 year ago #

    Hi all,

    I was wondering if there is a possibility to add a link/button to other quizzes on the final result page of mtouch (not on the questions pages). I tried adding a link almost everywhere in show_quiz.php, without result.

    I've tried using the "if($show_final)" php code to make sure the link only appears at the very end, but either it shows nowhere or it shows everywhere.

    <?php } if ($show_final ) {?><p>link to more quizzes</p><?php } ?>

    Any ideas on how to accomplish this are highly appreciated.

    http://wordpress.org/extend/plugins/mtouch-quiz/

  2. gmichaelguy
    Member
    Plugin Author

    Posted 1 year ago #

    Why don't you just put HTML in the final screen box in the quiz options page?

    Sorry for slow response. The RSS feed used to send these much quicker than now. I just got this minutes ago.

  3. Stef Verbeeck
    Member
    Posted 1 year ago #

    Hi gmichaelguy,

    That's the thing. Layoutwise, I would prefer to have this link (in our case a banner div) to be displayed at the bottom of the page, underneath the in/correct answers overview, not in the rounded corner div at the top of the page.

  4. gmichaelguy
    Member
    Plugin Author

    Posted 1 year ago #

    Best bet is to put the banner under the quiz in your WordPress page (not in any quiz option and without modifying the quiz plugin php). Hide it using CSS and then hack my javascript to reveal this banner when someone clicks get results button. You should be able to figure out what function is doing all this quite easily. Turn off "use min" in the mtouchquiz.php file so you can edit the script.js and not the minified one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic