![]() |
protocol-relative images
I am going to be converting by site to HTTPS so I can use SPDY. I would like to use protocol-relative url's so I don't get mixed content warnings. Converting my local files and CDN files should be easy but I need protocol-relative urls for linked images.
Has anyone does this with vbulletin. Attachments is my issue I guess. --------------- Added [DATE]1407646382[/DATE] at [TIME]1407646382[/TIME] --------------- to be clear external images linked form another site is what a need protocol-relative urls. |
if images on the same server, then you can modify the path with https:// instead.
if not the same server (external site from external server) then it is not possible... |
Quote:
<img src="//i.imgur.com/nLJIIop.jpg" alt="" original-title=""> then it will load using whatever my page uses. |
Of course it's possible - if vBulletin would offer an image proxy (like certain other forum software does).
|
Quote:
Quote:
|
Quote:
|
Ugly, but in theory you should be able to do a style replacement for http:// and change it to //
|
Quote:
|
Doing the style replacement will replace ALL urls from http:// to //
|
Quote:
|
I'm guessing you've never used the replacement var system. It replaces ALL of the template renderers output, COMPLETELY. Including anything in message data.
So, why not give my suggestion a try and see for yourself? |
All times are GMT. The time now is 04:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|