Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 11:31 am EST

Geeklog Forums

iframe tag doesn't work


Status: offline

OMAL

Forum User
Regular Poster
Registered: 12/06/17
Posts: 107
When I post an article with youtube iframe code like
Text Formatted Code
<iframe src=...>
, it is replaced by just
Text 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: 09/27/05
Posts: 1470
Location:Canada
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

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
My mistake, it is not a bug.

In the configuration under HTML Filtering you add the iFrame and then beside the iframe on the left you will see a plus sign. This will allow you to add any attributes needed for the tag.
One of the Geeklog Core Developers.
 Quote

All times are EST. The time is now 11:31 am.

  • 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