Viperpit(s).org

General discussion, User presentation & Admin => Announcements => Topic started by: Sandman on December 02, 2023, 05:20:17 PM

Title: YouTube videos not always working?
Post by: Sandman on December 02, 2023, 05:20:17 PM
If you place a youtube reference as a simple url within your post, it should work:
(copied from address bar on browser)...  https://www.youtube.com/watch?v=UWi29bMVSZE

Alternatively, right-click on the video and select "Copy video URL"
Then paste this URL into your post... https://youtu.be/UWi29bMVSZE
  [ You are not allowed to view attachments ]  



  [ You are not allowed to view attachments ]  
Unfortunately, if you try to use the forum's YouTube "embed" icon (shown above), it may not work!
Code: [Select]
this embeds:    [youtube]UWi29bMVSZE[/youtube]    within your post
This is a problem within the forum's add-on module that we historically used for YouTube videos
This should get fixed with our next forum upgrade
Meanwhile, simply enter the url - don't use the forum's YouTube embed button
Title: Re: YouTube videos not always working?
Post by: Sandman on December 02, 2023, 05:22:43 PM
The newer YouTube add-on modules have made many improvements, so stay tuned...
:hail: :cheerleader: :clap: :beer: :yihaw:
Title: Re: YouTube videos not always working?
Post by: Red Dog on February 04, 2024, 12:05:32 PM
I have found another way to bypass the current limitation and have our videos embedding again

1. go to youtube, tab share and select the embedd option
2. in here, simply paste the <iframe> embed from above between [html] tags and it should work fine, just like here (https://www.viperpits.org/smf/index.php?topic=537.msg197738#msg197738)
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 04, 2024, 01:35:47 PM
I have found another way to bypass the current limitation and have our videos embedding again

1. go to youtube, tab share and select the embedd option
2. in here, simply paste the <iframe> embed from above between [Html] tags and it should work fine, just like here (https://www.viperpits.org/smf/index.php?topic=537.msg197738#msg197738)
And I was just thinking, "wow, it works now" after seeing your post ;)

Thx for the tip, will do it that way in my next posts.
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 15, 2024, 09:43:03 AM
I have found another way to bypass the current limitation and have our videos embedding again

1. go to youtube, tab share and select the embedd option
2. in here, simply paste the <iframe> embed from above between tags and it should work fine, just like here (https://www.viperpits.org/smf/index.php?topic=537.msg197738#msg197738)

hmmm... I tried it in my last progress post but the html-tag gets removed and it just shows the iframe text :-/

testing it here again:
<iframe width="560" height="315" src="https://www.youtube.com/embed/rG_UVYoAYI4?si=kfBwLj_DKZpe21k-" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

I guess it could be because of your admin-status, @Red Dog ... I can't select an "HTML" tag in the icon list above, when I insert it manually, it gets deleted.
Title: Re: YouTube videos not always working?
Post by: Snoopy on February 15, 2024, 10:27:28 AM
In this answer I only see code. Not a usable link. In your other answer (in your pit building thread) I can see the link and the Youtube image. Works without a problem.
Title: Re: YouTube videos not always working?
Post by: Red Dog on February 15, 2024, 12:23:14 PM
Ye I see your video in your WIP as well
Which browser you use Michi?
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 15, 2024, 01:31:20 PM
In this answer I only see code. Not a usable link. In your other answer (in your pit building thread) I can see the link and the Youtube image. Works without a problem.

Ye I see your video in your WIP as well
Which browser you use Michi?
In my WIP I just posted the thumbnail image and the direct link to the video ;-)
Tested with Firefox and Chromium.. I think, only admins are allowed to post HTML-tags.
Would be too big a security risk to let anyone post code from across the web...
Title: Re: YouTube videos not always working?
Post by: Red Dog on February 16, 2024, 02:17:20 AM
Well I checked in the admin section of the forum and as far as I can see, there's no restrictions at all for HTML codes
It's well enabled and everyone should be able to use it
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 16, 2024, 04:28:59 AM
Well I checked in the admin section of the forum and as far as I can see, there's no restrictions at all for HTML codes
It's well enabled and everyone should be able to use it
hmmmm, really strange.... is there an icon for it in the editor?
here's how my icons look can't find an html)
  [ You are not allowed to view attachments ]  
Title: Re: YouTube videos not always working?
Post by: Red Dog on February 16, 2024, 06:31:12 AM
i never bother with icons, I type the code straight in and it worked for me.
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 17, 2024, 03:36:11 AM
i never bother with icons, I type the code straight in and it worked for me.
Usually me too, but in this case the HTML-tag get's deleted by the forumsoftware.

I just meant, if _you_ have the icon for the HTML tag, you definitely get more possibilities than me.

That's the text I post right below the code-block.
Code: [Select]
[html]<iframe width="560" height="315" src="https://www.youtube.com/embed/rG_UVYoAYI4?si=qdOWiCqS7PGAvuEr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>[/html]

<iframe width="560" height="315" src="https://www.youtube.com/embed/rG_UVYoAYI4?si=qdOWiCqS7PGAvuEr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

When I edit the post again, the html-tags are gone and the line looks like this:
Code: [Select]
<iframe width="560" height="315" src="https://www.youtube.com/embed/rG_UVYoAYI4?si=qdOWiCqS7PGAvuEr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
Title: Re: YouTube videos not always working?
Post by: Red Dog on February 17, 2024, 03:58:36 AM

really weird, works for me
and if I go back and edit the post, the html tags are still there. No idea why really
Anyone else has the same issue as Michi?
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 17, 2024, 05:58:34 AM
<iframe width="560" height="315" src="https://www.youtube.com/embed/rG_UVYoAYI4?si=qdOWiCqS7PGAvuEr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

really weird, works for me
and if I go back and edit the post, the html tags are still there. No idea why really
Anyone else has the same issue as Michi?
really, really weird...
do you have a screenshot of your icon list? I'm curious if there's something missing in my version
Title: Re: YouTube videos not always working?
Post by: Red Dog on February 17, 2024, 06:12:36 AM
it is the exact same as yours. I checked already
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 18, 2024, 10:54:30 AM
it is the exact same as yours. I checked already
Thx.. that's really strange behaviour   :rambling:

Title: Re: YouTube videos not always working?
Post by: Red Dog on February 24, 2024, 07:25:44 AM
I might have found the issue Michi:

make sure you use NON CAPITALS for the html code
If you do this
[HTML] or [Html] it won't work
but if you do
[html]
it does

Seems it's all a case sensitive issue
Title: Re: YouTube videos not always working?
Post by: Sandman on February 24, 2024, 12:05:01 PM
As I understand it, it all depends on how the parser interprets the alphanumeric commands within the brackets

Most commands will use a beginning tag [xxxx] and ending tag [/xxxx] -although the end tag is not always necessary

Code: [Select]
For example, 
[b] = start BOLD
[/b] = end BOLD

or

[html]HTML CODE HERE[/html]
The parser interpreter looks for specific alphanumeric keywords within the tag brackets.
Generally, you should use lower case characters within bracket commands.

Sorry this has become so cumbersome to add videos.
I am still planning a major software upgrade with better support for videos soon.
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 25, 2024, 01:09:09 PM
I might have found the issue Michi:

make sure you use NON CAPITALS for the html code
Sadly that doesn't work, either. I tried all combinations in my earlier attempts.

Last test:
<iframe width="560" height="315" src="https://www.youtube.com/embed/rG_UVYoAYI4?si=k_0LpPTeZM3AHB7W" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Edit: tried only lower letters, didn't work now.
Title: Re: YouTube videos not always working?
Post by: mihi4 on February 25, 2024, 01:10:44 PM
Sorry this has become so cumbersome to add videos.
I am still planning a major software upgrade with better support for videos soon.
No worries, I'll just post the link with a thumbnail...

Edit: One last test with a differen browser (firefox).

Edit2: nope, [ html ] and [/ html ] gets removed (I have to write the spaces, otherwise it's even removed in the text here.)

<iframe width="560" height="315" src="https://www.youtube.com/embed/rG_UVYoAYI4?si=k_0LpPTeZM3AHB7W" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
SimplePortal 2.3.5 © 2008-2012, SimplePortal