By augusto camiolo on Friday, 10 February 2017
Posted in Technical Issues
Likes 0
Views 503
Votes 0
Hello,
we have installed on our site the SSL certificate, so it now runs on https protocol.
From that time we are not able to load video iframes in Komento comments, probably because the security protocol, with http protocol all was perfect.
I see Komento remove the https from the links for the videos and put http. There is a way to fix this?
We haven't the latest version of Komento, we have the 2.0.10 installed, but is hard to upgrade because we have a new custom skin, and if we upgrade, our developer has to rebuild from the ground.

Thanks for the attention,
regards.
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Perhaps you can update your following site details into this page http://stackideas.com/dashboard/site so we can better have a check?

1. Joomla backend access
2. FTP access
3. How to replicate this.
·
Saturday, 11 February 2017 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok I've done what you ask. To replicate: You can login to the front end by user->"violafiorentina" and pass ->"claudia", then go to the homepage, in the end of the page you will see komento and you can publish a video by the link. If you try you will see the comment but no video.
·
Monday, 13 February 2017 20:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Augusto,

I have checked the site and it looks like the issue is actually because your user tried to embed an image which uses http:// instead of https:// . You can see my screen shots here,

- http://take.ms/1jYMW (Display)
- http://take.ms/ntGc9N (Form)

Although we can fix the php code to enforce https:// instead of http://, I really wouldn't recommend it. What if a user wants to embed an image on a different website that doesn't support https:// ? Then, the image would not link correctly.

I have hard coded a fix to only parse https images by editing the file /components/com_komento/helpers/comment.php at line 275 by replacing the code below:


'/\[img\]((http|https):\/\/([a-z0-9._\/-]+)\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF))\[\/img]/i',


With,


'/\[img\]((https):\/\/([a-z0-9._\/-]+)\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF))\[\/img]/i',


This will ensure that if the user tries to embed http:// images, it would not be parsed.
·
Monday, 13 February 2017 22:37
·
0 Likes
·
0 Votes
·
0 Comments
·
The problem for our site now are videos not images. If you check, the last comment of "violafiorentina" has a youtube video, andit's not displayed on the frontend. When I put the URL of video by https, Komento display http in front end and the video isn't visible (in back end is still https saved in the comment, the problem afflicts only the front end).

As for images, we have disabled image share from komento, we have now only image upload function.

Also I've noticed if an user wanna publish a video, and the message contains only the video tags and url, the "publish" button is disabled, you must enter also a message to have the button enabled. If you can fix this also I very appleciate, because often our users wanna just publish a video from youtube without comments.

Thanks for the precious help.
·
Monday, 13 February 2017 22:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Ops, sorry I may have misunderstood your original post. Can you give this a try again?
·
Monday, 13 February 2017 23:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok seems you've done a great job, now video works We will consider an upgrade of Komento in the next upgrade of the website.

Regards
·
Tuesday, 14 February 2017 00:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issues are resolved now
·
Tuesday, 14 February 2017 01:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post