Thread subject: Official Home of the PHPFusion CMS :: Youtube in news

Posted by Dahwiestark on 22-11-2022 11:16
#1

Hi.
So i'm trying to iframe or something youtube videos into news articles. I tried with bb codes etc. So far nothing works.
Anyone have any idea how to do this?
Thanks in advance.

Posted by Apis on 22-11-2022 14:57
#2

BBCode is not allowed in news and articles. You must use HTML tags.
On YouTube, you click RMB on the video and download the code to paste on the website. It works fine without any problems. Example from my website.
https://www.zegluga-rzeczna.pl/news/3...40-stu-lat

Posted by Dahwiestark on 22-11-2022 17:09
#3

What do you mean rmb? When i click on share at a youtube video and copy the embed iframe link i try to paste it into a news post is doesnt work when i post it. I get an error that the following link i tried to reach ia not qvailable or somthing.

Posted by Apis on 22-11-2022 20:52
#4

RMB = right mouse button.
Try changing all " to ' characters in the code to be pasted.

Posted by Grimloch on 22-11-2022 21:28
#5

All double quotes TO single quotes dude in the UTube video code!

Posted by Dahwiestark on 23-11-2022 00:17
#6

So i just copy lets say a random yt video

<iframe width="901" height="507" src="https://www.youtube.com/embed/fPIlpM9Za78" title="YOU LAUGH YOU LOSE EYES | MEMES" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

And change it to the following:

<iframe width='901' height='507' src='https://www.youtube.com/embed/fPIlpM9Za78' title='YOU LAUGH YOU LOSE EYES | MEMES' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>

If so, and i'm doing it right. This doesnt work either unfortunatelly.
I get an error " 403 The link you followed may have expired, or the page may not be accessible to you."

I checked your page Apis not sure why its not working for me.

Not sure what am i doing wrong. I'm on the latest version of php fusion.

Posted by Dahwiestark on 23-11-2022 00:26
#7

Its like my Article , News etc infusions dont even wanna hear about iframe... Like its blocked or something. When i create a custom page i can iframe anything or embedd videos easily.

Posted by Apis on 23-11-2022 09:26
#8

In my PHPFusion v 9.10.30 test site, I pasted the code from your post and everything works. It doesn't matter if it's double or single quotes.
https://www.nowa.zegluga.hmcloud.pl/n...s/3154/xxx

I don't know what the cause is in your case.

Posted by Dahwiestark on 23-11-2022 10:37
#9

Okay i managed to found the issue... For some reason my Admin panel was broken... And i didnt even notice it... I basically just fresh copy pasted the admin lte panel theme files and works wonders...

Posted by Dahwiestark on 23-11-2022 12:56
#10

Also for future reference for others.
It was either the ModSecurity at cPanel. I turned it off. Or permission issues for folders and contents that i had to set to 777 on administration and infusions.

Cheers for helping and hopefully if others encounter similar issue now have an answer.