Help needed for a script to add https to some links
+2
Jucarese
cromar
6 posters
Page 1 of 1
Help needed for a script to add https to some links
Forum address: federer.forumotion.com
I am planning to migrate our forum to the secure https protocol. But before I do that, I need to update certain links that would not be compatible with the new protocol. I have one in particular that is in large number across the forum. Is it possible to have a script that would replace all instances of:
["//drive.google.com] with [="https://drive.google.com] (excluding the bracket).
My knowledge in coding is limited and would very much appreciate if someone could write me a script, if it can be done. Thank you v.m.
I am planning to migrate our forum to the secure https protocol. But before I do that, I need to update certain links that would not be compatible with the new protocol. I have one in particular that is in large number across the forum. Is it possible to have a script that would replace all instances of:
["//drive.google.com] with [="https://drive.google.com] (excluding the bracket).
My knowledge in coding is limited and would very much appreciate if someone could write me a script, if it can be done. Thank you v.m.
Last edited by cromar on January 20th 2020, 10:51 pm; edited 1 time in total
Re: Help needed for a script to add https to some links
all urls of any google application are already in https a long time ago from google drive too
Re: Help needed for a script to add https to some links
Yes, I know that, but unfortunately I coded the link to my image as shown in my original post, without any protocol, having read that it would adapt to any protocol. But when I run a test by switching our forum to https, all those links no longer worked.
I already posted about this problem earlier and got all kind of info, none of them solving my issue. I basically have to add the missing protocol, changing: ["//drive.google.com] to [="https://drive.google.com]. That's why I am asking for a script, unless you have another solution?
I already posted about this problem earlier and got all kind of info, none of them solving my issue. I basically have to add the missing protocol, changing: ["//drive.google.com] to [="https://drive.google.com]. That's why I am asking for a script, unless you have another solution?
Re: Help needed for a script to add https to some links
Are these images on your forum or just posted links?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Help needed for a script to add https to some links
Post a link to a page with such a link.
Guest- Guest
Re: Help needed for a script to add https to some links
I just switched my forum to https (second try!), using the default option 2 to force https compatibility (which I didn't do the first time). I did a lot of manual editing before switching, but I know that I haven't got them all yet, so I am using HTTPS Checker to finish the clean up.
What is strange is that the images, with the problem links I have been referring to, are now being displayed correctly (and the external links work fine too), but HTTPS Checker still reports an issue with mixed content for those images:
Here is an example - This is my code on the page (with no protocol):
But when I look at the source code for the page, these show up as HTTP links:
However, I tested the page with Chrome and Firefox and both browsers still shows the site as being secured. So, it's not a major problem, but I am curious as to why this is happening and it makes difficult to check the site for real issues.
Here is the link to the page on my forum with those images: https://federer.forumotion.com/t635-ubr-latest-news
The 'piano' pictures in the middle of the page are the problem ones. The page can be viewed as a guest. If you need more, let me know.
What is strange is that the images, with the problem links I have been referring to, are now being displayed correctly (and the external links work fine too), but HTTPS Checker still reports an issue with mixed content for those images:
Here is an example - This is my code on the page (with no protocol):
- Code:
[url=//drive.google.com/uc?export=view&id=16fk65PrGPc2JlBaB0KztxvObkEj_Vybw] <img style="width:100%; max-width: 501px;" src="//drive.google.com/uc?export=view&id=16fk65PrGPc2JlBaB0KztxvObkEj_Vybw" title="Click image to view full size" > [/url]
But when I look at the source code for the page, these show up as HTTP links:
- Code:
<a href="http://drive.google.com/uc?export=view&id=16fk65PrGPc2JlBaB0KztxvObkEj_Vybw" target="_blank" rel="nofollow">
<img style="width:100%; max-width: 501px;" src="http://drive.google.com/uc?export=view&id=16fk65PrGPc2JlBaB0KztxvObkEj_Vybw" title="Click image to view full size" >
However, I tested the page with Chrome and Firefox and both browsers still shows the site as being secured. So, it's not a major problem, but I am curious as to why this is happening and it makes difficult to check the site for real issues.
Here is the link to the page on my forum with those images: https://federer.forumotion.com/t635-ubr-latest-news
The 'piano' pictures in the middle of the page are the problem ones. The page can be viewed as a guest. If you need more, let me know.
Re: Help needed for a script to add https to some links
So what exactly is the issue with the piano picture? I can see 2 images and a Tweet in that post.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Help needed for a script to add https to some links
There is NO script to change the HTTP to HTTPS you have to work out away to do this your self.
We do not have any tools to help on this matter.
Sorry.
We do not have any tools to help on this matter.
Sorry.
Re: Help needed for a script to add https to some links
If you go to the http image url yourself, you will notice that it automatically gets redirected to the https version. This is why browsers still view your website as secure.
Redirecting to https will mean an extra request, which adds a couple of milliseconds to your page's load time. If you only have a few images, that shouldn't be an issue. The best course of action would be adding the https protocol yourself to the bbcode/html.
Redirecting to https will mean an extra request, which adds a couple of milliseconds to your page's load time. If you only have a few images, that shouldn't be an issue. The best course of action would be adding the https protocol yourself to the bbcode/html.
Guest- Guest
Re: Help needed for a script to add https to some links
you have a security certificate you don't need any code to convert from http to https, that's what the certificate is doing, only urls that are not possible to convert to https will not be loaded, as long as you have an active certificate, in the case of google drive yourself you can add the "s" manually but you don't need to do it.
Re: Help needed for a script to add https to some links
Last edited by Fleurpink on January 21st 2020, 9:52 pm; edited 2 times in total
Re: Help needed for a script to add https to some links
Fleurpink wrote:I don't think so because i have the same probleme and the answer in the top didn't help me.
Are you the same person with the topic starter? If not please do not hijack other member’s post if you have a problem open you own thread
Re: Help needed for a script to add https to some links
Thank you all who participated in this discussion. Some good information and pointers. Now I have a better understanding of the whole process and in short, things are working fine on my migrated forum, meaning links are being redirected to https and pictures are being displayed, but if I want a 'clean' forum, I will have to modify those links myself by adding the missing https protocol manually. Live and learn!
Case closed.
Case closed.
Re: Help needed for a script to add https to some links
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» HTTPS and external images & links.
» Script reformat is needed
» Add more links to this script
» Suggested Script (Need Someone that can read script)
» register Script (I Need The Script)
» Script reformat is needed
» Add more links to this script
» Suggested Script (Need Someone that can read script)
» register Script (I Need The Script)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum