The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
HTTPS in all IMG tag links?
Hi,
Is there a way to force all links posted in img tags from HTTP to HTTPS? Thank you |
#2
|
||||
|
||||
Take a look here https://vborg.vbsupport.ru/showthrea...=323946&page=7
|
#3
|
|||
|
|||
Just keep in mind that not all image hosts have support for HTTPS. If you rewrite these links to use HTTPS, it will break the image.
|
#4
|
||||
|
||||
As Dave says you will break some images as some hosts to not have https, before doing any drastic rewriting, try adding an upgrade-insecure-requests header to your headinclude template and when you browse your forum with a compliant browser such as Chrome or Firefox then it will automatically request the https versions and you can get an idea of the impact that rewriting all the posted images to https will have.
Code:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> |
2 благодарности(ей) от: | ||
blind-eddie, CAG CheechDogg |
#5
|
|||
|
|||
Sorry, not sure if I'm entirely clear on this.
I only see search & replace query. What I'm trying to do is when someone posts the code: [ img ] http://image.com/image.jpg [ /i mg ] It will automatically transform into an HTTPS link. I'm not concerned about the image being broken here, because the user should notice/realize immediately after when it doesn't properly display. And for the most part, it seems 90%+ of the image hosts our users use does support HTTPS. They're just pasting in HTTP links, and adding the S has been a manual process I'd like to turn automatic if possible. |
#6
|
||||
|
||||
Maybe a replacement variable in Styles & Templates - Replacement Variable Manager?
[img]http:// to [img]https:// The caveat is that the urls would revert if you deleted the RV |
#7
|
|||
|
|||
Perfect, that works. Thank you!
Edit: Spoke too soon, it will only convert the links upon editing the post, not when it's placed into the tags. Is there a better way? --------------- Added [DATE]1489865677[/DATE] at [TIME]1489865677[/TIME] --------------- Just to update, this worked for me: https://vborg.vbsupport.ru/showthread.php?t=235769 --------------- Added [DATE]1489869070[/DATE] at [TIME]1489869070[/TIME] --------------- Spoke too soon, that causes the same problem reported here: https://vborg.vbsupport.ru/showpost....17&postcount=5 |
#8
|
||||
|
||||
Quote:
This is making me to move to a dedicated server with more CPU cores. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|