WordPress.org

Ready to get started?Download WordPress

Forums

SlickQuiz
[resolved] Quiz content not displaying, but labels are (26 posts)

  1. Vighpyr
    Member
    Posted 2 years ago #

    I installed the plugin, activated it and it seems to work fine as far as creating a new quiz. When I put “[slickquiz id=X]” (I replaced the “X” with the number of the quiz I created) and view the page, all I get is:

    THE NAME OF THE QUIZ

    Get Started
    Your Score:

    Your Ranking:

    That’s it. Any idea what I’m doing wrong?

    Here is the info from the Developer's Console when I view the page:

    <em>GET http://funfit4life.pcgius.com/wp-content/plugins/css/front.css?ver=3.4.1 404 (Not Found) /?page_id=932:266
    GET http://funfit4life.pcgius.com/wp-content/plugins/slickquiz/css/slickQuiz.css?ver=3.4.1  /?page_id=932:266
    GET http://funfit4life.pcgius.com/wp-content/plugins/slickquiz/js/slickQuiz.js?ver=3.4.1 404 (Not Found) /?page_id=932:266
    Uncaught TypeError: Object [object Object] has no method 'slickQuiz' /?page_id=932:532</em>

    Thanks,
    Michael

    http://wordpress.org/extend/plugins/slickquiz/

  2. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the feedback, Michael! It seems the method I'm using to get the plugin path and load resources from that path is outputting the wrong location.

    I just pushed an update with an alternate method of getting the path, so please try downloading the plugin and replacing your current version. (You won't see the update in your WP app, or a version number change - but it is what's available on http://wordpress.org/extend/plugins/slickquiz)

    Let me know if you see any change with this!

  3. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    A new version is up that seems to have fully resolved this issue. Please give it a try and let me know if you're still having the problem.

    Thanks for your patience and help with this!

  4. AndrewKantor
    Member
    Posted 2 years ago #

    Hey there! I'm having the same problem. The quiz consists of the name (with the apostrophes being escaped out for some reason -- Andrew\'s Test Quiz) and

    Get Started
    Your Score:

    Your Ranking:

    The words "Get Started" have the styling of a link (underline appears on hover, for example), but they're not actually a link. Also, there's no neat background image for the button.

    I tried uploading the version you linked to above, as well as the one that installs with "Add New" (in case there was a difference). No joy.

    Any ideas? I'm using the latest WP, and I'm happy to give whatever details you need!

  5. Ethsaus
    Member
    Posted 2 years ago #

    I am using the latest version of WP and of your plugin, but I'm having the same problem.

    If it helps at all here is the markup (I don't see code anywhere here and this code is static) that I find:

    <div class="slickQuizWrapper" id="slickQuiz1">
    <h2 class="quizName"></h2>
    <div class="quizArea">
    <div class="quizHeader">
    <div class="buttonWrapper">< a >Get Started!< /a ></div>
    </div>
    </div>
    <div class="quizResults">
    <div class="quizResultsCopy">
    <h3 class="quizScore">Your Score: <span> </span></h3>
    <h3 class="quizLevel">Your Ranking: <span> </span></h3>
    </div>
    </div>
    </div>
    <div class="clear"></div>

  6. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    Hey @AndrewKantor and @Ethsaus - could you copy the full source of the page into a pastebin for me? (pastebin.com)

    It seems like the JavaScript is still not loading properly - this could be due to a conflict with another script or just that it's not loading at all.

    Thanks for your help!

  7. Ethsaus
    Member
    Posted 2 years ago #

    Here is the url I'm trying to past the code into: http://crossinghistory.com/main/quiz/

    I'll paste the code later if I can.

  8. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @Ethsaus - It looks like none of the plugin files are loading at all. Can you verify that the SlickQuiz plugin is activated?

    I do see files for an "ssquiz" - but this is not for SlickQuiz.

  9. Ethsaus
    Member
    Posted 2 years ago #

    Hmm sorry about that. Not sure why it was deactivated. It is active now.

  10. AndrewKantor
    Member
    Posted 2 years ago #

    You want the code for the entire page? (Well, post?) Okey doke:
    http://pastebin.com/4tS5P8gr

    Here's something interesting: I have several domains and several site hosted in the same place, off of the same account -- meaning the directory structure is the same as the one I'm having trouble with.

    Just for fun, I tried SlickQuiz on another site and it worked perfectly.

    In other words, the site that's having a problem has a path like

    /public_html/varbuzz/wp-content...

    while the site where SlickQuiz is working has a path of

    /public_html/varwow.com/wp-content...

    So it doesn't look like it would be a problem with absolute or relative paths. (Then again, I'm no coder.) So I'm thinking maybe it's a conflict with another plugin. Trouble is, we have a lot, so before I start disabling them I'd like to get an idea of which ones (or which kinds) are likely to cause a problem.

    Thanks for your help with this!

  11. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @Ethsaus - It looks like there is a problem with another plugin / script on the page that is occurring before the quiz even loads.

    The offender seems to be a missing dialog box - the file with the error is called gsc.js

  12. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @AndrewKantor - The paths shouldn't be the issue. Looking at the code you shared, I don't see any of the javascript resources for the quiz at all. This would suggest to me that the plugin isn't enabled. And if that was the case, the [slickquiz id=x] shortcode wouldn't even inject the quiz. So did you manually place the following on the page:


    <div class="slickQuizWrapper" id="slickQuiz1">
    ...
    </div>

    I would try ensuring that the plugin is activated and that you're using the shortcode on the page.

  13. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    Actually, @Ethsaus - I don't see the scripts loading on your page either.

    @AndrewKantor & @Ethsaus - can you verify that your themes contain a call to the wp_footer() method in the footer template:


    <?php
    /* Always have wp_footer() just before the closing </body>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to reference JavaScript files.
    */

    wp_footer();
    ?>

    More info: http://codex.wordpress.org/Function_Reference/wp_footer

  14. AndrewKantor
    Member
    Posted 2 years ago #

    Honest and for true, it's activated. Ditto that the shortcode is there. But now I'll check that wp_footer(); is in place....

  15. AndrewKantor
    Member
    Posted 2 years ago #

    HAHA! It was the wp_footer()!

    W00t! Thank you thank you thank you!

  16. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @AndrewKantor - Glad to hear that fixed it!

  17. AndrewKantor
    Member
    Posted 2 years ago #

    Thank you again! I do have one more very quick question, if you're willing:

    Is there a way to adjust the thresholds for the different ranks? For example, to say that only 100% correct answers gets you a rank of 1, 75-99% gets you a rank of 2, etc.?

    Thanks SO much!

  18. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @AndrewKantor - not within the admin interface, you could dig into the JS (slickQuiz.js) and tweak the calculateLevel method to your liking. It's pretty straight forward - just checks if the percentage is within certain ranges.

    If you decide to do that, just make sure to back up your changes as if you ever run update the plugin they will be overridden.

    Perhaps one day down the line I'll add a management feature to set the levels manually, I'll put it on the list!

    Thanks for using the plugin and helping me test it!

  19. Ethsaus
    Member
    Posted 2 years ago #

    Hmmm, I have a footer tag and its not doing anything.

  20. Ethsaus
    Member
    Posted 2 years ago #

    Actually I didn't have a footer tag on that template, but once I added it things got worse. Now there isn't even an inactive start button like there was before.

  21. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @Ethsaus - do you have a demo page I could take a look at?

    If not, if you could paste the source code into a pastebin for me I could see if anything else sticks out. If you do the pastebin, send me both versions - with and without the wp_footer method enabled.

    Thanks for your help and patience!

  22. Ethsaus
    Member
    Posted 2 years ago #

    I don't exactly have a demo page, but since I'm working on a personal project I have no problem with sharing the actual site.

    Here is the code I have for the page currently:
    http://pastebin.com/qtcwfjVf

    And this is the resulting page:
    http://crossinghistory.com/main/quiz/

    Here is it without the footer:
    http://pastebin.com/iBMmzbrU

    And this is the resulting page:
    http://crossinghistory.com/main/quiz-no-footer/

    I also just had a thought, I don't have any code in my footer. All I have is the markup, that I want displayed at the bottom of every page. I don't think this is a problem because I tried switching themes to another theme that I haven't messed with at all, and I had the same problem.

    Thanks

  23. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @Ethsaus - the version with the footer (wp_footer method) IS the correct one. There is still a bug with that version that I'm digging into for you. Stay tuned.

  24. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    Hey @Ethaus - I found the problem and have updated the plugin with the needed changes. Please download the newest version from:

    http://wordpress.org/extend/plugins/slickquiz/

    And replace your current plugin.

    Also, make sure that you DO have the footer with the wp_footer() method enabled.

    Let me know how it goes!

  25. Ethsaus
    Member
    Posted 2 years ago #

    Alright it is working now.

    Many thanks, for building the great plugin and taking the time to get it fully functioning.

  26. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    Glad to hear it! Thanks for helping me improve it!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.