Forum

 
  Back to OzPolitic.com   Welcome, Guest. Please Login or Register
  Forum Home Album HelpSearch Recent Rules LoginRegister  
 

Pages: 1 2 
Send Topic Print
youtube videos not showing in yabb forum ssl https (Read 1481 times)
freediver
Gold Member
*****
Offline


www.ozpolitic.com

Posts: 47043
At my desk.
youtube videos not showing in yabb forum ssl https
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; } 


Back to top
« Last Edit: Feb 21st, 2021 at 2:30pm by freediver »  

I identify as Mail because all I do is SendIT!
WWW  
IP Logged
 
Redmond Neck
Gold Member
*****
Offline


OzPolitic

Posts: 20606
ACT
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #1 - 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 !

Wink
Back to top
 

BAN ALL THESE ABO SITES RECOGNITIONS.

ALL AUSTRALIA IS FOR ALL AUSTRALIANS!
 
IP Logged
 
freediver
Gold Member
*****
Offline


www.ozpolitic.com

Posts: 47043
At my desk.
Re: youtube videos not showing in yabb forum ssl https
Reply #2 - Feb 21st, 2021 at 3:03pm
 
You do that Red. Hopefully he will stop complaining now.
Back to top
 

I identify as Mail because all I do is SendIT!
WWW  
IP Logged
 
greggerypeccary
Gold Member
*****
Online


Australian Politics

Posts: 130890
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #3 - 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; } 




Undecided

They both look the same to me.

Back to top
 
 
IP Logged
 
Gordon
Gold Member
*****
Online


Australian Politics

Posts: 20202
Gordon
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #4 - Feb 21st, 2021 at 4:12pm
 

Back to top
« Last Edit: Feb 21st, 2021 at 4:37pm by Gordon »  

IBI
 
IP Logged
 
Aussie
Gold Member
*****
Offline


OzPolitic

Posts: 37678
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #5 - 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; } 




Undecided

They both look the same to me.



That'd be because they are.
Back to top
 
 
IP Logged
 
greggerypeccary
Gold Member
*****
Online


Australian Politics

Posts: 130890
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #6 - 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; } 




Undecided

They both look the same to me.



That'd be because they are.


So ...  Undecided
Back to top
 
 
IP Logged
 
Aussie
Gold Member
*****
Offline


OzPolitic

Posts: 37678
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #7 - Feb 21st, 2021 at 4:53pm
 
Over to Freediver.  I have no idea.
Back to top
 
 
IP Logged
 
Carl D
Gold Member
*****
Offline


Australian Politics

Posts: 8361
Rivervale, Perth
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #8 - 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; }

Smiley 
Back to top
« Last Edit: Feb 21st, 2021 at 6:46pm by Carl D »  

"Masks are sand in the gears of the economy" - some f-wit pollie or big business CEO.
 
IP Logged
 
Captain Nemo
Gold Member
*****
Offline


Australian Politics

Posts: 8343
Melbourne
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #9 - 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!  Cool
Back to top
 

The 2025 election could be a shocker.
WWW  
IP Logged
 
greggerypeccary
Gold Member
*****
Online


Australian Politics

Posts: 130890
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #10 - 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; }

Smiley 


Look at FD's OP again.

It doesn't show that.

Back to top
 
 
IP Logged
 
greggerypeccary
Gold Member
*****
Online


Australian Politics

Posts: 130890
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #11 - 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?

Back to top
 
 
IP Logged
 
Johnnie
Gold Member
*****
Offline


Australian Politics

Posts: 12485
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #12 - Feb 21st, 2021 at 9:50pm
 
What is a yabb
Back to top
 
 
IP Logged
 
freediver
Gold Member
*****
Offline


www.ozpolitic.com

Posts: 47043
At my desk.
Re: youtube videos not showing in yabb forum ssl https
Reply #13 - Feb 21st, 2021 at 9:50pm
 
Do you read Dilbert?
Back to top
 

I identify as Mail because all I do is SendIT!
WWW  
IP Logged
 
greggerypeccary
Gold Member
*****
Online


Australian Politics

Posts: 130890
Gender: male
Re: youtube videos not showing in yabb forum ssl https
Reply #14 - Feb 21st, 2021 at 9:52pm
 
Johnnie wrote on Feb 21st, 2021 at 9:50pm:
What is a yabb


Yet Another Boring Blog.

Back to top
 
 
IP Logged
 
Pages: 1 2 
Send Topic Print