• gingerpot

    (@gingerpot)


    Hi, it is a great plug-in and helping so much to improve my website!

    I’d like to display YouTube videos directly in quiz description, question and answer areas. So far, I tried the below. None had succeeded to display videos in quiz.

    – Using iframe which YouTube distributes: doesn’t show up at all.
    – Pasting video’s url: the url shows up as a clickable link.
    – Using Insert Media function: a clickable link appears with a name.

    What I want to do is display playable YouTube video right in there without moving away from quiz page. Also it HAS to be YouTube video so users can make a playlist out of the result of quiz.

    From reading this post: https://www.ads-software.com/support/topic/embedded-youtube-videos-continue-playing?replies=2 there was a possible way to do it, at least 11 months ago.

    I’m desperate here. If anybody has any tiny tips to make it happen, please reply to this post.

    Thanks again for a great, fun plug-in. I really appreciate for your work!

    https://www.ads-software.com/plugins/wp-pro-quiz/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    I use videos in both the quiz and the answer. You can see lots of examples on this site of mine.

    https://travelquizweekly.com/ancient-cities/experiencing-scenic-sedona-arizona/

    Check the page source to see the code. Here is an example of the code – same type code is in answer as the quiz.

    Take the quiz too for videos in answer:

    <h2>Secret Sedona – HD</h2>
    Uploaded to Youtube on Feb 2, 2013

    Vibrant photography of Sedona’s red rocks will renew your connection to nature, as the William Eaton Ensemble playing “Where Rivers Meet” stirs your soul. The music beautifully accompanies Larry Lindahl’s award-winning photography of Sedona’s desert wildflowers, hidden waterfalls, cliff dwellings, and lush scenes in Oak Creek Canyon.

    <iframe src=”//www.youtube.com/embed/X66x99zE1K8?rel=0″ width=”800″ height=”600″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>

    Charles

    Thread Starter gingerpot

    (@gingerpot)

    Hi Charles,

    thanks for your reply! Let me say it was a big relief for me to see the YouTube videos are actually working in this plug-in.

    The iframe codes I’d get from YouTube is in this form:
    <iframe width=”560″ height=”315″ src=”//www.youtube.com/embed/VdoGNvpVo_A” frameborder=”0″ allowfullscreen></iframe>
    and it wasn’t working till yesterday. As soon as I read your post, I copied and pasted your code next to mine. Well, let me tell what happened. Both videos showed up in quiz description area! It doesn’t really make sense. I haven’t change my iframe code at all. It is a huge mystery.

    Anyways, now one thing I wanted to do has done. Next is: figuring out if I could embed YouTube videos in correct & incorrect areas of the quiz. I put both of our iframe codes in the area, so far none of them are showing up.

    Thanks again for your quick response! I loved and enjoyed photos and video on your site!

    shino

    Hi gingerpot,

    Glad I could help.

    As far as adding videos to correct or incorrect answers you can do that too.

    Here is an example of where I used an image and a video with the correct answer. The code is with the correct answer. Take the 1-question quiz to get to the video.

    https://travelquizweekly.com/city-quiz/cody-wyoming/

    I could have done the same thing of using a video for the incorrect answer had I needed to.

    Hope this helps.

    Charles

    Hi gingerpot,

    Oops, I should mention I have my recent quizzes, including the Cody Wyoming quiz, set to show the correct answer whether one answers correctly or not. In that particular case I did put the code with the correct answer.

    But I just looked and see if I had not checked that option, I could have just as easily put the code in the area for the incorrect answer.

    Glad you liked the photos and videos on my site.

    Charles

    Thread Starter gingerpot

    (@gingerpot)

    Hi Charles,

    Thanks for your reply again! Yes, it is helping me a lot. This time too, I am so glad to see it’s working beautifully. The example you shown is EXACTLY what I want to do.

    So I go though and compare your site’s page source and mine. What I found out is: a whole bunch of codes are not showing up on my page source!! In mine, after
    <div class=”wpProQuiz_quizAnker” style=”display: none;”></div>
    line, it’s going into Javascript/jQuery section which is placed in the end of this quiz script. While in yours there’s a “wpProQuiz_list” section where you can find all the texts/pictures/videos you inserted in correct/incorrect answer area.

    Continued with tests, and finally I discovered cause. If you checked and enabled “Show only specific number of questions” option, somehow “wpProQuiz_list” section vanishes and the video you embedded won’t show up. If you changed nothing but check off “Show only specific number of questions” option, the video will show up in Correct/Incorrect area.

    So watch out Charles and fellow users if you consider engaging this function. I’ll keep work on to figure out why it’s happening. In my project, it’s fatal if I couldn’t use both videos and “Show only specific number of questions” at same time anyway.

    Thank you soooooo much for your time and effort Charles! I could never come this far without your support. Your site seems full of quizzes and I will be revisiting again and agian. Hope you enjoy making the site as much as visitors do.

    Shino

    Hi gingerpot,

    Well, I’m glad you solved that.

    I saw all those options for the plugin and only enabled a very few. I guess I was lucky to have picked the right ones that didn’t interfere with showing videos or anything else I wanted to do.

    I’m saving the above in case I run into problems if I change some options.

    You’re lucky I just happened to be looking for something I couldn’t figure out about the plugin and happened to run across your post. I haven’t posted here for over 3 years although I have looked in the forum a few times for things I wanted to do and had questions about for other problems/questions I had.

    I actually was on here to see how Wp-Pro-Quiz handled the leaderboard and registered users. I see, unfortunately, there is no support from the developer as far as I can tell and so far I cannot find the answer.

    Thanks again for the comments about my site and quizzes. I like that site and doing the quizzes. However, if I cannot get some decent traffic pretty soon I’ll probably stop adding quizzes. I am now paying someone to do the articles and create the quiz questions, but I actually create the quiz in the plugin and add those videos there.

    I am thinking of creating another site with a quiz plugin and saw a mention of another quiz plugin that has seemingly more features that I need related to registered users, mailing them quiz results and more.

    https://www.ads-software.com/plugins/quiz-master-next/

    I wish I could try it with my current site, but I have too many quizzes and too much content. So I may create a new site and try it on that first. On second thought, maybe on my other travel site which has only 5 or 6 quizzes on it.

    If you have anymore questions or problems don’t hesitate to contact me. If it’s on some other topic or another plugin just contact me from my blog or my travel quiz weekly site. My name, Charles, as the writer of some of the posts will usually have a link to my personal blog or another site of mine or you can use the contact form on the quiz site to contact me.

    Charles

    Thread Starter gingerpot

    (@gingerpot)

    Hi Charles,

    Yes. I consider myself so lucky since many threads are left without comments. And wow, talk about the timing. I guess your thread is one of those left alone.

    I hope you can find a solution for what you want with the Leaderboard. Though I have to admit the Leaderboard with WP-Pro-Quiz is tricky one.

    The plug-in you show above looks quite nice. I must check how it works on my current site since my quizzes are still on testing stage.

    This whole experience and what you said about your existing site reminded me that contexts belong to plug-in. The more you put things into a plug-in, the more hard it’s gonna be to migrate. I should be aware of that.

    I’m definitely going to contact you privately. It was very nice meeting you, Charles.

    shino

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display YouTube Video in the Quiz’ is closed to new replies.