Australian Politics Forum
http://www.ozpolitic.com/forum/YaBB.pl
General Discussion >> Technically Speaking >> youtube videos not showing in yabb forum ssl https
http://www.ozpolitic.com/forum/YaBB.pl?num=1613880604

Message started by freediver on Feb 21st, 2021 at 2:10pm

Title: youtube videos not showing in yabb forum ssl https
Post by freediver on Feb 21st, 2021 at 2:10pm
After activating ssl (https), youtube videos will not show, because yabb does not insert the s in the url. To fix this, in MediaCenter.pl, replace


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~http$1:~media:~g; }


with


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~https$1:~media:~g; }


Title: Re: youtube videos not showing in yabb forum ssl https
Post by Redmond Neck on Feb 21st, 2021 at 2:58pm
Thanks freediver!

I will check that with Aussie, he is a gun on all this stuff over at Monks apparently !

;)

Title: Re: youtube videos not showing in yabb forum ssl https
Post by freediver on Feb 21st, 2021 at 3:03pm
You do that Red. Hopefully he will stop complaining now.

Title: Re: youtube videos not showing in yabb forum ssl https
Post by greggerypeccary on Feb 21st, 2021 at 4:04pm

freediver wrote on Feb 21st, 2021 at 2:10pm:
After activating ssl (https), youtube videos will not show, because yabb does not insert the s in the url. To fix this, in MediaCenter.pl, replace


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~http$1:~media:~g; }


with


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~https$1:~media:~g; }


:-/

They both look the same to me.


Title: Re: youtube videos not showing in yabb forum ssl https
Post by Gordon on Feb 21st, 2021 at 4:12pm
https://youtu.be/aXwzSPc0FoA
https://www.youtube.com/watch?v=aXwzSPc0FoA

Title: Re: youtube videos not showing in yabb forum ssl https
Post by Aussie on Feb 21st, 2021 at 4:27pm

greggerypeccary wrote on Feb 21st, 2021 at 4:04pm:

freediver wrote on Feb 21st, 2021 at 2:10pm:
After activating ssl (https), youtube videos will not show, because yabb does not insert the s in the url. To fix this, in MediaCenter.pl, replace


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~http$1:~media:~g; }


with


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~https$1:~media:~g; }


:-/

They both look the same to me.


That'd be because they are.

Title: Re: youtube videos not showing in yabb forum ssl https
Post by greggerypeccary on Feb 21st, 2021 at 4:33pm

Aussie wrote on Feb 21st, 2021 at 4:27pm:

greggerypeccary wrote on Feb 21st, 2021 at 4:04pm:

freediver wrote on Feb 21st, 2021 at 2:10pm:
After activating ssl (https), youtube videos will not show, because yabb does not insert the s in the url. To fix this, in MediaCenter.pl, replace


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~http$1:~media:~g; }


with


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~https$1:~media:~g; }


:-/

They both look the same to me.


That'd be because they are.


So ...  :-/

Title: Re: youtube videos not showing in yabb forum ssl https
Post by Aussie on Feb 21st, 2021 at 4:53pm
Over to Freediver.  I have no idea.

Title: Re: youtube videos not showing in yabb forum ssl https
Post by Carl D on Feb 21st, 2021 at 6:33pm
The difference is:

if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~http$1:~media:~g; }

if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~https$1:~media:~g; }

:) 

Title: Re: youtube videos not showing in yabb forum ssl https
Post by Captain Nemo on Feb 21st, 2021 at 9:37pm

freediver wrote on Feb 21st, 2021 at 2:10pm:
After activating ssl (https), youtube videos will not show, because yabb does not insert the s in the url. To fix this, in MediaCenter.pl, replace


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~http$1:~media:~g; }


with


Code (perl):
           if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~https$1:~media:~g; }



Well done!  8-)

Title: Re: youtube videos not showing in yabb forum ssl https
Post by greggerypeccary on Feb 21st, 2021 at 9:49pm

Carl D wrote on Feb 21st, 2021 at 6:33pm:
The difference is:

if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~http$1:~media:~g; }

if ($media_url !~ m/^http(s)?:\/\//){ $media_url = "media://" + $media_url; } else { $media_url =~s~https$1:~media:~g; }

:) 


Look at FD's OP again.

It doesn't show that.


Title: Re: youtube videos not showing in yabb forum ssl https
Post by greggerypeccary on Feb 21st, 2021 at 9:50pm

Aussie wrote on Feb 21st, 2021 at 4:53pm:
Over to Freediver.  I have no idea.


Is it some sort of in-joke?


Title: Re: youtube videos not showing in yabb forum ssl https
Post by J.D. on Feb 21st, 2021 at 9:50pm
What is a yabb

Title: Re: youtube videos not showing in yabb forum ssl https
Post by freediver on Feb 21st, 2021 at 9:50pm
Do you read Dilbert?

Title: Re: youtube videos not showing in yabb forum ssl https
Post by greggerypeccary on Feb 21st, 2021 at 9:52pm

Johnnie wrote on Feb 21st, 2021 at 9:50pm:
What is a yabb


Yet Another Boring Blog.


Title: Re: youtube videos not showing in yabb forum ssl https
Post by greggerypeccary on Feb 21st, 2021 at 9:53pm

freediver wrote on Feb 21st, 2021 at 9:50pm:
Do you read Dilbert?


No.

Where would one read a Dilbert?


Title: Re: youtube videos not showing in yabb forum ssl https
Post by Captain Nemo on Feb 21st, 2021 at 10:09pm
[media width=640]https://youtu.be/XqfwYkpOLg4[/media]


All fixed in Chrome now Yay!  :)

Title: Re: youtube videos not showing in yabb forum ssl https
Post by Carl D on Feb 22nd, 2021 at 3:46pm
Love the Dilbert cartoons, Scott Adams is a genius.

I believe he got the ideas for a lot of them from his own real life experiences working for several big companies over the years.

You can read every single one of them online.

https://dilbert.com/search_results?terms=Dilbert

The attached cartoon is one of my all time favourites (I've worked for a few places where something like that would probably have happened).  ;D



dilbert.jpg (139 KB | 14 )

Title: Re: youtube videos not showing in yabb forum ssl https
Post by Redmond Neck on Feb 22nd, 2021 at 4:01pm

Carl D wrote on Feb 22nd, 2021 at 3:46pm:
Love the Dilbert cartoons, Scott Adams is a genius.

I believe he got the ideas for a lot of them from his own real life experiences working for several big companies over the years.

You can read every single one of them online.

https://dilbert.com/search_results?terms=Dilbert

The attached cartoon is one of my all time favourites (I've worked for a few places where something like that would probably have happened).  ;D


Sounds like the Australian public Service!

;D ;D ;D

Title: Re: youtube videos not showing in yabb forum ssl https
Post by JaSin. on Feb 23rd, 2021 at 5:32pm
I can't answer in Feedback so what's with the: This form is not secure. Autofill has been turned off.
No major inconvenience as it pops over the emoji bar as I just scroll down a bit to remove.

Australian Politics Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2026. All Rights Reserved.