By QMAXX on Tuesday, 21 February 2017
Posted in Technical Issues
Likes 0
Views 275
Votes 0
Dailymotion Video Post does not work. Can someone please take a look.

Thank you
Hey QMAXX,
It seems you applied the block of codes into the wrong place(end of the file). I believe you missed the screenshot I provided shows where the codes should be(http://take.ms/KKOASs).

I have helped you reapplied the codes so embedding Dailymotion videos should work now(http://take.ms/2KvAz).
·
Tuesday, 21 February 2017 20:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi QMAXX,
Sorry but I'm not really understanding the issue. Can you elaborate more on the steps to reproduce the issue, the video url used, and provide screenshots of the error/issue?
·
Tuesday, 21 February 2017 12:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Here are the screenshots: Stream Post 1 & 2, Video Page 1& 2

Dailymotion URL: http://dai.ly/x5ckaxd

Best regards
·
Tuesday, 21 February 2017 15:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey QMAXX,
I have checked Dailymotion video url sharing on your site and I am hitting this error in the console(http://take.ms/5e15A). It seems Dailymotion video share links are in http, which when uploaded on your https site, causes this issue where your site detected an insecure content.
I'm not sure why Dailymotion video share links do not have https since the embedded video run just fine on https(http://take.ms/2kGvo).
I will report this to the devs so they can look into this.

In the meantime, if you want to address this issue you have to use a temporary hack on the core file: JoomlaFolder/administrator/components/com_easysocial/includes/video/video.php
Add this block of code as seen in the screenshot:

$uri = JURI::getInstance();
$scheme = $uri->toString(array('scheme'));
$scheme = str_replace('://', '', $scheme);

if (strpos($codes, 'dailymotion.com') !== false && $scheme == 'https') {
$codes = str_replace('http', 'https', $codes);
}
http://take.ms/KKOASs

This will temporary convert Dailymotion video's links to https, which will address the issue with the video thumbnail until a better solution can be implemented.
·
Tuesday, 21 February 2017 19:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for your quick response.

Have the code inserted into the desired file. The video still does not appear.
·
Tuesday, 21 February 2017 20:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey QMAXX,
Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Tuesday, 21 February 2017 20:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey QMAXX,
Our developers have provided a fix for this issue. Can I have permission to test the fix on your site since I do not have a https site? Let us know, thanks.
·
Monday, 06 March 2017 16:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes very much.

Best regards
·
Monday, 06 March 2017 17:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey QMAXX,
I have helped you removed the temporary fix and applied the real fix. The fix seems to be working fine. Can you help me double check to make sure video sharing with dailymotion links does not have anymore issues with the thumbnails? Thanks.
·
Monday, 06 March 2017 17:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. Is working
·
Monday, 06 March 2017 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey QMAXX,
Thanks for getting back to us. Glad to know the fix is working fine. This fix will be included in the next release as well.
Regards.
·
Monday, 06 March 2017 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post