Display iframe code result on post October 19, 2015, 09:02:05 am Hello again Devs,Is it possible to display the iframe code in the post? No, not as code snippet but as actual iframe code result.thanks once again in advance
Re: Display iframe code result on post Reply #1 – October 19, 2015, 09:08:12 am I guess, you need to enable HTML BBC tag in editor to do that. Let me warn you, it is not something I would advise for non admin users.
Re: Display iframe code result on post Reply #2 – October 19, 2015, 09:38:49 am thanks @Wizard, where exactly can I find that setting so I can enable it.
Re: Display iframe code result on post Reply #3 – October 19, 2015, 09:40:47 am I am not sure. It must be under BBC settings. That means somewhere in post or topic settings.
Re: Display iframe code result on post Reply #4 – October 19, 2015, 09:47:36 am @Wizard I found where to enable it. Its under Forum > Posts and topics > BBC. Unfortunately it doesnt work even if its enabled.I mean the BBC work but for basic HTML markup only. not for iframe.
Re: Display iframe code result on post Reply #5 – October 19, 2015, 09:50:07 am You need to wrap the iframe in Code: [Select][html] iframe code here [/html] tag.
Re: Display iframe code result on post Reply #6 – October 19, 2015, 12:43:12 pm @Wizard its still not working unfortunately.
Re: Display iframe code result on post Reply #7 – October 19, 2015, 01:56:58 pm It should, provided1. You have enabled use of HTMLin editor2. You have use the [html] [/html] to wrap the iframe codeCheck and confirm if these are met. If still not working, I am not sure why. You can alternatively see the user group permissions, whether it allow use of html on editor even if you allowed in BBC settings.
Re: Display iframe code result on post Reply #8 – October 19, 2015, 02:40:51 pm The HTML tag was removed from ElkArte since... I think 1.0.1 for security reasons.Use HTML is a security risk.There is an addon the restores the HTML tag, but I would suggest to consider explaining why you need to post an iframe and investigate if there are better solutions.
Re: Display iframe code result on post Reply #9 – October 20, 2015, 01:36:44 am Hi @emanuele the reason I want to use an iframe on a post is because Im running an educational forum where I give each lessons as a separate posts. There is one lesson (1 post) that I want to display an iframe widget from a third-party site so I can explain it further. I hope we could come up with an addon just for this purpose if its now possible to do so. As always, any ideas on how I can achieve this goal is greatly appreciated.
Re: Display iframe code result on post Reply #10 – October 20, 2015, 02:31:10 am I too used to think ways to use <iframe></iframe>. Wish they simply uploaded the YouTube video.
Re: Display iframe code result on post Reply #11 – October 20, 2015, 08:18:11 am For youtube you just have to use the url of the video, no need for iframes.
Re: Display iframe code result on post Reply #12 – October 21, 2015, 01:00:58 am @emanuele can I use the same principle as the youtube where I will just provide a link and it will be automatically iframes exactly the same iframe code I got from the third-party vendor? Maybe if I could duplicate the same functionality for the youtube so I can create the same functionality for my own use. Is it possible?
Re: Display iframe code result on post Reply #13 – October 21, 2015, 01:19:38 am You need to give more information about what you're trying to do.
Re: Display iframe code result on post Reply #14 – October 21, 2015, 01:39:37 am @emanuele @Joshua Dickerson please refer to the attached image. In the left is the iframe code and on the right is the preview. I want to embed that iframe in the post so I can explain what is all about and the user can actually see the live widget and interact on it. Can it be done? many thanks again in advance.