TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,144
  • Total Topics: 21,346
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 446
  • Total: 446

Blocks/columns on front page vs forum

Started by jernatety, May 28, 2018, 12:52:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jernatety

Quote from: tino on June 01, 2018, 07:52:32 PM
I should add the youtube video added in the article wasn't via the wysiwyg in TinyPortal.

So didn't use the youtube container div.

I embedded the video with iframe html code in the article. I am not turning WYSIWYG on because it might blow up my thousands of lines of html currently in the article.

tino

Quote from: jernatety on June 01, 2018, 07:57:59 PM
Quote from: tino on June 01, 2018, 07:52:32 PM
I should add the youtube video added in the article wasn't via the wysiwyg in TinyPortal.

So didn't use the youtube container div.

I embedded the video with iframe html code in the article. I am not turning WYSIWYG on because it might blow up my thousands of lines of html currently in the article.

That's fine, I was just trying to let lurkalot know it wasn't using the css in TinyPortal to style it.

illori

looks like the oharaembed mod is using a fixed width and height, i remove the fixed width it fixes the issue in the post that lurkalot linked to on the prior page.

illori

can you create a new article for testing that includes the video? i can inspect chrome from my phone on the computer and see if it is the same issue that i am seeing on lurkalot's test site.

[edit] in your header you are still calling ezportal.css, you should remove this if you are not going to be using it.

jernatety

Quote from: illori on June 01, 2018, 08:21:59 PM
can you create a new article for testing that includes the video? i can inspect chrome from my phone on the computer and see if it is the same issue that i am seeing on lurkalot's test site.

[edit] in your header you are still calling ezportal.css, you should remove this if you are not going to be using it.

Hi Illori, is the first comment directed at me as well?

Is this the code you are speaking of?

<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/ezportal.css?fin20" />

illori

yep that is the code, you should remove that.

can you post the video in a topic or article so i can inspect it to see what else may be going on?

jernatety

Quote from: illori on June 01, 2018, 08:41:00 PM
yep that is the code, you should remove that.

can you post the video in a topic or article so i can inspect it to see what else may be going on?

Thank you. Code has been removed.

Here it is in a topic
https://www.youthhockeyinfo.com/index.php/topic,339.0.html

Here it is in an article
https://www.youthhockeyinfo.com/index.php?page=rink-directory

illori

the topic, seems to fit without issue. in the article it seems to have an issue with the iframe code
<iframe width="560" height="315" src="https://www.youtube.com/embed/-sUKoKQlEC4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
if changed to 100% for width and height it seems to fit where it should.



the code showing for the post video is as follows:
<div class="oharaEmbed youtube" id="oh_-sUKoKQlEC4" style="width: 356.28px; height: 211.541px; background-image: none; background-size: cover;"><noscript><a href="//www.youtube.com/watch?v=-sUKoKQlEC4">//www.youtube.com/watch?v=-sUKoKQlEC4</a></noscript><div class="youtube_play" style="height: 0px;"></div><iframe frameborder="0" src="//www.youtube.com/embed/-sUKoKQlEC4?autoplay=1&amp;autohide=1" allowfullscreen="allowfullscreen" style="width: 356.28px; height: 380px;"></iframe></div>

this one seems to work fine, it has a smaller width/height and they are defined in px where in the article it has no px defined which may cause some of the issue.

jernatety

Quote from: illori on June 01, 2018, 09:12:09 PM
the topic, seems to fit without issue. in the article it seems to have an issue with the iframe code
<iframe width="560" height="315" src="https://www.youtube.com/embed/-sUKoKQlEC4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
if changed to 100% for width and height it seems to fit where it should.



the code showing for the post video is as follows:
<div class="oharaEmbed youtube" id="oh_-sUKoKQlEC4" style="width: 356.28px; height: 211.541px; background-image: none; background-size: cover;"><noscript><a href="//www.youtube.com/watch?v=-sUKoKQlEC4">//www.youtube.com/watch?v=-sUKoKQlEC4</a></noscript><div class="youtube_play" style="height: 0px;"></div><iframe frameborder="0" src="//www.youtube.com/embed/-sUKoKQlEC4?autoplay=1&amp;autohide=1" allowfullscreen="allowfullscreen" style="width: 356.28px; height: 380px;"></iframe></div>

this one seems to work fine, it has a smaller width/height and they are defined in px where in the article it has no px defined which may cause some of the issue.

Does that mean it's the Ohara plugin that's causing the issue? The topic fits because there's no left or right panel, just top. The article has a left panel.

illori

#49
what code are you entering when you are embedding the video into the article? when i view the article in my desktop browser it has the same code, so somewhere it is hard coded and not correct to be responsive.

This is in the article
<iframe width="560" height="315" src="https://www.youtube.com/embed/-sUKoKQlEC4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

This is what is in the topic. It's just pasted into the topic, no tags.

https://www.youtube.com/watch?v=-sUKoKQlEC4


Both results in the same issue when left or right panels are enabled.

This website is proudly hosted on Crocweb Cloud Website Hosting.