Page 1 of 1 [ 8 posts ] 

techstepgenr8tion
Veteran
Veteran

User avatar

Joined: 6 Feb 2005
Age: 45
Gender: Male
Posts: 24,497
Location: 28th Path of Tzaddi

02 Feb 2018, 12:33 pm

Does anyone know exactly what's going on with this? Is it individual browsers that are cracking and causing a blank space instead of a video, is there a site plugin that needs to be updated, or are we trying to phase it out for other reasons? I'm asking for the sake of knowing how to post videos going forward.


_________________
The loneliest part of life: it's not just that no one is on your cloud, few can even see your cloud.


Soliloquist
Velociraptor
Velociraptor

User avatar

Joined: 13 Oct 2011
Age: 56
Gender: Male
Posts: 467

02 Feb 2018, 1:30 pm

The site has started to automatically default to https but it's
not fully compatible.

Code:
object-page menu-item-1482"><a href="http://wrongplanet.net/videos/">Videos</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1666"><a href="http://wrongplanet.net/category/friends-relationships/">Friends &#038; Relationships</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1667"><a href="http://wrongplanet.net/category/community-newsmakers/">Community Newsmakers</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1668"><a href="http://wrongplanet.net/category/school-jobs/">School &#038; Jobs</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1669"><a href="http://wrongplanet.net/category/parenting/">Parenting</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1671"><a href="http://wrongplanet.net/category/autism-news/">Autism News</a></li><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2113"><a href="http://wrongplanet.net/category/therapies/">Therapies &#038; Services</a></li></ul>
</div>


The browsers are seeing these http links (mixed content)
in the code and are disabling all possible unsafe content on the page.

To get youtube videos to work in Chrome you need to click on the shield
to the right in the address bar and select Load unsafe scripts.

In Firefox, click on the lock icon to the left of the address bar, then show connection details,
then disable protection for now.

More information about mixed content from Mozilla



techstepgenr8tion
Veteran
Veteran

User avatar

Joined: 6 Feb 2005
Age: 45
Gender: Male
Posts: 24,497
Location: 28th Path of Tzaddi

02 Feb 2018, 2:13 pm

In effect then I'd call that something pretty close to phasing out video.

While I don't know what programming platform this site is built on (nor should Alex tell us - that makes it prone for hacking) it seems like this should just need a piece of alternate script for handling https vs http. It's great that I can click on the shield and allow the script but that solves the problem for one person.


_________________
The loneliest part of life: it's not just that no one is on your cloud, few can even see your cloud.


Soliloquist
Velociraptor
Velociraptor

User avatar

Joined: 13 Oct 2011
Age: 56
Gender: Male
Posts: 467

03 Feb 2018, 7:33 am

techstepgenr8tion wrote:
In effect then I'd call that something pretty close to phasing out video.

While I don't know what programming platform this site is built on (nor should Alex tell us - that makes it prone for hacking) it seems like this should just need a piece of alternate script for handling https vs http. It's great that I can click on the shield and allow the script but that solves the problem for one person.


The whole site needed to be updated before defaulting to https.
For the Youtube problem in particular it is the code that embeds
the user Youtube content that needs to be updated.
If you look at the code below you will see it's creating http
links in the data and value fields.
An admin needs to fix this!

Code:
<p><object id="mov2wxmauwq" width="560" height="340" type="application/x-shockwave-flash" data="http://www.youtube.com/v/j7oTegOPJ6s?version=3&amp;hl=en_US"><param name="movie" value="http://www.youtube.com/v/j7oTegOPJ6s?version=3&amp;hl=en_US"


Here is a proof of concept Tampermonkey script that is successfully
changing the data and value fields to https so that embedded
Youtube content is visible again.

Code:
// ==UserScript==
// @name           Wrongplanet HTTPS video fix
// @description    Fix youtube videos on Wrongplanet
// @match          https://wrongplanet.net/*
// @version        1.0.0
// @author         Soliloquist
// ==/UserScript==

(function() {
    'use strict';

var els = document.getElementsByTagName("p");
  for(var i = 0, l = els.length; i < l; i++) {
  var el = els[i];
  el.innerHTML = el.innerHTML.replace(/data="http:/, 'data="https:');
}
var els1 = document.getElementsByTagName("p");
 for(var k = 0, l1 = els1.length; k < l1; k++) {
 var el1 = els1[k];
 el1.innerHTML = el1.innerHTML.replace(/value="http:/, 'value="https:');
}

})();



techstepgenr8tion
Veteran
Veteran

User avatar

Joined: 6 Feb 2005
Age: 45
Gender: Male
Posts: 24,497
Location: 28th Path of Tzaddi

03 Feb 2018, 9:52 am

I don't really want to ask many questions about how the site's programmed but I might suggest that he'd consider moving to a SPA or MVC pattern if he isn't on one already. One of the added benefits is being able to swap things out a bit easier.


_________________
The loneliest part of life: it's not just that no one is on your cloud, few can even see your cloud.


CockneyRebel
Veteran
Veteran

User avatar

Joined: 17 Jul 2004
Age: 50
Gender: Male
Posts: 116,945
Location: In my little Olympic World of peace and love

04 Feb 2018, 9:08 pm

I've also noticed the same thing just now.


_________________
The Family Enigma


Esmerelda Weatherwax
Veteran
Veteran

User avatar

Joined: 30 Sep 2017
Age: 69
Gender: Female
Posts: 2,749

04 Feb 2018, 9:18 pm

Hommage a Maria, I just pop up to the little green lock in the URL (Firefox), click on it, and deprotect the page long enough to play the video (then re-protect it).

Or I hit the quote button and pick up the URL from that and play in a separate tab.

I'm putting the direct link in now under any YouTube I embed. Did that for awhile on the jazz thread too.


_________________
"I believe you find life such a problem because you think there are the good people and the bad people," said the man. "You're wrong, of course. There are, always and only, the bad people, but some of them are on opposite sides."
-- Terry Pratchett, Guards! Guards!


fgonzalezb
Emu Egg
Emu Egg

User avatar

Joined: 7 Feb 2018
Age: 33
Gender: Male
Posts: 4
Location: Concepción, Chile

07 Feb 2018, 11:30 am

Hi, I've seen this problem too.

I also tried to post the direct link, but... sadly, because I'm newbie, I'm not able to do it (supposedly to preventing SPAM).

I think it's very frustrating, because I like to post with multimedia content in musical and video threads (as I do in other sites), and I don't like to install more complements and stuff on my browser (Chrome) just to get the site work fine...

So, are there practical alternatives?


_________________
Signature under construction... sorry for the inconveniences.