Search…

X3 Photo Gallery Support Forums

Search…
 
rtig
Topic Author
Posts: 3
Joined: 09 May 2019, 18:18

Linking to images directly

11 May 2019, 19:25

Hi Karl,

I would like to link to one of my images in the content folder using the html img tag (e.g. <img src="http://rtig.net/content/photoblog/fotoblog-25.jpg" alt"schliessfaecher">). However, the image does not show. Is there some kind of protection on the folder or am I doing something wrong?

It does not work on the forum either.
Image
Cheers!
Last edited by rtig on 12 May 2019, 19:09, edited 1 time in total.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Linking to images directly

12 May 2019, 01:17

It works here, also the image you embedded in the post:
Image

Did you change something? If not, there is another likely cause: Your website is on HTTP (not secure SSL/HTTPS). If you try to embed a HTTP link on a HTTPS website, it will often be blocked by the website or the browser (depending). You cannot (at least you are not supposed to) load NON-SSL content into an SSL website, because that will make the secure SSL website insecure.

For example, for my browser to be able to load your non-SSL image, the SSL "secure" was broken:
Image
Normally, it is SSL:
Image
 
rtig
Topic Author
Posts: 3
Joined: 09 May 2019, 18:18

Re: Linking to images directly

12 May 2019, 18:57

Many thanks for that reply, that gives me something to try out.

It still does not show in my main browser (Opera), but it does show in Firefox. So it definitely has something to do with the https.
 
rtig
Topic Author
Posts: 3
Joined: 09 May 2019, 18:18

Re: Linking to images directly

12 May 2019, 19:15

Yep, that did the trick. I activated SSL on the website and now everything is working nicely! Many thanks again!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Linking to images directly

13 May 2019, 10:14

SSL is the way to go!