How to allow iframes in HESK knowledgebase articles

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
htyhth28RnH
Posts: 2
Joined: Thu Aug 17, 2023 8:26 am

How to allow iframes in HESK knowledgebase articles

Post by htyhth28RnH »

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
Klemen
Site Admin
Posts: 10135
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to allow iframes in HESK knowledgebase articles

Post by Klemen »

The article is for Hesk 2.7 or newer and should still work.

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 Image

Image 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
htyhth28RnH
Posts: 2
Joined: Thu Aug 17, 2023 8:26 am

Re: How to allow iframes in HESK knowledgebase articles

Post by htyhth28RnH »

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.
Klemen
Site Admin
Posts: 10135
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to allow iframes in HESK knowledgebase articles

Post by Klemen »

Glad to hear you got it working!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Post Reply