vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   protocol-relative images (https://vborg.vbsupport.ru/showthread.php?t=313599)

AndrewSimm 08-10-2014 02:01 AM

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.

fxdigi-cash 08-10-2014 05:12 AM

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...

AndrewSimm 08-10-2014 06:38 AM

Quote:

Originally Posted by fxdigi-cash (Post 2510633)
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...

It is very much possible. For instance imgur has both http and https and if you have a link like
<img src="//i.imgur.com/nLJIIop.jpg" alt="" original-title="">

then it will load using whatever my page uses.

cellarius 08-10-2014 06:20 PM

Of course it's possible - if vBulletin would offer an image proxy (like certain other forum software does).

Paul M 08-10-2014 07:24 PM

Quote:

Originally Posted by cellarius (Post 2510710)
Of course it's possible - if vBulletin would offer an image proxy (like certain other forum software does).

It doesnt, so other than a dig, the comment is rather pointless.

Quote:

Originally Posted by AndrewSimm (Post 2510640)
It is very much possible.

Thats fine if the remote site allows https, many do not.

AndrewSimm 08-11-2014 11:02 PM

Quote:

Originally Posted by Paul M (Post 2510754)
It doesnt, so other than a dig, the comment is rather pointless.


Thats fine if the remote site allows https, many do not.

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.

Zachery 08-11-2014 11:06 PM

Ugly, but in theory you should be able to do a style replacement for http:// and change it to //

AndrewSimm 08-11-2014 11:16 PM

Quote:

Originally Posted by Zachery (Post 2510880)
Ugly, but in theory you should be able to do a style replacement for http:// and change it to //

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 //

Zachery 08-12-2014 12:27 AM

Doing the style replacement will replace ALL urls from http:// to //

AndrewSimm 08-12-2014 01:44 AM

Quote:

Originally Posted by Zachery (Post 2510891)
Doing the style replacement will replace ALL urls from http:// to //

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 //.


All times are GMT. The time now is 06:41 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
  • Page Generation 0.01234 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete