Welcome to Geeklog Thursday, October 21 2021 @ 04:17 pm EDT

Geeklog Forums

iframe tag doesn't work

Status: offline


Forum User
Regular Poster
Registered: 06/12/17
Posts: 106
When I post an article with youtube iframe code like
PHP Formatted Code
<iframe src=...>
, it is replaced by just
PHP Formatted Code
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?

Status: offline


Site Admin
Registered: 27/09/05
Posts: 1438
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.

All times are EDT. The time is now 04:17 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