WordPress.org

Ready to get started?Download WordPress

Forums

SlickQuiz
Quiz Not Showing in Post (88 posts)

  1. thebusybibliophile
    Member
    Posted 2 years ago #

    My quiz is not showing up in my post. I have [slickquiz id=1] in the post, but nothing shows. When I replace the 1 with something else, it gives me the right error message.

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

  2. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @thebusybibliophile - Sounds like something is breaking the JavaScript when the quiz loads.

    Do you have a demo page I can take a loot at? If not, could you copy the source code of the page into http://pastebin.com/ for me?

  3. thebusybibliophile
    Member
    Posted 2 years ago #

    Forgive my ignorance, but what do you mean a demo page or the source code? The post I want the quiz on isn't published yet, so you wouldn't be able to see that...

  4. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    By demo page, I just mean a link to the page with the problem so that I can see it in action.

    Since your page isn't published yet, I would need the source code. So you will need to:

    1. Preview your post
    2. right click on the page
    3. select "View Source" (or something similar depending on the browser)
    4. copy all the code that you see into the text box on http://pastehtml.com/
    5. click "Publish" at the bottom of the pastehtml.com page
    6. click "Publish" again on the next preview page at pastehtml.com
    7. copy and paste the link you get on the last page here

  5. thebusybibliophile
    Member
    Posted 2 years ago #

    Ah, thanks for the tutorial! Here is the link for the test post:

    http://pastehtml.com/view/c6o5xnkn0.html

  6. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @thebusybibliophile - I took a look at the page and I don't see any references to SlickQuiz in the code, can you make sure to put the [slickquiz id=1] shortcode on the page and then preview the page? Then follow steps 2-7 again for me.

    Thanks!

  7. thebusybibliophile
    Member
    Posted 2 years ago #

    It's on line 269 of the one above, but just in case, I've made a new one. The slickquiz code is between the ( ), line 226:

    http://pastehtml.com/view/c6rebnrjw.html

  8. thebusybibliophile
    Member
    Posted 2 years ago #

    When I try something different, like use ':' instead of '=', I can see the error message (Sorry. The requested quiz could not be found.). But if it's right, nothing shows.

  9. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm interesting, can you paste the code into http://pastebin.com/ ?

    I'm having trouble seeing things properly with the way pastehtml caches things - I have never used it before and I only sent you to that one because pastebin.com was down the other day.

    Also, could you let me know what version of WordPress you're using? What version of SlickQuiz?

    Thanks for your patience!

  10. thebusybibliophile
    Member
    Posted 2 years ago #

    WordPress 3.4.1, Blissful Child Theme.

    http://pastebin.com/1VSz3Wbf

    Thank you for helping me get this right!

  11. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @thebusybibliophile - Alright, it seems like another plugin is breaking on the page before the quiz script can run. The broken plugin is called something like "easing slider."

    If you can, try disabling that plugin and previewing the quiz page again. I'd expect disabling the plugin to fix the issue.

  12. thebusybibliophile
    Member
    Posted 2 years ago #

    It's fixed! Thank you so much, there's no way I would have figured that out on my own.

    I love how it looks on my post. Thank you!

  13. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    :) Awesome! Hopefully you weren't using the easing slider plugin for anything. I checked a few other pages of your site and the code seemed to be breaking on them too so it's likely it hasn't worked for a while.

  14. thebusybibliophile
    Member
    Posted 2 years ago #

    Nah, I tried it but was never happy with it so I never used it for real. I'm getting rid of it now, though.

    Thanks again.

  15. rrackow
    Member
    Posted 2 years ago #

    I'm getting an Uncaught TypeError: Object #<Object> has not method 'slickQuiz' error at http://countyprogress.zacpubs.com/ any suggestions?

  16. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @rrackow - hmmm, the main javascript and stylesheet files aren't getting loaded on the page at all! I'm not sure why this would be, but I should be able to dig into the issue on Monday.

    Thanks for your feedback and patience!

  17. rrackow
    Member
    Posted 2 years ago #

    @jewlofthelotus - Thank you for your quick response and your efforts. I'll await your reply next week. Have a good weekend.

  18. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    Hey @rrackow - can you paste me the shortcode that you're using to embed the quiz? It seems like there might be a minor syntax issue that my script isn't accounting for.

  19. rrackow
    Member
    Posted 2 years ago #

    @jewlofthelotus - [slickquiz id=1]

  20. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @rrackow - it looks like the quiz is within a sidebar widget - is it the standard WordPress Text widget?

    Did you also add the following line to your theme?


    add_filter( 'widget_text', 'do_shortcode' );

  21. rrackow
    Member
    Posted 2 years ago #

    @jewlofthelotus - yes, currently the test I was running is in a standard WP text widget.

    As for the theme, I did not install it, I was just asked to see why it was not working. Let me check the theme. I doubt it's there, exactly where should it be placed?

  22. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @rrackow - you could place that line at the top of index.php or functions.php, for example.

  23. Jessdoodled
    Member
    Posted 2 years ago #

    Hi @jewlofthelotus, first thanks for developing and sharing this quiz plugin! It's awesome!

    Second, mine is not displaying in the post : ( I'm having the same issue that thebusybibliophile did. Would you be able to help? I need to get this posted today! I'm not sure if I can disable the existing plugins if those are causing a problem, but I can check.

    Here is the source code for the post preview page:
    http://pastebin.com/qSTZCyB5

    Thank you!!!

  24. rrackow
    Member
    Posted 2 years ago #

    @jewlofthelotus - As I expected I did not find it listed anywhere, so I added first to function.php in the theme folder and refreshed the page with no change. So I then removed it and added it to the index.php page inside the theme folder and still had the same result as before. I'm sure it's something simple just not finding it.

  25. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    Hi @Jessdoodled! Thanks for trying out the plugin - hopefully we can get it working for you!

    I took a look at your preview page and it looks like a plugin call google-analyticator is breaking the page before the quiz code can run. So it's likely if you disabled that one that the quiz would load.

    It's also likely that this google analytics plugin isn't working at all and probably hasn't for a while.

  26. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @rrackow - could you add it to one of those files again and either send me the source in a pastebin or let me know so I can refresh the page? I'd like to see if any errors cropped up that might be blocking it.

    Thanks for all your help and patience figuring this out!

  27. rrackow
    Member
    Posted 2 years ago #

    @jewlofthelotus - Okay, the html source is http://pastebin.com/tyhv6twc, the site is in my first post. Thank your for your time and patience, I really appreciate it. Do you require the function.php source as well?

  28. Jessdoodled
    Member
    Posted 2 years ago #

    @jewlofthelotus, that worked alright! Thank you for checking on that. I'll have to see about finding another analytics plugin.

    I'm not sure if there would be a fix for this or if I'll just have to rewrite the quiz, but I went in to edit my quiz (14 questions), and none of my answers, questions or info are there, just a blank form. If there anyway to recover that info? It's odd because it still works and previews just fine.

    And would this be a style issue with my blog, or is this native to the plugin... any answer I have that spans more than one line, knocks the text down below the answer bubble. See: https://skitch.com/jessmpatterson/emny4/how-much-do-you-know-about-your-food-and-one-degree-take-our-quiz-one-degree-organic-foods

    Thanks again, really appreciate the help!

  29. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @Jessdoodled - glad to hear you got it working!

    As for the broken edit page - can you take a look at the developer JavaScript console after you load the page and paste any errors you find in a pastebin for me?

    Depending on the browser, you can usually get to the Console by right clicking on the page > clicking on "Inspect Element" (or something similar), and then clicking to the Console pane within the inspector window. Once you're there, you'll likely see a few red error messages - those are what I will need to see.

    The style issue is with the plugin - that was a contribution from someone who submitted some changes. I'm about to remove it and will push an update to the plugin that you should see within a few hours.

  30. jewlofthelotus
    Member
    Plugin Author

    Posted 2 years ago #

    @Jessdoodled - the style issue fix has been added. You should see an update for the plugin shortly.

    @rrackow - I am still investigating your issue. I know where the problem is occurring, just not sure why yet, or how to fix it. Stay tuned.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.