The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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... |
#3
|
|||
|
|||
Quote:
<img src="//i.imgur.com/nLJIIop.jpg" alt="" original-title=""> then it will load using whatever my page uses. |
#4
|
||||
|
||||
Of course it's possible - if vBulletin would offer an image proxy (like certain other forum software does).
|
#5
|
||||
|
||||
Quote:
Thats fine if the remote site allows https, many do not. |
#6
|
|||
|
|||
Paul your right but most of the large ones do. I am simply inquiring about the option as I did not find a mod and wasn't sure if anyone else has tackled this. Thank you for answering my question though.
|
#7
|
||||
|
||||
Ugly, but in theory you should be able to do a style replacement for http:// and change it to //
|
#8
|
|||
|
|||
My question is outside images that are posted. For instance if someone post an image from imgur http I would like it to just use //
|
#9
|
||||
|
||||
Doing the style replacement will replace ALL urls from http:// to //
|
#10
|
|||
|
|||
Zachery I am not looking to replace it in templates. I have already done this. If an user post a image from lets say imgur as an attachment via url I want to replace whatever they use (ex: http) with //.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|