Welcome to Geeklog Sunday, July 25 2021 @ 11:43 pm EDT

Geeklog Forums

iframe tag doesn't work


Status: offline

OMAL

Forum User
Regular Poster
Registered: 06/12/17
Posts: 104
When I post an article with youtube iframe code like
PHP Formatted Code
<iframe src=...>
, it is replaced by just
PHP Formatted Code
 <iframe>
.
I tested at Demo Site and same thing happens.
To use iframe tag, I added iframe to User HTML in HTML filtering configuration pane.

How can I post iframe tags like youtube embedded code?
Thanks.
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1433
I had thought there was a way to include attributes on the tags when you add them to the HTML Include Filter config option but looking at the code I don't see it (plus it is not mentioned in the docs).

So 2 options for you now until we get this fixed.

You can either enable Skip Filtering for Admin config option found just below the filter config options.

Or download the autotag plugin and enable the youtube autotag.

Autotags Plugin v1.1.3

The autotag plugin is really handy. Plus using it for youtube will allow you to style it in one spot but use the code in multiple places on your website. I have an update to the youtube autotag if you want it which gives you much more control on how it looks.

This has the added benefit of security since ideally you don't want regular users usually to be able to create an iframe on a site.

By the way I added a bug for this issue on GItHub https://github.com/Geeklog-Core/geeklog/issues/1078
One of the Geeklog Core Developers.
 Quote

All times are EDT. The time is now 11:43 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content