How to allow iframes in HESK knowledgebase articles?
This article is for version 2.7 and is outdated / does not work: https://www.hesk.com/knowledgebase/index.php?article=92
Thanks
How to allow iframes in HESK knowledgebase articles
Moderator: mkoch227
-
- Posts: 2
- Joined: Thu Aug 17, 2023 8:26 am
Re: How to allow iframes in HESK knowledgebase articles
The article is for Hesk 2.7 or newer and should still work.
What kind of errors do you get with that modification?
What kind of errors do you get with that modification?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 2
- Joined: Thu Aug 17, 2023 8:26 am
Re: How to allow iframes in HESK knowledgebase articles
Hi Klemen,
My mistake, I could not find 'return ''; in the file but it's there I see. Don't know how I missed that.
If I add an iframe it's working but I would like to have a 100% width / heigth iframe. If I create the article it's looking 100% but as soon as I save it, it changes the code back without the width and heigth. I use the following code:
<iframe width="100%" height="100%" src="http://example.com"></iframe>
After saving it changes back to:
<p><iframe src="http://example.com"></iframe></p>
Any ideas how to get a full frame?
Edit:
I managed to get a fixed widt and height with the following:
<p><iframe src="https://example.com" width="700" height="530"></iframe></p>
That seems to work fine.
Thanks.
My mistake, I could not find 'return ''; in the file but it's there I see. Don't know how I missed that.
If I add an iframe it's working but I would like to have a 100% width / heigth iframe. If I create the article it's looking 100% but as soon as I save it, it changes the code back without the width and heigth. I use the following code:
<iframe width="100%" height="100%" src="http://example.com"></iframe>
After saving it changes back to:
<p><iframe src="http://example.com"></iframe></p>
Any ideas how to get a full frame?
Edit:
I managed to get a fixed widt and height with the following:
<p><iframe src="https://example.com" width="700" height="530"></iframe></p>
That seems to work fine.
Thanks.
Re: How to allow iframes in HESK knowledgebase articles
Glad to hear you got it working!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools