Customize SlickQuiz plugin

Completed Posted 7 years ago Paid on delivery
Completed Paid on delivery

I am creating a quiz created with SlickQuiz, and wish to conditionally display a different SVG file (created with MapSVG) for each question and on the results page of the quiz.

The SVG files need to be displayed on a page using a shortcode, which can't (as far as I could determine) be inserted into the SlickQuiz plugin.

So I think the solution is to conditionally display the SVG on a page by putting the following PHP in a custom page template, above the shortcode that inserts the quiz:

<?php

$q = $question_number;

// load the svg for the next question - question 2

if ($q == 1) {

echo do_shortcode('[mapsvg id="467" title="My Q2 SVG"]');

// quesion 2 is the last question so load the svg for the results page

} elseif ($q == 2) {

echo do_shortcode('[mapsvg id="475" title="My results page SVG"]');

// no question number received so load the svg for q1

} else {

echo do_shortcode('[mapsvg id="475" title="My Q1 SVG"]');

}

?>

I have tested the above, by manually setting the $q variable, and it does indeed display the different SVG files above the quiz.

So what I need is someone who can write the javascript (AJAX call?) from the SlickQuiz plugin (possibly the js/[login to view URL] file) to send the current question number variable to be picked up by the php, each time the "Next >>" button or "Get Your Score>>" button is clicked.

If you think there is better approach to achieve this you should also suggest it before starting the work.

Note that you should develop and test on your own development environment as I cannot provide admin access to my live site.

AJAX JavaScript PHP WordPress

Project ID: #11919958

About the project

9 proposals Remote project Active 7 years ago

Awarded to:

picaro3535

Solution: Let's add a custom field in slick quiz plugin to add id of mapsvg. Then modify the SlickQuiz plugin to render svg for each quiz. This can be done in 2 ways: either modifying the SlickQuiz plugin or develop an More

$55 USD in 3 days
(29 Reviews)
5.0

9 freelancers are bidding on average $99 for this job

rajeshsonisl

Hello! With 98% to 99% completion rate, 900+ successfully completed projects, and a 4.99 reputation (maximum possible, 5.0) (can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... y More

$157 USD in 2 days
(1013 Reviews)
8.7
mituld

Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks

$195 USD in 8 days
(460 Reviews)
8.2
bhaveshjnariya

Dear Hiring Manager, Greetings of the Day! I am professional website developer/designer. I have 4+ years of experience in this field. I'm very energized to provide my solutions for your job. Please you can get in More

$77 USD in 2 days
(85 Reviews)
6.2
allWebDesignPro

A proposal has not yet been provided

$77 USD in 3 days
(5 Reviews)
4.1
debtonu1982

Hello, Plugin developer here. I can fill the gap of your Quiz plugin. I can register shortcode and complete the project. Ready to start NOW! Regards Tonu

$66 USD in 1 day
(8 Reviews)
3.6
IBITOL2016

Hi, I have read your description, I have few questions about the project. please initiate chat to discuss more about the project. Thanks and Regards, iBitol

$83 USD in 10 days
(13 Reviews)
3.8