• Resolved archse

    (@archse)


    Hello,

    We have purchased Quiz Cat Elite as our client wishes to add personality quizzes to their site. They want to use an iframe within the results content, however Quiz Cat filters this out using kses tag stripping. We’re running Quiz Cat on a multisite – along with the unfiltered-mu plugin which allows site admins to include iframes in their content.

    Unfiltered-mu is working in all other cases except for Quiz Cat. We suspect that the issue is in Quiz Cat’s implementation and direct calling of kses. If this is a bug we hope it can be reported to the development team and a fix rolled out.

    In the meantime if there are any workarounds that would allow an iframe to be used in the quiz results, we would like to give this a try.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author fatcatapps

    (@fatcatapps)

    Hello there,

    This is currently intended behavior for Quiz Cat. We have specifically stripped certain HTML elements, to make sure that the users do not break the quizzes.

    And this cannot be easily changed by making simple code changes.

    In the case of Iframes, we will look at adding this in the next release.

    Let us know if you have any other questions.

    Regards.

    Thread Starter archse

    (@archse)

    Is there an ETA for the next release?

    Plugin Author fatcatapps

    (@fatcatapps)

    Hello there,

    After speaking to our developer about this, he said we follow the WordPress’s normal practice for filtering out HTML code. He also said what you are trying to achieve is possible by modifying the kses function.

    Something like this: https://gist.github.com/bjorn2404/8afe35383a29d2dd1135ae0a39dc018c

    Also another new update on this matter would be we will not working on this for the next release since this is achievable through the custom function.

    Let us know if you have any other questions.

    Thanks

    We found adding the kses filter wasn’t enough, we also needed to whitelist iframes in the wysihtml component. We dequeued wysi.min.js, copied wysi.js to the theme, and modified the ‘tags’ array to include iframes;

    iframe: {
    	'check_attributes': {
    		'src': 'url',
    		'height': 'dimension',
    		'width': 'dimension',
    	},
    	'set_attributes': {
    		'frameborder': '0'
    	}
    },
    

    It now works, albeit with a different kses filter, but we would regard this as a bug in the plugin, as it should take account of likely multisite use, and presently it does not.

    Also we note the wysihtml component has a more recent version available, not sure if that offers any advantages here though.

    a.

    • This reply was modified 7 years, 4 months ago by ade11.
    Plugin Author fatcatapps

    (@fatcatapps)

    Hello

    Currently our products are not designed with WP multisite in mind. It has to do with our premium licensing.

    Apologies for any trouble though, we were not even sure if the product would work on multisite, but glad to hear you’re having success, and got this working.

    Thank You

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue on multisite with unfiltered-mu’ is closed to new replies.