• Resolved smallcodes

    (@smallcodes)


    Hello,
    we are trying to associate a badge being issued to the user, with the successful completion of a HDquiz. Having created the quiz, under the “Quiz Settings” tab there’s an “add BadgeOS Shortcode” button next to both the “quiz pass test” and “quis fail test” sections. By clicking on such button, a pop-up window opens up, but only a drop-down menu and two buttons are there: “add shortcode” and “cancel”. We tried selecting each of the options in the drop-down menu and clicking “add shortcode”, but nothing happens. There seems to be a visualization issue, since the pop-up window is much bigger than the content displayed, so we think there should be some sort of menu in there that is not being correctly visualized.
    Anyone else has had a similar issue, and how did you solve it?
    thanks a lot in advance

Viewing 1 replies (of 1 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi smallcodes,
    HD Quiz does not load full tinyMCE instances since it would slow pages down far too much. I’m assuming that the issue is that BadgeOS doesn’t check for compatibility and simply adds their buttons next to any and all content editors, simply banking on the fact that all pages would already have needed assets loaded.

    I assume that what this button does is generate a shortcode that you can paste into any content editor? If so, try adding a new post or page, generating the shortcode there, and then copy/paste it over into HD Quiz.

    However, please note that there is a good chance that this will not work for you. Shortcodes are handled by the server, which means that a shortcode already fires off before the user submits the quiz. This means that there is no way for BadgeOS to know if the user passed or failed their quiz.

    Not all is lost yet though! Very very soon (like probably this week soon) the next version of HD Quiz will be released that will allow anyone to “hook” into the quiz submit event. Using this, you could very easily create a function that will automatically fire off whatever shortcode you want every time the quiz is submitted.

    Please let me know if you are still interested and I’ll reply to this thread once released to provide you with demo code that would work for your use case.

Viewing 1 replies (of 1 total)

The topic ‘integration with BadgeOS’ is closed to new replies.